|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.ast.ASTree
coins.ast.stmnt.TreeStmnt
coins.ast.stmnt.ForStmnt
For statement.
The for statement is decomposed into four parts:
for ( initializer ; conditin ; iterator )
statement
| Field Summary |
| Fields inherited from class coins.ast.stmnt.TreeStmnt |
left, right |
| Constructor Summary | |
ForStmnt(java.lang.String fname,
int line)
|
|
| Method Summary | |
void |
accept(Visitor v)
Is a method for the visitor pattern. |
Stmnt |
getBody()
Returns the loop body. |
Expr |
getCondition()
Returns the condition expression. |
Expr |
getInitializer()
Returns the initializer expression. |
Expr |
getIteration()
Returns the iteration expression. |
protected java.lang.String |
getTag()
Returns the type of this node. |
ForStmnt |
set(Expr init,
Expr cond,
Expr iterate,
CompoundStmnt body)
|
| Methods inherited from class coins.ast.stmnt.TreeStmnt |
fileName, getLeft, getRight, lineNumber, setLeft, setRight |
| Methods inherited from class coins.ast.ASTree |
putSeparator, rightToString, toString, toString1 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ForStmnt(java.lang.String fname,
int line)
| Method Detail |
public ForStmnt set(Expr init,
Expr cond,
Expr iterate,
CompoundStmnt body)
public void accept(Visitor v)
ASTreeatXXX() on the given visitor, where
XXX is the class name of the node object.
accept in class ASTreepublic Expr getInitializer()
public Expr getCondition()
public Expr getIteration()
public Stmnt getBody()
protected java.lang.String getTag()
ASTreetoString().
getTag in class TreeStmnt
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||