Package net.jangaroo.jooc.ast
Class Expr
- java.lang.Object
-
- net.jangaroo.jooc.ast.NodeImplBase
-
- net.jangaroo.jooc.ast.Expr
-
- All Implemented Interfaces:
AstNode
- Direct Known Subclasses:
ApplyExpr,ArrayIndexExpr,CommaSeparatedList,ConditionalExpr,FunctionExpr,IdeExpr,LiteralExpr,NewExpr,ObjectLiteral,OpExpr,ParenthesizedExpr,VectorLiteral
public abstract class Expr extends NodeImplBase
- Author:
- Andreas Gawecki, Frank Wienberg
-
-
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 Expr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressionTypegetType()booleanisCompileTimeConstant()booleanisOfAS3Type(net.jangaroo.utils.AS3Type as3Type)booleanisRuntimeConstant()booleanisStandAloneConstant()Whether this expression denotes a stand-alone constant, that is, a constant that can be derived without looking at other classes.voidsetType(ExpressionType type)-
Methods inherited from class net.jangaroo.jooc.ast.NodeImplBase
analyze, analyze, getChildren, getParentNode, isAssignmentLHS, makeChildren, notifyInstanceThisUsed, propagateInstanceThisUsed, scope, usesInstanceThis, withNewDeclarationScope, withNewLabelScope
-
-
-
-
Method Detail
-
getType
public ExpressionType getType()
-
isOfAS3Type
public boolean isOfAS3Type(net.jangaroo.utils.AS3Type as3Type)
-
setType
public void setType(ExpressionType type)
-
isRuntimeConstant
public boolean isRuntimeConstant()
-
isCompileTimeConstant
public boolean isCompileTimeConstant()
-
isStandAloneConstant
public boolean isStandAloneConstant()
Whether this expression denotes a stand-alone constant, that is, a constant that can be derived without looking at other classes.- Returns:
- whether this expression denotes a stand-alone constant
-
-