Package net.jangaroo.jooc.ast
Class UnaryOpExpr
- java.lang.Object
-
- net.jangaroo.jooc.ast.NodeImplBase
-
- net.jangaroo.jooc.ast.Expr
-
- net.jangaroo.jooc.ast.OpExpr
-
- net.jangaroo.jooc.ast.UnaryOpExpr
-
- All Implemented Interfaces:
AstNode
- Direct Known Subclasses:
PostfixOpExpr,PrefixOpExpr
public abstract class UnaryOpExpr extends OpExpr
- Author:
- Andreas Gawecki
-
-
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 UnaryOpExpr(JooSymbol op, Expr arg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidanalyze(AstNode parentNode)ExprgetArg()List<? extends AstNode>getChildren()booleanisCompileTimeConstant()booleanisRuntimeConstant()booleanisStandAloneConstant()Whether this expression denotes a stand-alone constant, that is, a constant that can be derived without looking at other classes.voidscope(Scope scope)-
Methods inherited from class net.jangaroo.jooc.ast.Expr
getType, isOfAS3Type, setType
-
Methods inherited from class net.jangaroo.jooc.ast.NodeImplBase
analyze, getParentNode, isAssignmentLHS, makeChildren, notifyInstanceThisUsed, propagateInstanceThisUsed, scope, usesInstanceThis, withNewDeclarationScope, withNewLabelScope
-
-
-
-
Method Detail
-
getChildren
public List<? extends AstNode> getChildren()
- Specified by:
getChildrenin interfaceAstNode- Overrides:
getChildrenin classNodeImplBase
-
scope
public void scope(Scope scope)
-
analyze
public void analyze(AstNode parentNode)
- Specified by:
analyzein interfaceAstNode- Overrides:
analyzein classNodeImplBase
-
isRuntimeConstant
public boolean isRuntimeConstant()
- Overrides:
isRuntimeConstantin classExpr
-
isCompileTimeConstant
public boolean isCompileTimeConstant()
- Overrides:
isCompileTimeConstantin classExpr
-
isStandAloneConstant
public boolean isStandAloneConstant()
Description copied from class:ExprWhether this expression denotes a stand-alone constant, that is, a constant that can be derived without looking at other classes.- Overrides:
isStandAloneConstantin classExpr- Returns:
- whether this expression denotes a stand-alone constant
-
getArg
public Expr getArg()
-
-