|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectASTNode
StmtNode
ForStmtNode
public class ForStmtNode
An AST node representing a for statement: "FOR variable IN low DOTDOT high LOOP stmts END LOOP;".
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ASTNode |
|---|
ASTNode.DataType |
| Constructor Summary | |
|---|---|
ForStmtNode(IdNode id,
ExprNode low,
ExprNode high,
java.util.List<StmtNode> body)
Creates a new ForStmtNode. |
|
| Method Summary | |
|---|---|
void |
unparse(java.io.PrintWriter p,
int level)
Prints a source representation of the tree rooted at this node on output stream p. |
| Methods inherited from class ASTNode |
|---|
indent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ForStmtNode(IdNode id,
ExprNode low,
ExprNode high,
java.util.List<StmtNode> body)
id - the bound variablelow - the lower boundhigh - the higher boundbody - the body of the loop.| Method Detail |
|---|
public void unparse(java.io.PrintWriter p,
int level)
unparse in class ASTNodep - the place to display the output.level - the number of levels of indentation to use if the output
requires more than one line.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||