Interface Summary | |
---|---|
ScalarArray |
This interface lets you implement your own data structure behind a scalar array. To instantiate a custom scalar array: Scalar temp = SleepUtils.getArrayScalar(new MyScalarArray());
When implementing the following interface, keep in mind you are implementing an interface to an array data structure. |
ScalarHash |
This interface lets you create your own scalar hash implementation. To create a new type of scalar hash: create a class that implements the sleep.runtime.ScalarHash interface. |
ScalarType |
This interface makes it possible to create a new scalar type. |
Class Summary | |
---|---|
CollectionWrapper | A read only scalar array for wrapping data structures that implement the java.util.Collection interface. |
CollectionWrapper.ProxyIterator | |
MapWrapper | A class for creating accessing a Map data structure in your application in a ready only way. |
Scalar |
A scalar is the universal data type for sleep variables. |
ScriptEnvironment |
This class contains methods for accessing the data stack, return value of a function, and the environment hashtable for a script. |
ScriptEnvironment.Context | |
ScriptEnvironment.ExceptionContext | |
ScriptInstance | Every piece of information related to a loaded script. |
ScriptInstance.ProfilerStatistic | A container for a profile statistic about a sleep function |
ScriptInstance.SleepStackElement | A container for Sleep strack trace elements. |
ScriptLoader |
The ScriptLoader is a convienence container for instantiating and managing ScriptInstances. To load a script from a file and run it:ScriptLoader loader = new ScriptLoader(); ScriptInstance script = loader.loadScript("script.sl"); script.runScript(); The above will load the file script.sl and then execute it immediately. Installation of loadable bridges you create can also be managed by the ScriptLoader. A loadable bridge is installed into the language by adding it to a script loader class. |
ScriptVariables | Maintains variables and variable scopes for a script instance. |
SleepUtils | This class contains generalized utilities for instantiating/wrapping data into the sleep Scalar type. |
WatchScalar |