| Class Summary | |
|---|---|
| ArgumentArray | |
| ArrayContainer | |
| Assign | |
| AssignT | |
| BasicIO | provides IO functions for the sleep language |
| BasicNumbers | provides some of the basic number crunching functionality |
| BasicStrings | provides basic string parsing facilities |
| BasicSubroutine | The actual implementation of each subroutine declared with the sub keyword. |
| BasicUtilities | implementation of basic utility functions |
| Bind | |
| BindFilter | |
| BindPredicate | |
| Block |
A Block is the fundamental unit of parsed and ready to execute sleep code. To execute a block of code: ScriptInstance script; // asume Block code; // assume ScriptEnvironment env = script.getEnvironment(); Scalar value = SleepUtils.runCode(code, env); The variable value would contain the return value after the block was executed. |
| BridgeUtilities | A bridge is a class that bridges your applications API and sleep. |
| BufferObject | The buffer works as follows. |
| Call | |
| Check | A check object is the internal atomic step representing a predicate condition. |
| Checkers | A class that provides a bunch of static methods for checking a stream of sleep tokens for a certain lexical structure. |
| CodeGenerator | Generates code for the parser. |
| CollectionWrapper | A read only scalar array for wrapping data structures that implement the java.util.Collection interface. |
| CollectionWrapper.ProxyIterator | |
| CommentRule | |
| ConsoleImplementation |
The ConsoleImplementation is the "engine" behind the sleep console. |
| ConsoleProxy | a necessary interface for creating a front end to the sleep console. all messages read in or written out from the console are done through a ConsoleProxy implementation. |
| CreateClosure | |
| CreateFrame | |
| DataPattern | A DataPattern represents a data format for Sleep's IO functions. |
| Decide | |
| DefaultEnvironment | |
| DefaultVariable | |
| DoubleValue | |
| Environment |
Blocks of code associated with an identifier are processed by their environment. |
| Evaluation |
A Sleep evaluation is a way to define how a `back quoted` string should work. |
| FileObject | |
| FileSystemBridge | provides a bridge for accessing the local file system |
| FilterEnvironment |
Filtered environments are similar to normal keyword environments except they also allow a parameter specified by the user. |
| Function |
A function bridge is used to define a built-in function. |
| GeneratedSteps | A class providing static methods for constructing an atomic step of a specific type |
| Get | |
| Goto | |
| HashContainer | |
| ImportManager | This class mantains a cache of imported package names and resolve classes for a Sleep parser. |
| Index | |
| IntValue | |
| IOObject | The IOObject is the parent class for all IO Source objects that are compatible with Sleep's I/O API. When an IOObject is created, calling openRead() with the appropriate input stream will initialize this IOObject to work with IO functions that read data. |
| Iterate | |
| Iterate.IteratorData | |
| KeyValuePair | Arguments passed to functions with the form |
| LexicalAnalyzer | |
| Loadable |
A loadable bridge is used to perform actions on scripts when they are loaded and unloaded. |
| LongValue | |
| MapWrapper | A class for creating accessing a Map data structure in your application in a ready only way. |
| NullValue | |
| ObjectAccess | |
| ObjectNew | |
| ObjectUtilities | This class is sort of the center of the HOES universe containing several methods for mapping between Sleep and Java and resolving which mappings make sense. |
| ObjectValue | |
| Operate | |
| Operator |
An operator in sleep parlance is anything used to operate on two variables inside of an expression. |
| Parser | |
| ParserConfig |
This class offers access to modify some settings within the sleep parser. Install an Escape ConstantIn sleep a character prefixed by a \ backslash within a "double quoted" string is said to be escaped. |
| ParserConstants | |
| ParserUtilities | |
| PLiteral | |
| PopTry | |
| Predicate |
A predicate is an operator used inside of comparisons. |
| PredicateEnvironment |
Predicate environments are similar to normal keyword environments except instead of binding commands to an identifier they are bound to a predicate condition. In general the sleep syntax for declaring a predicate environment is: keyword (condition) { commands; }
Script predicate environment bridge keywords should be registered with the script parser before any scripts are loaded. |
| ProcessObject | |
| ProxyInterface | This class is used to mock an instance of a class that implements a specified Java interface using a Sleep function. |
| RegexBridge | Provides a bridge between Java's regex API and sleep. |
| Return | |
| Rule | |
| RuntimeWarningWatcher | Runtime errors are caught by sleep. |
| Scalar |
A scalar is the universal data type for sleep variables. |
| 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. |
| 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. |
| ScriptWarning | A package for all information related to a runtime script warning. |
| Semaphore | A sleep synchronization primitive. |
| SleepClosure | The Sleep Closure class. |
| SleepUtils | This class contains generalized utilities for instantiating/wrapping data into the sleep Scalar type. |
| SocketObject | |
| Statement | |
| Step | The root of all atomic steps. |
| StringIterator | |
| StringValue | |
| SValue | |
| SyntaxError | A class containing syntax error information. |
| TextConsole | Default implementation of the console proxy class. |
| TimeDateBridge | |
| Token | as much as possible this is a String with a line number associate with it (aka hint) |
| TokenList | |
| TokenParser | |
| Transliteration |
This class provides a character translation utility similar to the UNIX tr command. |
| Try | |
| Variable |
A variable bridge is a container for storing scalars. |
| WatchScalar | |
| YourCodeSucksException | Syntax errors are a reality of programming. |