public class ForUpdates extends JavaNonTerminalProgramElement implements ExpressionContainer, IForUpdates
| Modifier and Type | Field and Description |
|---|---|
(package private) ImmutableArray<Expression> |
updates |
| Constructor and Description |
|---|
ForUpdates(ExtList ups,
PositionInfo pos) |
ForUpdates(ImmutableArray<Expression> exprarr) |
| Modifier and Type | Method and Description |
|---|---|
ProgramElement |
getChildAt(int index)
Returns the child at the specified index in this node's "virtual"
child array.
|
int |
getChildCount()
Returns the number of children of this node.
|
Expression |
getExpressionAt(int index) |
int |
getExpressionCount()
Get the number of expressions in this container.
|
ImmutableArray<Expression> |
getUpdates() |
int |
size() |
void |
visit(Visitor v)
calls the corresponding method of a visitor in order to
perform some action/transformation on this element
|
compatibleBlockSize, computeHashCode, equals, equalsModRenaming, getArrayPos, match, matchChildrengetComments, hashCode, prettyPrint, prettyPrintMain, reuseSignaturegetEndPosition, getFirstElement, getFirstElementIncludingBlocks, getLastElement, getParentClass, getPositionInfo, getRelativePosition, getStartPosition, setParentClass, toSource, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetComments, matchequalsModRenaming, getEndPosition, getFirstElement, getFirstElementIncludingBlocks, getLastElement, getPositionInfo, getRelativePosition, getStartPosition, prettyPrintImmutableArray<Expression> updates
public ForUpdates(ImmutableArray<Expression> exprarr)
public ForUpdates(ExtList ups, PositionInfo pos)
public int getExpressionCount()
getExpressionCount in interface ExpressionContainerpublic Expression getExpressionAt(int index)
getExpressionAt in interface ExpressionContainergetExpressionAt in interface IForUpdatespublic int size()
size in interface IForUpdatespublic ImmutableArray<Expression> getUpdates()
getUpdates in interface IForUpdatespublic void visit(Visitor v)
SourceElementvisit in interface SourceElementv - the Visitorpublic int getChildCount()
NonTerminalProgramElementgetChildCount in interface NonTerminalProgramElementpublic ProgramElement getChildAt(int index)
NonTerminalProgramElementgetChildAt in interface NonTerminalProgramElementindex - an index into this node's "virtual" child array