|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsleep.bridges.DefaultEnvironment
public class DefaultEnvironment
Constructor Summary | |
---|---|
DefaultEnvironment()
|
Method Summary | |
---|---|
void |
bindFunction(ScriptInstance si,
java.lang.String type,
java.lang.String name,
Block code)
binds a function (functionName) of a certain type (typeKeyword) to the defined functionBody. |
void |
scriptLoaded(ScriptInstance si)
called when a script is loaded |
void |
scriptUnloaded(ScriptInstance si)
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 DefaultEnvironment()
Method Detail |
---|
public void scriptUnloaded(ScriptInstance si)
Loadable
scriptUnloaded
in interface Loadable
public void scriptLoaded(ScriptInstance si)
Loadable
scriptLoaded
in interface Loadable
public void bindFunction(ScriptInstance si, java.lang.String type, java.lang.String name, Block code)
Environment
bindFunction
in interface Environment
type
- the keyword for the function. (i.e. sub)name
- the function name (i.e. add)code
- the compiled body of the function (i.e. code to add 2 numbers)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |