public final class ForeachStmt extends Statement
| Constructor and Description |
|---|
ForeachStmt() |
ForeachStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
VariableDeclarationExpr var,
Expression iterable,
Statement body) |
ForeachStmt(VariableDeclarationExpr var,
Expression iterable,
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.
|
ForeachStmt |
clone() |
Statement |
getBody() |
List<Node> |
getChildren() |
Expression |
getIterable() |
VariableDeclarationExpr |
getVariable() |
boolean |
removeChild(Node child) |
boolean |
replaceChildNode(Node oldChild,
Node newChild) |
void |
setBody(Statement body) |
void |
setIterable(Expression iterable) |
void |
setVariable(VariableDeclarationExpr var) |
getSymbolData, setSymbolDatacheck, clone, clone, contains, diableConstraints, enableConstraints, equals, getBeginColumn, getBeginLine, getCommonAncestor, getConstraints, getData, getEndColumn, getEndLine, getParentNode, getPrettySource, getPrettySource, hashCode, isAncestorOf, isInEqualLocation, isNewNode, isPreviousThan, remove, replaceChildNodeInList, setAsParentNodeOf, setAsParentNodeOf, setBeginColumn, setBeginLine, setConstraints, setData, setEndColumn, setEndLine, toString, updateReferencespublic ForeachStmt()
public ForeachStmt(VariableDeclarationExpr var, Expression iterable, Statement body)
public ForeachStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
VariableDeclarationExpr var,
Expression iterable,
Statement body)
public boolean removeChild(Node child)
removeChild in class Nodepublic List<Node> getChildren()
getChildren in class Statementpublic <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic Statement getBody()
public Expression getIterable()
public VariableDeclarationExpr getVariable()
public void setBody(Statement body)
public void setIterable(Expression iterable)
public void setVariable(VariableDeclarationExpr var)
public boolean replaceChildNode(Node oldChild, Node newChild)
replaceChildNode in class Nodepublic ForeachStmt clone() throws CloneNotSupportedException
clone in class StatementCloneNotSupportedExceptionCopyright © 2018. All rights reserved.