Package net.jangaroo.jooc.ast
Class LiteralExpr
- java.lang.Object
-
- net.jangaroo.jooc.ast.NodeImplBase
-
- net.jangaroo.jooc.ast.Expr
-
- net.jangaroo.jooc.ast.LiteralExpr
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.jangaroo.jooc.ast.NodeImplBase
NodeImplBase.Scoped
-
-
Field Summary
-
Fields inherited from class net.jangaroo.jooc.ast.NodeImplBase
usesInstanceThis
-
-
Constructor Summary
Constructors Constructor Description LiteralExpr(JooSymbol value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidanalyze(AstNode parentNode)JooSymbolgetSymbol()JooSymbolgetValue()booleanisCompileTimeConstant()booleanisRuntimeConstant()voidscope(Scope scope)voidvisit(AstVisitor visitor)LiteralExprwithStringValue(String newValue)-
Methods inherited from class net.jangaroo.jooc.ast.Expr
getType, isOfAS3Type, isStandAloneConstant, setType
-
Methods inherited from class net.jangaroo.jooc.ast.NodeImplBase
analyze, getChildren, getParentNode, isAssignmentLHS, makeChildren, notifyInstanceThisUsed, propagateInstanceThisUsed, scope, usesInstanceThis, withNewDeclarationScope, withNewLabelScope
-
-
-
-
Constructor Detail
-
LiteralExpr
public LiteralExpr(JooSymbol value)
-
-
Method Detail
-
visit
public void visit(AstVisitor visitor) throws IOException
- Throws:
IOException
-
scope
public void scope(Scope scope)
-
analyze
public void analyze(AstNode parentNode)
- Specified by:
analyzein interfaceAstNode- Overrides:
analyzein classNodeImplBase
-
getSymbol
public JooSymbol getSymbol()
-
isRuntimeConstant
public boolean isRuntimeConstant()
- Overrides:
isRuntimeConstantin classExpr
-
isCompileTimeConstant
public boolean isCompileTimeConstant()
- Overrides:
isCompileTimeConstantin classExpr
-
getValue
public JooSymbol getValue()
-
withStringValue
public LiteralExpr withStringValue(String newValue)
-
-