|
||||||||||
| 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.WhileAction
public final class WhileAction
This class implements the action for a while expression. This
action performs a predicate action and if it's result is true a
body action is performed, otherwise the action ends. Once the body action is
performed we return to the start and perform the predicate again.
WhileExpr,
WhileSyntax| Constructor Summary | |
|---|---|
WhileAction(Action a,
Action b)
Constructs a new while action, to perform the specified
body action while the specified predicate action returns
true. |
|
| 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 WhileAction(Action a,
Action b)
while action, to perform the specified
body action while the specified predicate action returns
true.
a - the predicate actionb - the 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 | |||||||||