kmy.jint.tree
Class IfNode

java.lang.Object
  |
  +--kmy.jint.tree.BasicNode
        |
        +--kmy.jint.tree.StatementNode
              |
              +--kmy.jint.tree.IfNode

public class IfNode
extends StatementNode


Field Summary
 ExpressionNode cond
           
 StatementNode elsePart
           
 StatementNode thenPart
           
 
Fields inherited from class kmy.jint.tree.BasicNode
attachment, filePos
 
Constructor Summary
IfNode(int filePos, ExpressionNode cond, StatementNode thenPart, StatementNode elsePart)
           
 
Method Summary
 java.lang.Object eval(Context context)
          Calls corresponding eval* method in the given Context.
 
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

thenPart

public StatementNode thenPart

elsePart

public StatementNode elsePart
Constructor Detail

IfNode

public IfNode(int filePos,
              ExpressionNode cond,
              StatementNode thenPart,
              StatementNode elsePart)
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