public class DoStatement extends WhileStatement
body, condition
byteOffset, line, nodeID, symbolTable
Constructor and Description |
---|
DoStatement(Statement b,
Expression c,
int line,
int byteOffset)
Full constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a new object with the same primitive data, and recursively creates new member data
objects as well.
|
ASTNodeIterator |
iterator()
Returns an iterator used to successively access the children of this node.
|
void |
runPass(Pass pass)
Ensures that the correct
run() method is called for this type of node. |
void |
write(StringBuffer buffer)
Writes a string representation of this
ASTNode to the specified buffer. |
equals, hashCode
public DoStatement(Statement b, Expression c, int line, int byteOffset)
b
- The body of the loop.c
- The terminating condition.line
- The line on which the source code represented by this node is found.byteOffset
- The byte offset from the beginning of the source file at which the source
code represented by this node is found.public ASTNodeIterator iterator()
iterator
in class WhileStatement
public Object clone()
clone
in class WhileStatement
public void runPass(Pass pass)
run()
method is called for this type of node.runPass
in class WhileStatement
pass
- The pass whose run()
method should be called.public void write(StringBuffer buffer)
ASTNode
to the specified buffer. The
representation written is parsable by the LBJava compiler, but not very readable.write
in class WhileStatement
buffer
- The buffer to write to.Copyright © 2016. All rights reserved.