public final class ForStmt extends Statement implements NodeWithBody<ForStmt>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE| Constructor and Description |
|---|
ForStmt() |
ForStmt(List<Expression> init,
Expression compare,
List<Expression> update,
Statement body) |
ForStmt(Range range,
List<Expression> init,
Expression compare,
List<Expression> update,
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 |
getCompare() |
List<Expression> |
getInit() |
List<Expression> |
getUpdate() |
ForStmt |
setBody(Statement body) |
ForStmt |
setCompare(Expression compare) |
ForStmt |
setInit(List<Expression> init) |
ForStmt |
setUpdate(List<Expression> update) |
addOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getChildrenNodes, getComment, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, getUserData, hasComment, hashCode, isPositionedAfter, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setEnd, setLineComment, setParentNode, setRange, setUserData, toString, toStringWithoutComments, tryAddImportToParentCompilationUnitfinalize, getClass, notify, notifyAll, wait, wait, waitcreateBlockStatementAsBodypublic ForStmt()
public ForStmt(List<Expression> init, Expression compare, List<Expression> update, Statement body)
public ForStmt(Range range, List<Expression> init, Expression compare, List<Expression> update, Statement body)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic Statement getBody()
getBody in interface NodeWithBody<ForStmt>public Expression getCompare()
public List<Expression> getInit()
public List<Expression> getUpdate()
public ForStmt setBody(Statement body)
setBody in interface NodeWithBody<ForStmt>public ForStmt setCompare(Expression compare)
public ForStmt setInit(List<Expression> init)
public ForStmt setUpdate(List<Expression> update)
Copyright © 2007–2016. All rights reserved.