sleep.bridges

Class DefaultEnvironment

Implemented Interfaces:
Environment, Loadable

public class DefaultEnvironment
extends Object
implements Loadable, Environment

Field Summary

HashMap
func

Method Summary

void
bindFunction(ScriptInstance si, String type, String name, Block code)
protected BasicSubroutine
getNextSafeSubroutine(BasicSubroutine function)
boolean
scriptLoaded(ScriptInstance si)
called when a script is loaded
boolean
scriptUnloaded(ScriptInstance si)
called when a script is unloaded

Field Details

func

public HashMap func

Method Details

bindFunction

public void bindFunction(ScriptInstance si,
                         String type,
                         String name,
                         Block code)
Specified by:
bindFunction in interface Environment

getNextSafeSubroutine

protected BasicSubroutine getNextSafeSubroutine(BasicSubroutine function)

scriptLoaded

public boolean scriptLoaded(ScriptInstance si)
called when a script is loaded
Specified by:
scriptLoaded in interface Loadable

scriptUnloaded

public boolean scriptUnloaded(ScriptInstance si)
called when a script is unloaded
Specified by:
scriptUnloaded in interface Loadable