kmy.jint.tree
Class ExpressionNode

java.lang.Object
  |
  +--kmy.jint.tree.BasicNode
        |
        +--kmy.jint.tree.ExpressionNode
Direct Known Subclasses:
ArrayValueNode, CallNode, CastNode, CondNode, ConstNode, IdentifierNode, InfixNode, NewNode, Parser.LabelExpression, Parser.LocalMethodExpression, Parser.LocalVariableExpression, PostfixNode, PrefixNode, TextProcessingNode

public abstract class ExpressionNode
extends BasicNode


Field Summary
 AbstractClass clazz
          Type of this expression.
static java.lang.Object NOT_CONST
           
 
Fields inherited from class kmy.jint.tree.BasicNode
attachment, filePos
 
Constructor Summary
ExpressionNode(int filePos)
           
 
Method Summary
 java.lang.Object getConstValue()
          Returns value of this expression (wrapped in the corresponding java class if value is primitive).
 
Methods inherited from class kmy.jint.tree.BasicNode
eval, getAttachment, getFilePos, getLine, setAttachment, setFilePos, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

clazz

public AbstractClass clazz
Type of this expression. TyperContext fills this in.

NOT_CONST

public static final java.lang.Object NOT_CONST
Constructor Detail

ExpressionNode

public ExpressionNode(int filePos)
Method Detail

getConstValue

public java.lang.Object getConstValue()
Returns value of this expression (wrapped in the corresponding java class if value is primitive). If this expression is not constant, returns ExpressionNode.NOT_CONST.