kmy.jint.tree
Class CondNode

java.lang.Object
  |
  +--kmy.jint.tree.BasicNode
        |
        +--kmy.jint.tree.ExpressionNode
              |
              +--kmy.jint.tree.CondNode

public class CondNode
extends ExpressionNode


Field Summary
 ExpressionNode arg1
           
 ExpressionNode arg2
           
 ExpressionNode cond
           
 
Fields inherited from class kmy.jint.tree.ExpressionNode
clazz, NOT_CONST
 
Fields inherited from class kmy.jint.tree.BasicNode
attachment, filePos
 
Constructor Summary
CondNode(int filePos, ExpressionNode cond, ExpressionNode arg1, ExpressionNode arg2)
           
 
Method Summary
 java.lang.Object eval(Context context)
          Calls corresponding eval* method in the given Context.
 
Methods inherited from class kmy.jint.tree.ExpressionNode
getConstValue
 
Methods inherited from class kmy.jint.tree.BasicNode
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

cond

public ExpressionNode cond

arg1

public ExpressionNode arg1

arg2

public ExpressionNode arg2
Constructor Detail

CondNode

public CondNode(int filePos,
                ExpressionNode cond,
                ExpressionNode arg1,
                ExpressionNode arg2)
Method Detail

eval

public java.lang.Object eval(Context context)
Description copied from class: BasicNode
Calls corresponding eval* method in the given Context.
Overrides:
eval in class BasicNode