|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.action.Action
org.millscript.millscript.action.ForAction
public final class ForAction
This class represents a For loop action. A for loop action may contain multiple condition/binding expressions and a single body expression. The loop conditions are represented as ForIterators, which produce and bind values as necessary. When the condition produces no more values, a check is made to see if the condition terminates the loop and it's terminate action is executed accordingly.
ForConditionAction.ForIterator| Constructor Summary | |
|---|---|
ForAction(ForConditionAction[] x,
Action b)
Constructs a new for loop action, with the supplied conditon and body actions. |
|
| Method Summary | |
|---|---|
void |
action(Machine mc)
Performs this action, on the specified machine. |
| Methods inherited from class org.millscript.millscript.action.Action |
|---|
act, act1, getLineNumber, getOrigin, predAct, setContext, setLineNumber, setOrigin |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ForAction(ForConditionAction[] x,
Action b)
x - array of for loop condition actionsb - the for loop body action| Method Detail |
|---|
public void action(Machine mc)
Action
action in class Actionmc - the machine to perform this action onAction.action(org.millscript.millscript.vm.Machine)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||