|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.uwaterloo.cs.ql.interp.SyntaxTreeNode
ca.uwaterloo.cs.ql.interp.StatementNode
ca.uwaterloo.cs.ql.interp.ForStatementNode
public class ForStatementNode
| Constructor Summary | |
|---|---|
ForStatementNode(VariableNode varNode,
ExpressionNode expNode,
StatementNode bodyNode)
Constructs ForStatementNode. |
|
| Method Summary | |
|---|---|
Value |
evaluate(Env env)
|
java.lang.String |
toString()
|
| Methods inherited from class ca.uwaterloo.cs.ql.interp.StatementNode |
|---|
getIndent, propagate, shortFormLocation |
| Methods inherited from class ca.uwaterloo.cs.ql.interp.SyntaxTreeNode |
|---|
getLocation, setLocation, strLocation |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ForStatementNode(VariableNode varNode,
ExpressionNode expNode,
StatementNode bodyNode)
varNode - the variable.expNode - the expression.
Its evaluated type must be set.bodyNode - the body statement.| Method Detail |
|---|
public Value evaluate(Env env)
throws EvaluationException
evaluate in class SyntaxTreeNodeEvaluationExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||