|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--yakscript.Action
|
+--yakscript.action.Goto
Syntax: Goto <frame> [arguments...]
Changes to frame immediately, ignoring any actions that may be left in the current frame, and executing the new frame .init action if one exists. Any arguments given can be accessed from the next frame as variables, referred to in shell-script style as $1, $2, $3, etc. $0 represents name of the previous frame. All other variables are preserved.
| Fields inherited from class yakscript.Action |
arguments, condition |
| Constructor Summary | |
Goto()
|
|
| Method Summary | |
boolean |
exec(YakScript ys)
Executes this action Override this to actually provide the functionality of your action |
java.lang.String |
getKeyword()
Return the keyword of this action |
boolean |
isFinal()
Whether execution of the current action should stop after this command Returns false by default, override this and return true if the action permanently goes to a new state (eg. |
boolean |
isInitial()
Whether the initial action should be executed after this command Returns false by default, override this and return true if your keyword causes a switch to a new FrameState, eg. |
void |
setArguments(java.util.StringTokenizer _arguments)
Set the arguments for this action and verify their contents Override this if you need to perform syntax checking on the arguments passed to your action |
| Methods inherited from class yakscript.Action |
isCondition, setCondition |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Goto()
| Method Detail |
public java.lang.String getKeyword()
ActiongetKeyword in class Actionyakscript.Actionpublic boolean isInitial()
ActionisInitial in class Actionyakscript.Actionpublic boolean isFinal()
ActionisFinal in class Actionyakscript.Action
public void setArguments(java.util.StringTokenizer _arguments)
throws SyntaxErrorException
ActionsetArguments in class Actionyakscript.Actionargs - Arguments to passSyntaxErrorException - Thrown if the arguments are
syntactically invalid for this actionpublic boolean exec(YakScript ys)
Actionexec in class Actionyakscript.ActionyakScript - Currently executing instance of YakScript
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||