sleep.bridges

Class FileSystemBridge

Implemented Interfaces:
Function, Loadable, Serializable

public class FileSystemBridge
extends Object
implements Loadable, Function

provides a bridge for accessing the local file system

Method Summary

Scalar
evaluate(String n, ScriptInstance i, Stack l)
Evaluate a function and return the resulting scalar.
boolean
scriptLoaded(ScriptInstance aScript)
called when a script is loaded
boolean
scriptUnloaded(ScriptInstance aScript)
called when a script is unloaded

Method Details

evaluate

public Scalar evaluate(String n,
                       ScriptInstance i,
                       Stack l)
Evaluate a function and return the resulting scalar. Only the sleep interpreter should ever call this function. If you have a maddening desire to call this Function object yourself, then use the convienence method in SleepUtils.
Specified by:
evaluate in interface Function
Parameters:
Returns:
an instance of Scalar containing the return value of this function.

scriptLoaded

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

scriptUnloaded

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