|
||||||||||
| 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.SwitchAction
public final class SwitchAction
This class implements the action for a switch expression.
SwitchExpr,
SwitchSyntax| Constructor Summary | |
|---|---|
SwitchAction(Action a,
Action[] b,
int[] s,
Action[] c,
Action d)
Constructs a new switch action with the specified choice,
predicate, case-body lookup, case-body and default 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 SwitchAction(Action a,
Action[] b,
int[] s,
Action[] c,
Action d)
switch action with the specified choice,
predicate, case-body lookup, case-body and default actions.
a - the choice actionb - the array of predicate actionss - the array for predicate to case-body action lookupsc - the array of case-body actionsd - the default 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 | |||||||||