public final class WhileStmt extends Statement implements NodeWithBody<WhileStmt>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE
Constructor and Description |
---|
WhileStmt() |
WhileStmt(Expression condition,
Statement body) |
WhileStmt(Range range,
Expression condition,
Statement body) |
Modifier and Type | Method and Description |
---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
Statement |
getBody() |
Expression |
getCondition() |
WhileStmt |
setBody(Statement body) |
void |
setCondition(Expression condition) |
addOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getChildrenNodes, getComment, getData, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, hasComment, hashCode, isPositionedAfter, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setData, setEnd, setLineComment, setParentNode, setRange, toString, toStringWithoutComments, tryAddImportToParentCompilationUnit
finalize, getClass, notify, notifyAll, wait, wait, wait
createBlockStatementAsBody
public WhileStmt()
public WhileStmt(Expression condition, Statement body)
public WhileStmt(Range range, Expression condition, Statement body)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Node
public <A> void accept(VoidVisitor<A> v, A arg)
Node
public Statement getBody()
getBody
in interface NodeWithBody<WhileStmt>
public Expression getCondition()
public WhileStmt setBody(Statement body)
setBody
in interface NodeWithBody<WhileStmt>
public void setCondition(Expression condition)
Copyright © 2007–2016. All rights reserved.