ca.uwaterloo.cs.ql.interp
Class IfStatementNode
java.lang.Object
ca.uwaterloo.cs.ql.interp.SyntaxTreeNode
ca.uwaterloo.cs.ql.interp.StatementNode
ca.uwaterloo.cs.ql.interp.IfStatementNode
public class IfStatementNode
- extends StatementNode
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IfStatementNode
public IfStatementNode(ExpressionNode expNode,
StatementNode thenNode)
IfStatementNode
public IfStatementNode(ExpressionNode expNode,
StatementNode thenNode,
StatementNode elseNode)
evaluate
public Value evaluate(Env env)
throws EvaluationException
- Specified by:
evaluate in class SyntaxTreeNode
- Throws:
EvaluationException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object