public final class WhileLoopStatement extends LoopStatementBase
Modifier and Type | Field and Description |
---|---|
Statement |
body |
ValueExpression |
cond |
Modifier and Type | Method and Description |
---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
accept(ASTVisitorOld visitor)
Accept visitor for a visit.
|
void |
acceptChildren(ASTVisitor visitor)
Accept visitor for a visit to the children of this node.
|
static WhileLoopStatement |
construct(ValueExpression cond,
Statement body)
Construct a while loop.
|
java.lang.String |
getKind()
Get type of statement.
|
getLoopAnnotation, setLoopAnnotation
getAnnotation, getJudgement, setAnnotation, setJudgement
getPosition, setPosition
accept, accept, print, printCore, toString, toStringCore
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getJudgement, setJudgement
getPosition, setPosition
getAnnotation, setAnnotation
print, printCore, toString, toStringCore
public final ValueExpression cond
public final Statement body
public static WhileLoopStatement construct(ValueExpression cond, Statement body)
cond
- the loop condition.body
- the loop bodypublic void accept(ASTVisitorOld visitor)
accept
in interface AST
accept
in class LoopStatementBase
visitor
- the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class LoopStatementBase
visitor
- the visitor who is accepted by this node.public void acceptChildren(ASTVisitor visitor)
acceptChildren
in interface AST
acceptChildren
in class LoopStatementBase
visitor
- the visitor who is accepted by the children of this node.public java.lang.String getKind()