public class ForEachActionImpl extends ActionImpl implements IForEachAction
childIndex, parent, startIndex, stopIndex, tokenNEWLINE| Constructor and Description |
|---|
ForEachActionImpl() |
ForEachActionImpl(org.antlr.runtime.Token token) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(INRLAstVisitor visitor)
Accept a visitor to this node.
|
String |
dump(int indent)
Deprecated.
|
IAction |
getAction()
Return the action to execute on each member of the collection.
|
IModelReference |
getCollection()
Return the collection to iterate over.
|
IVariable |
getVariable()
If the for-each action introduces an iteration variable, this is returned
here.
|
String |
getVariableName() |
void |
setVariable(IVariable variable) |
doIndent, getColumn, getLine, getUserData, initialisePositionFromChild, setColumn, setLine, setUserDatadupNode, getCharPositionInLine, getChildIndex, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toStringaddChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTreeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetColumn, getLine, getUserData, setUserDatapublic ForEachActionImpl()
public ForEachActionImpl(org.antlr.runtime.Token token)
public void accept(INRLAstVisitor visitor)
INRLAstNodeaccept in interface INRLAstNodeaccept in class Antlr3NRLBaseAstvisitor - the visitor@Deprecated public String dump(int indent)
INRLAstNodedump in interface INRLAstNodedump in class Antlr3NRLBaseAstindent - the indentation count, 0 on first callpublic IModelReference getCollection()
IForEachActiongetCollection in interface IForEachActionpublic IAction getAction()
IForEachActionICompoundAction or a
IConditionalAction.getAction in interface IForEachActionpublic String getVariableName()
public IVariable getVariable()
IForEachAction
If the action uses a short form without a variable, for example
for each trade, ..., then this returns null.
getVariable in interface IForEachActionpublic void setVariable(IVariable variable)
Copyright © 2006-2013. All Rights Reserved.