- callClosure(String, ScriptInstance, Stack) - Method in class sleep.bridges.SleepClosure
-
"Safely" calls this closure.
- callFunction(String, Stack) - Method in class sleep.runtime.ScriptInstance
-
Calls a subroutine/built-in function using this script.
- calls - Variable in class sleep.runtime.ScriptInstance.ProfilerStatistic
-
the total number of times this function has been called
- chdir(File) - Method in class sleep.runtime.ScriptInstance
-
sets the current working directory value for this script
- Check - Class in sleep.engine.atoms
-
A check object is the internal atomic step representing a predicate condition.
- Check(String, Block) - Constructor for class sleep.engine.atoms.Check
-
Constructs a check object, call by the sleep engine.
- check(ScriptEnvironment) - Method in class sleep.engine.atoms.Check
-
Performs this "check".
- checkArguments(Stack) - Static method in class sleep.taint.TaintUtils
-
checks the specified argument stack for tainted values.
- checkError() - Method in class sleep.runtime.ScriptEnvironment
-
once an error is checked using this function, it is cleared, the orignal error message is returned as well
- cleanFrame(int) - Method in class sleep.runtime.ScriptEnvironment
-
markFrame and cleanFrame are used to keep the sleep stack in good order after certain error conditions
- clearReturn() - Method in class sleep.runtime.ScriptEnvironment
-
Clears the return value from the last executed function.
- clearStackTrace() - Method in class sleep.runtime.ScriptInstance
-
Removes the top element of the stack trace
- close() - Method in class sleep.bridges.io.IOObject
-
Closes all of the reader's / writer's opened by this IOObject.
- closure - Variable in class sleep.runtime.ScriptVariables
-
- code - Variable in class sleep.error.SyntaxError
-
- collect(String, int, long) - Method in class sleep.runtime.ScriptInstance
-
this function is used internally by the sleep interpreter to collect profiler statistics
when DEBUG_TRACE_CALLS or DEBUG_TRACE_PROFILE_ONLY is enabled
- compareTo(Object) - Method in class sleep.runtime.ScriptInstance.ProfilerStatistic
-
used to compare this statistic to other statistics for the sake of sorting
- compileScript(String, InputStream) - Method in class sleep.runtime.ScriptLoader
-
compiles a script using the specified stream as a source
- compileScript(File) - Method in class sleep.runtime.ScriptLoader
-
compiles the specified script file
- compileScript(String) - Method in class sleep.runtime.ScriptLoader
-
compiles the specified script file
- compileScript(String, String) - Method in class sleep.runtime.ScriptLoader
-
compiles the specified script into a runnable block
- ConsoleImplementation - Class in sleep.console
-
The ConsoleImplementation is the "engine" behind the sleep console.
- ConsoleImplementation() - Constructor for class sleep.console.ConsoleImplementation
-
Creates an implementation of the sleep console.
- ConsoleImplementation(Hashtable, Variable, ScriptLoader) - Constructor for class sleep.console.ConsoleImplementation
-
Creates an implementation of the sleep console that shares what your application is already using.
- consolePrint(String) - Method in class sleep.console.ConsoleImplementation
-
Dummy implementation, does nothing really.
- consolePrint(String) - Method in interface sleep.console.ConsoleProxy
-
print a message to the console with no newline
- consolePrintln(Object) - Method in class sleep.console.ConsoleImplementation
-
Dummy implementation, does nothing.
- consolePrintln(Object) - Method in interface sleep.console.ConsoleProxy
-
print a message to the console with a newline
- ConsoleProxy - Interface in sleep.console
-
a necessary interface for creating a front end to the sleep console.
- consoleReadln() - Method in class sleep.console.ConsoleImplementation
-
Dummy implementation, always returns null.
- consoleReadln() - Method in interface sleep.console.ConsoleProxy
-
read a message in from the console.
- context - Variable in class sleep.runtime.ScriptEnvironment
-
- contextStack - Variable in class sleep.runtime.ScriptEnvironment
-
- convertDescriptionToClass(String) - Static method in class sleep.engine.ObjectUtilities
-
converts the one character class description to the specified Class type, i.e.
- convertScalarDescriptionToClass(Scalar) - Static method in class sleep.engine.ObjectUtilities
-
this function checks if the specified scalar is a Class literal and uses that if it is, otherwise description is converted to a string and the convertDescriptionToClass method is used
- copyValue() - Method in interface sleep.runtime.ScalarType
-
create a clone of this scalar's value.
- CreateFrame(Stack) - Method in class sleep.runtime.ScriptEnvironment
-
- CreateFrame() - Method in class sleep.runtime.ScriptEnvironment
-
- createInternalVariableContainer() - Method in interface sleep.interfaces.Variable
-
returns which variable environment is used to store non-global / non-local variables.
- createLocalVariableContainer() - Method in interface sleep.interfaces.Variable
-
returns which variable environment is used to temporarily store local variables.
- currentHandler - Variable in class sleep.runtime.ScriptEnvironment
-
- cwd() - Method in class sleep.runtime.ScriptInstance
-
return the current working directory value associated with this script.
- getAccessOrderedHashScalar() - Static method in class sleep.runtime.SleepUtils
-
returns an empty access ordered hashmap scalar
- getActualValue() - Method in class sleep.runtime.Scalar
-
Returns the actual non-array/non-hash value this scalar contains.
- getAndRemoveMetadata(Object, Object) - Method in class sleep.bridges.SleepClosure
-
obtain a key from the metadata store associated with this closure
- getApproximateLineNumber() - Method in class sleep.engine.Block
-
Returns an approximated line number for the steps in this block object...
- getApproximateLineRange() - Method in class sleep.engine.Block
-
Returns an approximate range of line numbers for the steps in this block object.
- getArgumentStack(Map) - Static method in class sleep.runtime.SleepUtils
-
Generate a java.util.Stack of sleep.bridges.KeyValuePair arguments from a Map.
- getArray(Stack) - Static method in class sleep.bridges.BridgeUtilities
-
grab a sleep array, if the stack is empty a scalar array with no elements will be returned.
- getArray() - Method in class sleep.runtime.Scalar
-
returns a scalar array referenced by this scalar iff this scalar contains an array reference
- getArrayScalar(ScalarArray) - Static method in class sleep.runtime.SleepUtils
-
Creates a scalar with the specified ScalarArray as the value
- getArrayScalar() - Static method in class sleep.runtime.SleepUtils
-
returns a Scalar variable containing a SLEEP array as its value (everything in SLEEP is stored as a Scalar
- getArrayType(Scalar, Class) - Static method in class sleep.engine.ObjectUtilities
-
Determines the primitive type of the specified array.
- getArrayWrapper(Collection) - Static method in class sleep.runtime.SleepUtils
-
An easy way to make your programs data structures available in the script environment.
- getAt(int) - Method in interface sleep.runtime.ScalarArray
-
get an element at the specified index
- getAt(Scalar) - Method in interface sleep.runtime.ScalarHash
-
Retrieves a scalar from the hashtable.
- getBlock(String) - Method in class sleep.runtime.ScriptEnvironment
-
- getCharset() - Method in class sleep.runtime.ScriptLoader
-
- getClass(Stack, Class) - Static method in class sleep.bridges.BridgeUtilities
-
grab a class, if the stack is empty the default value will be returned
- getClosureVariables() - Method in class sleep.runtime.ScriptVariables
-
returns the current closure variable scope
- getClosureVariables(SleepClosure) - Method in class sleep.runtime.ScriptVariables
-
returns the closure level variables for this specific script environment
- getCodeSnippet() - Method in class sleep.error.SyntaxError
-
return an isolated snippet of code from where the error occured
- getConsole(ScriptEnvironment) - Static method in class sleep.bridges.io.IOObject
-
returns an IOObject that represents stdin/stdout to Sleep's I/O API.
- getContextMetadata(Object) - Method in class sleep.runtime.ScriptEnvironment
-
Returns the data associated with the particular key for this context.
- getContextMetadata(Object, Object) - Method in class sleep.runtime.ScriptEnvironment
-
Returns the data associated with the particular key for this context.
- getCurrentFrame() - Method in class sleep.runtime.ScriptEnvironment
-
- getCurrentSource() - Method in class sleep.runtime.ScriptEnvironment
-
obtain the filename of the current source of execution
- getData() - Method in interface sleep.runtime.ScalarHash
-
Return the data structure backing this hash please
- getDebugFlags() - Method in class sleep.runtime.ScriptInstance
-
retrieve the debug flags for this script
- getDebugString() - Method in class sleep.runtime.ScriptEnvironment
-
- getDescription() - Method in class sleep.error.SyntaxError
-
return a best guess description of what the error in the code might actually be
- getDouble(Stack) - Static method in class sleep.bridges.BridgeUtilities
-
grab a double.
- getDouble(Stack, double) - Static method in class sleep.bridges.BridgeUtilities
-
grab a double, if the stack is empty the default value will be returned
- getEmptyScalar() - Static method in class sleep.runtime.SleepUtils
-
returns the null scalar, which will always be equal to 0, "", and null simultaneously.
- getEnvironment() - Method in class sleep.runtime.ScriptEnvironment
-
Returns the environment for this script.
- getEnvironmentStack() - Method in class sleep.runtime.ScriptEnvironment
-
returns the environment stack used for temporary calculations and such.
- getErrors() - Method in exception sleep.error.YourCodeSucksException
-
All of the errors are stored in a linked list.
- getExceptionHandler() - Method in class sleep.runtime.ScriptEnvironment
-
preps and returns the current exception handler...
- getExceptionMessage() - Method in class sleep.runtime.ScriptEnvironment
-
if there is no handler, we'll just get the message which will clear the thrown message as well
- getFile(Stack, ScriptInstance) - Static method in class sleep.bridges.BridgeUtilities
-
returns a File object from a string argument, the path in the string argument is transformed such
that the character / will refer to the correct path separator for the current OS.
- getFilterEnvironment(String) - Method in class sleep.runtime.ScriptEnvironment
-
- getFirstScriptEnvironment() - Method in class sleep.runtime.ScriptLoader
-
Convienence method to return the script environment of the first script tht was loaded, returns null if no scripts are loaded
- getFlowControlRequest() - Method in class sleep.runtime.ScriptEnvironment
-
- getFunction(Stack, ScriptInstance) - Static method in class sleep.bridges.BridgeUtilities
-
retrieves an executable Function object from the stack.
- getFunction(String) - Method in class sleep.runtime.ScriptEnvironment
-
- getFunctionEnvironment(String) - Method in class sleep.runtime.ScriptEnvironment
-
- getFunctionFromScalar(Scalar) - Static method in class sleep.runtime.SleepUtils
-
extracts a callable Function from the passed in Scalar.
- getFunctionFromScalar(Scalar, ScriptInstance) - Static method in class sleep.runtime.SleepUtils
-
extracts a callable Function from the passed in Scalar.
- getGlobalVariables() - Method in class sleep.runtime.ScriptVariables
-
returns the global variable scope
- getHash(Stack) - Static method in class sleep.bridges.BridgeUtilities
-
grab a sleep hash, if the stack is empty a scalar hash with no members will be returned.
- getHash() - Method in class sleep.runtime.Scalar
-
returns a scalar hash referenced by this scalar iff this scalar contains a hash reference
- getHashScalar(ScalarHash) - Static method in class sleep.runtime.SleepUtils
-
Creates a scalar with the specified ScalarHash as the value
- getHashScalar() - Static method in class sleep.runtime.SleepUtils
-
returns an empty hashmap scalar
- getHashWrapper(Map) - Static method in class sleep.runtime.SleepUtils
-
An easy way to make your programs data structures available in the script environment.
- getHighLineNumber() - Method in class sleep.engine.Block
-
return the highest line number associated with this block
- getInputBuffer() - Method in class sleep.bridges.io.IOObject
-
Returns the ascii data reader
- getInputStream() - Method in class sleep.bridges.io.IOObject
-
Returns the latest hooking point into the input stream
- getInt(Stack) - Static method in class sleep.bridges.BridgeUtilities
-
grab an integer.
- getInt(Stack, int) - Static method in class sleep.bridges.BridgeUtilities
-
grab an integer, if the stack is empty the default value will be returned
- getIOHandle(InputStream, OutputStream) - Static method in class sleep.runtime.SleepUtils
-
creates an IO handle scalar suitable for use with the sleep IO API.
- getIOHandleScalar(InputStream, OutputStream) - Static method in class sleep.runtime.SleepUtils
-
creates an IO handle scalar suitable for use with the sleep IO API.
- getIterator(Stack, ScriptInstance) - Static method in class sleep.bridges.BridgeUtilities
-
grabs a scalar iterator, this can come from either an array or a closure called continuously until $null is returned.
- getIterator(Scalar, ScriptInstance) - Static method in class sleep.runtime.SleepUtils
-
Returns a scalar iterator depending grabbed from the Scalar.
- getKey() - Method in class sleep.bridges.KeyValuePair
-
Obtain the key portion of this pair
- getKeyValuePair(Stack) - Static method in class sleep.bridges.BridgeUtilities
-
Pops a Key/Value pair object off of the argument stack.
- getLineNumber() - Method in class sleep.error.ScriptWarning
-
returns the line number in the source script where the runtime error/warning occured
- getLineNumber() - Method in class sleep.error.SyntaxError
-
return the line number in the file where the error occured.
- getListFromArray(Scalar) - Static method in class sleep.runtime.SleepUtils
-
Generate a java.util.List from a scalar array.
- getListFromArray(ScalarArray) - Static method in class sleep.runtime.SleepUtils
-
Generate a java.util.List from a scalar array.
- getLocalVariables() - Method in class sleep.runtime.ScriptVariables
-
returns the current local variable scope
- getLong(Stack) - Static method in class sleep.bridges.BridgeUtilities
-
grab a long.
- getLong(Stack, long) - Static method in class sleep.bridges.BridgeUtilities
-
grab a long, if the stack is empty the default value will be returned
- getLowLineNumber() - Method in class sleep.engine.Block
-
return the lowest line number associated with this block
- getMapFromHash(Scalar) - Static method in class sleep.runtime.SleepUtils
-
Generate a java.util.Map from a scalar hash.
- getMapFromHash(ScalarHash) - Static method in class sleep.runtime.SleepUtils
-
Generate a java.util.Map from a scalar hash.
- getMarker() - Method in class sleep.error.SyntaxError
-
return a marker string
- getMessage() - Method in class sleep.error.ScriptWarning
-
returns a short synopsis of what the warnng is
- getMessage() - Method in exception sleep.error.YourCodeSucksException
-
Returns a minimal string representation of the errors within this exception
- getMetadata() - Method in class sleep.runtime.ScriptInstance
-
retrieves script meta data for you to update
- getName() - Method in class sleep.runtime.ScriptInstance
-
Returns the name of this script (typically a full pathname) as a String
- getNameShort() - Method in class sleep.error.ScriptWarning
-
returns just the filename of the source script
- getObject(Stack) - Static method in class sleep.bridges.BridgeUtilities
-
grab an object, if the stack is empty then null will be returned.
- getOperator(String) - Method in class sleep.runtime.ScriptEnvironment
-
- getOrderedHashScalar() - Static method in class sleep.runtime.SleepUtils
-
returns an empty insertion ordered hashmap scalar
- getOutputStream() - Method in class sleep.bridges.io.IOObject
-
Returns the latest hooking point into the output stream
- getOwner() - Method in class sleep.bridges.SleepClosure
-
Returns the owning script instance
- getOwner() - Method in class sleep.engine.ProxyInterface
-
Returns the script associated with this proxy interface.
- getPredicate(String) - Method in class sleep.runtime.ScriptEnvironment
-
- getPredicateEnvironment(String) - Method in class sleep.runtime.ScriptEnvironment
-
- getProfilerStatistics() - Method in class sleep.runtime.ScriptInstance
-
Returns a sorted (in order of total ticks used) list of function call statistics for this
script environment.
- getProxy() - Method in class sleep.console.ConsoleImplementation
-
Returns the current console proxy being used
- getReader() - Method in class sleep.bridges.io.IOObject
-
Returns the binary data reader
- getReturnValue() - Method in class sleep.runtime.ScriptEnvironment
-
- getRunnableBlock() - Method in class sleep.runtime.ScriptInstance
-
Returns the compiled form of this script
- getRunnableCode() - Method in class sleep.bridges.SleepClosure
-
Returns the runnable block of code associated with this closure
- getRunnableScript() - Method in class sleep.runtime.ScriptInstance
-
Returns this toplevel script as a Sleep closure.
- getScalar(Stack) - Static method in class sleep.bridges.BridgeUtilities
-
grab a scalar, if the stack is empty the empty/null scalar will be returned.
- getScalar(String) - Method in interface sleep.interfaces.Variable
-
returns the specified scalar, if scalarExists says it is in the environment, this method has to return a scalar
- getScalar(String) - Method in class sleep.runtime.ScriptEnvironment
-
returns a scalar from this scripts environment
- getScalar(String) - Method in class sleep.runtime.ScriptVariables
-
retrieves a scalar
- getScalar(String, ScriptInstance) - Method in class sleep.runtime.ScriptVariables
-
Returns the specified scalar, looking at each scope in order.
- getScalar(int) - Static method in class sleep.runtime.SleepUtils
-
returns an int scalar with value x
- getScalar(short) - Static method in class sleep.runtime.SleepUtils
-
returns an int scalar (coverted from the short) with value x
- getScalar(float) - Static method in class sleep.runtime.SleepUtils
-
returns a double scalar (coverted from the float) with value x
- getScalar(double) - Static method in class sleep.runtime.SleepUtils
-
returns a double scalar with value x
- getScalar(Scalar) - Static method in class sleep.runtime.SleepUtils
-
Forces a copy of the value of the passed in scalar to be made.
- getScalar(long) - Static method in class sleep.runtime.SleepUtils
-
returns a long scalar with value x
- getScalar(byte[]) - Static method in class sleep.runtime.SleepUtils
-
constructs a string scalar with value x interpreted as an array of unsigned bytes
- getScalar(byte[], int) - Static method in class sleep.runtime.SleepUtils
-
constructs a string scalar with value x interpreted as an array of unsigned bytes
- getScalar(String) - Static method in class sleep.runtime.SleepUtils
-
returns a string scalar with value x
- getScalar(Object) - Static method in class sleep.runtime.SleepUtils
-
returns an object scalar with value x
- getScalar(boolean) - Static method in class sleep.runtime.SleepUtils
-
if x is true, the value will be 1, if x is false the value will be the empty scalar
- getScalarLevel(String, ScriptInstance) - Method in class sleep.runtime.ScriptVariables
-
retrieves the appropriate Variable container that has the specified key.
- getScriptEnvironment() - Method in class sleep.runtime.ScriptInstance
-
Returns this scripts runtime environment
- getScriptInstance() - Method in class sleep.runtime.ScriptEnvironment
-
returns a reference to the script associated with this environment
- getScriptName() - Method in class sleep.error.ScriptWarning
-
returns the full path for the source script
- getScripts() - Method in class sleep.runtime.ScriptLoader
-
Returns a linked list of all loaded ScriptInstance objects
- getScriptsByKey() - Method in class sleep.runtime.ScriptLoader
-
Returns a HashMap with all loaded scripts, the key is a string which is just the filename, the value is a ScriptInstance
object
- getScriptsToLoad(Set) - Method in class sleep.runtime.ScriptLoader
-
A convienence method to determine the set of scripts to "load" based on a passed in set of scripts that are currently
configured.
- getScriptsToUnload(Set) - Method in class sleep.runtime.ScriptLoader
-
A convienence method to determine the set of scripts to "unload" based on a passed in set of scripts that are currently
configured.
- getScriptVariables() - Method in class sleep.runtime.ScriptEnvironment
-
returns the variable manager for this script
- getScriptVariables() - Method in class sleep.runtime.ScriptInstance
-
Returns the variable container used by this script
- getSleepClasspath() - Static method in class sleep.parser.ParserConfig
-
Query the Sleep classpath.
- getSource() - Method in class sleep.bridges.io.IOObject
-
return the actual source of this IO for scripters to query using HOES
- getSource() - Method in class sleep.engine.Block
-
Returns the source identifier for this block
- getSource() - Method in class sleep.error.ScriptWarning
-
returns the ScriptInstance object that was the source of this runtime error
- getSourceLocation() - Method in class sleep.engine.Block
-
Returns a string representation of where in the source code this block originated from
- getStackTrace() - Method in class sleep.runtime.ScriptInstance
-
Returns the last stack trace.
- getString(Stack, String) - Static method in class sleep.bridges.BridgeUtilities
-
grab a string, if the stack is empty or if the value is null the default value will be returned.
- getThread() - Method in class sleep.bridges.io.IOObject
-
returns the thread associated with this IOObject
- getToken() - Method in class sleep.bridges.io.IOObject
-
returns a scalar token associated with this IOObject.
- getType() - Method in interface sleep.runtime.ScalarType
-
returns the Class type of this ScalarType.
- getValue() - Method in class sleep.bridges.KeyValuePair
-
Obtain the value portion of this pair
- getValue() - Method in class sleep.runtime.Scalar
-
Returns the container for the scalars value.
- getVariables() - Method in class sleep.bridges.SleepClosure
-
Returns the variable container for this closures
- getWorkableArray(Stack) - Static method in class sleep.bridges.BridgeUtilities
-
grab a sleep array, if the grabbed array is a readonly array, a copy is returned.
- getWriter() - Method in class sleep.bridges.io.IOObject
-
Returns the binary data writer
- global - Variable in class sleep.runtime.ScriptVariables
-
- sameAs(Scalar) - Method in class sleep.runtime.Scalar
-
compares two scalars in terms of their identity.
- Sanitizer(Object) - Static method in class sleep.taint.TaintUtils
-
Wraps the specified bridge in such a way that all results are considered sanitized (untainted).
- saveContext() - Method in class sleep.runtime.ScriptEnvironment
-
- saveSerialized(ScriptInstance) - Static method in class sleep.runtime.ScriptLoader
-
Saves a serialized version of the compiled script to scriptname.bin.
- saveSerialized(ScriptInstance, OutputStream) - Static method in class sleep.runtime.ScriptLoader
-
Saves a serialized version of the ScriptInstance si to the specified output stream
- Scalar - Class in sleep.runtime
-
A scalar is the universal data type for sleep variables.
- Scalar() - Constructor for class sleep.runtime.Scalar
-
- ScalarArray - Interface in sleep.runtime
-
This interface lets you implement your own data structure behind a scalar
array.
- scalarExists(String) - Method in interface sleep.interfaces.Variable
-
true if a scalar named key exists in this variable environment
- ScalarHash - Interface in sleep.runtime
-
This interface lets you create your own scalar hash implementation.
- scalarIterator() - Method in class sleep.bridges.SleepClosure
-
- scalarIterator() - Method in interface sleep.runtime.ScalarArray
-
return an iterator
- ScalarType - Interface in sleep.runtime
-
This interface makes it possible to create a new scalar type.
- script - Variable in class sleep.engine.ProxyInterface
-
- script - Variable in class sleep.error.ScriptWarning
-
- script - Variable in class sleep.runtime.ScriptInstance
-
The compiled sleep code for this script, the ScriptLoader will set this value upon loading a script.
- ScriptEnvironment - Class in sleep.runtime
-
This class contains methods for accessing the data stack, return value of a function, and the environment hashtable
for a script.
- ScriptEnvironment() - Constructor for class sleep.runtime.ScriptEnvironment
-
Not recommended that you instantiate a script environment in this way
- ScriptEnvironment(Hashtable, ScriptInstance) - Constructor for class sleep.runtime.ScriptEnvironment
-
Instantiate a new script environment with the specified environment (can be shared), and the specified ScriptInstance
- ScriptEnvironment.Context - Class in sleep.runtime
-
- ScriptEnvironment.Context() - Constructor for class sleep.runtime.ScriptEnvironment.Context
-
- ScriptEnvironment.ExceptionContext - Class in sleep.runtime
-
- ScriptEnvironment.ExceptionContext() - Constructor for class sleep.runtime.ScriptEnvironment.ExceptionContext
-
- ScriptInstance - Class in sleep.runtime
-
Every piece of information related to a loaded script.
- ScriptInstance(Hashtable) - Constructor for class sleep.runtime.ScriptInstance
-
Constructs a script instance, if the parameter is null a default implementation will be used.
- ScriptInstance(Variable, Hashtable) - Constructor for class sleep.runtime.ScriptInstance
-
Constructs a script instance, if either of the parameters are null a default implementation will be used.
- ScriptInstance() - Constructor for class sleep.runtime.ScriptInstance
-
Constructs a new script instance
- ScriptInstance.ProfilerStatistic - Class in sleep.runtime
-
A container for a profile statistic about a sleep function
- ScriptInstance.ProfilerStatistic() - Constructor for class sleep.runtime.ScriptInstance.ProfilerStatistic
-
- ScriptInstance.SleepStackElement - Class in sleep.runtime
-
A container for Sleep strack trace elements.
- ScriptInstance.SleepStackElement() - Constructor for class sleep.runtime.ScriptInstance.SleepStackElement
-
- scriptLoaded(ScriptInstance) - Method in class sleep.console.ConsoleImplementation
-
- scriptLoaded(ScriptInstance) - Method in interface sleep.interfaces.Loadable
-
called when a script is loaded
- ScriptLoader - Class in sleep.runtime
-
The ScriptLoader is a convienence container for instantiating and managing ScriptInstances.
- ScriptLoader() - Constructor for class sleep.runtime.ScriptLoader
-
initializes the script loader
- scripts - Variable in class sleep.runtime.ScriptLoader
-
loaded scripts except referable by key
- scriptUnloaded(ScriptInstance) - Method in class sleep.console.ConsoleImplementation
-
- scriptUnloaded(ScriptInstance) - Method in interface sleep.interfaces.Loadable
-
called when a script is unloaded
- ScriptVariables - Class in sleep.runtime
-
Maintains variables and variable scopes for a script instance.
- ScriptVariables() - Constructor for class sleep.runtime.ScriptVariables
-
Initializes this ScriptVariables container using a DefaultVariable object for default variable storage
- ScriptVariables(Variable) - Constructor for class sleep.runtime.ScriptVariables
-
Initializes this class with your version of variable storage
- ScriptWarning - Class in sleep.error
-
A package for all information related to a runtime script warning.
- ScriptWarning(ScriptInstance, String, int) - Constructor for class sleep.error.ScriptWarning
-
- ScriptWarning(ScriptInstance, String, int, boolean) - Constructor for class sleep.error.ScriptWarning
-
- self - Variable in class sleep.runtime.ScriptEnvironment
-
the script instance that this is the environment for
- sendEOF() - Method in class sleep.bridges.io.IOObject
-
Closes down the output streams effectively sending an end of file message to the reading end.
- Sensitive(Object) - Static method in class sleep.taint.TaintUtils
-
Wraps the specified bridge in such a way that all values on current frame are checked for tainted values.
- setCharset(String) - Method in class sleep.runtime.ScriptLoader
-
If charset conversion is enabled and charset is set, then the stream will be read using specified charset.
- setCharsetConversion(boolean) - Method in class sleep.runtime.ScriptLoader
-
Java by default maps characters from an 8bit ascii file to an internal 32bit unicode representation.
- setChoices(Check, Check) - Method in class sleep.engine.atoms.Check
-
Sets up the true and false choices, again this is handled by the sleep engine
- setClosureVariables(SleepClosure, Variable) - Method in class sleep.runtime.ScriptVariables
-
returns the closure level variables for this specific script environment
- setConsole(ScriptEnvironment, IOObject) - Static method in class sleep.bridges.io.IOObject
-
sets the stdin/stdout for this script environment.
- setContextMetadata(Object, Object) - Method in class sleep.runtime.ScriptEnvironment
-
Use this function to save some meta data for this particular closure context, passing null for value will
remove the key from the metadata for this context.
- setDebugFlags(int) - Method in class sleep.runtime.ScriptInstance
-
set the debug flags for this script
- setEncoding(String) - Method in class sleep.bridges.io.IOObject
-
set the charset to be used for all unicode aware reads/writes from/to this stream
- setEnvironment(Hashtable) - Method in class sleep.runtime.ScriptEnvironment
-
Sets the environment Hashtable this script is to use.
- setGlobalCache(boolean) - Method in class sleep.runtime.ScriptLoader
-
The Sleep script loader can optionally cache parsed script files once they are loaded.
- setInfo(int) - Method in class sleep.engine.atoms.Check
-
Sets the line number in code where this check object occurs, again called by the sleep engine
- setName(String) - Method in class sleep.runtime.ScriptInstance
-
Sets the name of this script
- setParent(IOObject) - Method in class sleep.runtime.ScriptInstance
-
Sets up the parent of this script (in case it is being run via &fork()).
- setProxy(ConsoleProxy) - Method in class sleep.console.ConsoleImplementation
-
Sets up the implementation of the consoles input/output facilities
- setScalarLevel(String, Scalar, Variable) - Method in class sleep.runtime.ScriptVariables
-
Puts the specified scalar in a specific scope
- setScriptVariables(ScriptVariables) - Method in class sleep.runtime.ScriptInstance
-
Sets the variable container to be used by this script
- setSleepClasspath(String) - Static method in class sleep.parser.ParserConfig
-
Set the Sleep classpath.
- setThread(Thread) - Method in class sleep.bridges.io.IOObject
-
set the thread used for this IOObject (currently used to allow a script to wait() on the threads completion)
- setToken(Scalar) - Method in class sleep.bridges.io.IOObject
-
sets the scalar token associated with this IOObject.
- setUnloaded() - Method in class sleep.runtime.ScriptInstance
-
Flag this script as unloaded
- setValue(ScalarType) - Method in class sleep.runtime.Scalar
-
set the value of this scalar container to a scalar value of some type
- setValue(ScalarArray) - Method in class sleep.runtime.Scalar
-
set the value of this scalar container to a scalar array
- setValue(ScalarHash) - Method in class sleep.runtime.Scalar
-
set the value of this scalar container to a scalar hash
- setValue(Scalar) - Method in class sleep.runtime.Scalar
-
clones the value from the specified scalar and gives this scalar a copy of the value
- setVariables(Variable) - Method in class sleep.bridges.SleepClosure
-
Sets the variable environment for this closure
- showDebugMessage(String) - Method in class sleep.runtime.ScriptEnvironment
-
fires this debug message via a runtime warning complete with line number of current step
- size() - Method in interface sleep.runtime.ScalarArray
-
return the size of the array
- sleep.bridges - package sleep.bridges
-
This package contains the default bridges distributed with sleep.
- sleep.bridges.io - package sleep.bridges.io
-
- sleep.console - package sleep.console
-
Integrating the Sleep Console
- sleep.engine - package sleep.engine
-
- sleep.engine.atoms - package sleep.engine.atoms
-
- sleep.error - package sleep.error
-
- sleep.interfaces - package sleep.interfaces
-
- sleep.parser - package sleep.parser
-
The parser package.
- sleep.runtime - package sleep.runtime
-
- sleep.taint - package sleep.taint
-
- SLEEP_RELEASE - Static variable in class sleep.runtime.SleepUtils
-
A date stamp of this Sleep release in YYYYMMDD format
- SLEEP_VERSION - Static variable in class sleep.runtime.SleepUtils
-
A string description of this Sleep release
- SleepClosure - Class in sleep.bridges
-
The Sleep Closure class.
- SleepClosure(ScriptInstance, Block) - Constructor for class sleep.bridges.SleepClosure
-
Creates a new Sleep Closure, with a brand new set of internal variables.
- SleepClosure(ScriptInstance, Block, Variable) - Constructor for class sleep.bridges.SleepClosure
-
Creates a new Sleep Closure that uses the specified variable container for its internal variables
- SleepUtils - Class in sleep.runtime
-
This class contains generalized utilities for instantiating/wrapping data into the sleep Scalar type.
- SleepUtils() - Constructor for class sleep.runtime.SleepUtils
-
- sort(Comparator) - Method in interface sleep.runtime.ScalarArray
-
sort this array with the specified comparator
- source - Variable in class sleep.engine.Block
-
an identifier/tag/whatever identifying the source of this block (i.e.
- source - Variable in class sleep.error.ScriptWarning
-
- sourcefile - Variable in class sleep.runtime.ScriptInstance.SleepStackElement
-
- sourceFiles - Variable in class sleep.runtime.ScriptInstance
-
list of source files associated with this script (to account for &include)
- sources - Variable in class sleep.runtime.ScriptEnvironment
-
how many stacks does this damned class include?
- stringValue() - Method in class sleep.runtime.Scalar
-
the string value of this scalar
- sublist(int, int) - Method in interface sleep.runtime.ScalarArray
-
return a view into the array, ideally one that uses the same backing store
- SyntaxError - Class in sleep.error
-
A class containing syntax error information.
- SyntaxError(String, String, int) - Constructor for class sleep.error.SyntaxError
-
construct a syntax error object, but enough about me...
- SyntaxError(String, String, int, String) - Constructor for class sleep.error.SyntaxError
-
construct a syntax error object, but enough about me...