|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--yakscript.YakScript
A YakScript interpreter
| Field Summary | |
java.util.Properties |
config
Configuration properties |
boolean |
debug
|
DisplayInterface |
display
Instance of DisplayInterface for callbacks |
java.util.Hashtable |
f
Hashtable of all Frames in currently loaded script ##TODO## should not be public |
static double |
YAKSCRIPT_VERSION
Version of YakScript implemented (will refuse to run scripts denoted with higher versions) |
| Constructor Summary | |
YakScript()
|
|
| Method Summary | |
void |
doAction(java.lang.String _key)
Act on key |
void |
doInitAction()
Perform initial action |
boolean |
doTrigger(java.lang.String key)
Act on trigger event |
void |
execAction(java.lang.String key)
|
java.util.Vector |
getKeys()
Get keys for the current frame (filter out all keys starting with "_" and performing variable substitution first) |
java.util.Stack |
getStack()
Return the script's entire frame stack |
FrameState |
getState()
Return the script's current FrameState |
java.lang.String |
getTitle()
Get the title for the current frame |
boolean |
load(java.lang.String name)
Load in a script and prepare it for use |
void |
printError(java.lang.String e)
|
static void |
printWarning(java.lang.String e,
java.lang.String key,
java.lang.String frame)
|
void |
register(DisplayInterface _display,
java.lang.String[] args)
Register a Display for use and configure YakScript instance |
void |
start()
Start executing script contents |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static double YAKSCRIPT_VERSION
public java.util.Hashtable f
public DisplayInterface display
public java.util.Properties config
public boolean debug
| Constructor Detail |
public YakScript()
| Method Detail |
public void register(DisplayInterface _display,
java.lang.String[] args)
_display - Implementation of DisplayInterface for callbacksargs - Arguments to be interpretedpublic boolean load(java.lang.String name)
name - Filename of script to loadpublic void start()
public void execAction(java.lang.String key)
public void doAction(java.lang.String _key)
key - Selected keypublic java.util.Stack getStack()
public FrameState getState()
public java.lang.String getTitle()
public java.util.Vector getKeys()
public boolean doTrigger(java.lang.String key)
key - Trigger key stringpublic void doInitAction()
public static void printWarning(java.lang.String e,
java.lang.String key,
java.lang.String frame)
public void printError(java.lang.String e)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||