net.jangaroo.jooc.ast
Class UnaryOpExpr

java.lang.Object
  extended by net.jangaroo.jooc.ast.NodeImplBase
      extended by net.jangaroo.jooc.ast.Expr
          extended by net.jangaroo.jooc.ast.OpExpr
              extended by net.jangaroo.jooc.ast.UnaryOpExpr
All Implemented Interfaces:
AstNode, CodeGenerator
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
 
Constructor Summary
UnaryOpExpr(JooSymbol op, Expr arg)
           
 
Method Summary
 void analyze(AstNode parentNode)
           
 Expr getArg()
           
 boolean isCompileTimeConstant()
           
 void scope(Scope scope)
           
 
Methods inherited from class net.jangaroo.jooc.ast.OpExpr
getOp
 
Methods inherited from class net.jangaroo.jooc.ast.Expr
getType, setType
 
Methods inherited from class net.jangaroo.jooc.ast.NodeImplBase
analyze, generate, scope, withNewDeclarationScope, withNewLabelScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.jangaroo.jooc.ast.AstNode
getSymbol, visit
 

Constructor Detail

UnaryOpExpr

public UnaryOpExpr(JooSymbol op,
                   Expr arg)
Method Detail

scope

public void scope(Scope scope)

analyze

public void analyze(AstNode parentNode)
Specified by:
analyze in interface AstNode
Overrides:
analyze in class NodeImplBase

isCompileTimeConstant

public boolean isCompileTimeConstant()
Overrides:
isCompileTimeConstant in class Expr

getArg

public Expr getArg()


Copyright © 2002-2012 CoreMedia AG. All Rights Reserved.