|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsleep.bridges.BasicIO
public class BasicIO
provides IO functions for the sleep language
Constructor Summary | |
---|---|
BasicIO()
|
Method Summary | |
---|---|
Scalar |
evaluate(String n,
ScriptInstance i,
Stack l)
Evaluate a function and return the resulting scalar. |
void |
scriptLoaded(ScriptInstance aScript)
called when a script is loaded |
void |
scriptUnloaded(ScriptInstance aScript)
called when a script is unloaded |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicIO()
Method Detail |
---|
public void scriptUnloaded(ScriptInstance aScript)
Loadable
scriptUnloaded
in interface Loadable
public void scriptLoaded(ScriptInstance aScript)
Loadable
scriptLoaded
in interface Loadable
public Scalar evaluate(String n, ScriptInstance i, Stack l)
Function
evaluate
in interface Function
n
- the function being called.i
- an instance of the script calling this function.l
- a stack containing the locals passed to this function. The locals are Scalar values passed in reverse order i.e. [arg n, arg n-1, ..., arg 1, arg 0]
SleepUtils.runCode(Function, String, ScriptInstance, Stack)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |