public final class ForeachStmt extends Statement implements NodeWithBody<ForeachStmt>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE| Constructor and Description |
|---|
ForeachStmt() |
ForeachStmt(Range range,
VariableDeclarationExpr var,
Expression iterable,
Statement body) |
ForeachStmt(VariableDeclarationExpr var,
Expression iterable,
Statement body) |
ForeachStmt(VariableDeclarationExpr var,
String iterable,
BlockStmt body)
Will create a
NameExpr with the iterable param |
| 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 |
getIterable() |
VariableDeclarationExpr |
getVariable() |
ForeachStmt |
setBody(Statement body) |
void |
setIterable(Expression iterable) |
void |
setVariable(VariableDeclarationExpr var) |
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, tryAddImportToParentCompilationUnitfinalize, getClass, notify, notifyAll, wait, wait, waitcreateBlockStatementAsBodypublic ForeachStmt()
public ForeachStmt(VariableDeclarationExpr var, Expression iterable, Statement body)
public ForeachStmt(Range range, VariableDeclarationExpr var, Expression iterable, Statement body)
public ForeachStmt(VariableDeclarationExpr var, String iterable, BlockStmt body)
NameExpr with the iterable paramvar - iterable - 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<ForeachStmt>public Expression getIterable()
public VariableDeclarationExpr getVariable()
public ForeachStmt setBody(Statement body)
setBody in interface NodeWithBody<ForeachStmt>public void setIterable(Expression iterable)
public void setVariable(VariableDeclarationExpr var)
Copyright © 2007–2016. All rights reserved.