|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IForEachAction
An iterative action that executes child actions over each member of a collection.
The context of each child action is the type being iterated over.
Field Summary |
---|
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode |
---|
NEWLINE |
Method Summary | |
---|---|
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. |
Methods inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode |
---|
accept, dump, getColumn, getLine, getUserData, setUserData |
Method Detail |
---|
IModelReference getCollection()
IVariable getVariable()
If the action uses a short form without a variable, for example
for each trade, ...
, then this returns null.
IAction getAction()
ICompoundAction
or a
IConditionalAction
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |