A B C D E F G H I J K L M N O P R S T U V W Y

A

add(Scalar, int) - Method in class sleep.bridges.ArgumentArray
 
add(Step) - Method in class sleep.engine.Block
 
add(Scalar, int) - Method in class sleep.engine.types.ArrayContainer
 
add(Step, Token) - Method in class sleep.parser.CodeGenerator
 
add(Token) - Method in class sleep.parser.TokenList
 
add(Scalar, int) - Method in class sleep.runtime.CollectionWrapper
 
add(Scalar, int) - Method in interface sleep.runtime.ScalarArray
 
addComment(String) - Method in class sleep.parser.Parser
 
addFragment(int, Object) - Method in class sleep.engine.atoms.PLiteral
 
addGlobalBridge(Loadable) - Method in class sleep.runtime.ScriptLoader
A global bridge is loaded into an environment once and only once.
addKeyword(String) - Static method in class sleep.parser.Checkers
 
addKeyword(String) - Static method in class sleep.parser.ParserConfig
registers "keyword" as a keyword with the parser.
addKeyword(String) - Static method in class sleep.runtime.SleepUtils
registers "keyword" as a keyword with the parser.
addSpecificBridge(Loadable) - Method in class sleep.runtime.ScriptLoader
A specific bridge is loaded into *every* script regardless of wether or not the environment is shared.
addStatement(Statement) - Method in class sleep.parser.Parser
 
addToContext(Block, Step) - Method in class sleep.runtime.ScriptEnvironment
 
addWarningWatcher(RuntimeWarningWatcher) - Method in class sleep.runtime.ScriptInstance
Register a runtime warning watcher listener.
ALIGN_FRAGMENT - Static variable in class sleep.engine.atoms.PLiteral
 
allocate(int) - Method in class sleep.bridges.io.BufferObject
allocates a writeable buffer with the specified initial capacity
ARG_MATCH_MAYBE - Static variable in class sleep.engine.ObjectUtilities
when looking for a Java method that matches the sleep args, we save the maybes and use them as a last resort if no yes match is found
ARG_MATCH_NO - Static variable in class sleep.engine.ObjectUtilities
when looking for a Java method that matches the sleep args, we immediately drop all of the no answers.
ARG_MATCH_YES - Static variable in class sleep.engine.ObjectUtilities
when looking for a Java method that matches the sleep args, we use a Yes match immediately
ArgumentArray - Class in sleep.bridges
 
ArgumentArray(int, Variable) - Constructor for class sleep.bridges.ArgumentArray
 
array - Variable in class sleep.runtime.CollectionWrapper
 
array - Variable in class sleep.runtime.Scalar
 
ArrayContainer - Class in sleep.engine.types
 
ArrayContainer() - Constructor for class sleep.engine.types.ArrayContainer
 
ArrayContainer(Collection) - Constructor for class sleep.engine.types.ArrayContainer
initial values must be a collection of Scalar's
Assign - Class in sleep.engine.atoms
 
Assign(Block, Operate) - Constructor for class sleep.engine.atoms.Assign
 
Assign(Block) - Constructor for class sleep.engine.atoms.Assign
 
Assign(Block) - Static method in class sleep.engine.GeneratedSteps
 
AssignAndOperate(Block, String) - Static method in class sleep.engine.GeneratedSteps
 
AssignT - Class in sleep.engine.atoms
 
AssignT(Operate) - Constructor for class sleep.engine.atoms.AssignT
 
AssignT() - Constructor for class sleep.engine.atoms.AssignT
 
AssignT() - Static method in class sleep.engine.GeneratedSteps
 
AssignTupleAndOperate(String) - Static method in class sleep.engine.GeneratedSteps
 

B

backlog - Variable in class sleep.bridges.io.SocketObject.SocketHandler
 
BACKTICK_RULE - Static variable in class sleep.parser.LexicalAnalyzer
 
backup() - Method in class sleep.parser.CodeGenerator
 
BACKUP_BLOCKS - Variable in class sleep.parser.CodeGenerator
 
BasicIO - Class in sleep.bridges
provides IO functions for the sleep language
BasicIO() - Constructor for class sleep.bridges.BasicIO
 
BasicNumbers - Class in sleep.bridges
provides some of the basic number crunching functionality
BasicNumbers() - Constructor for class sleep.bridges.BasicNumbers
 
BasicStrings - Class in sleep.bridges
provides basic string parsing facilities
BasicStrings() - Constructor for class sleep.bridges.BasicStrings
 
BasicSubroutine - Class in sleep.bridges
The actual implementation of each subroutine declared with the sub keyword.
BasicSubroutine(ScriptInstance, Block, Stack) - Constructor for class sleep.bridges.BasicSubroutine
 
BasicUtilities - Class in sleep.bridges
implementation of basic utility functions
BasicUtilities() - Constructor for class sleep.bridges.BasicUtilities
 
begin - Variable in class sleep.parser.StringIterator
 
Bind - Class in sleep.engine.atoms
 
Bind(String, Block, Block) - Constructor for class sleep.engine.atoms.Bind
 
Bind(String, Block, Block) - Static method in class sleep.engine.GeneratedSteps
 
BindFilter - Class in sleep.engine.atoms
 
BindFilter(String, String, Block, String) - Constructor for class sleep.engine.atoms.BindFilter
 
BindFilter(String, String, Block, String) - Static method in class sleep.engine.GeneratedSteps
 
bindFilteredFunction(ScriptInstance, String, String, String, Block) - Method in interface sleep.interfaces.FilterEnvironment
binds a function (functionName) of a certain type (typeKeyword) to the defined functionBody.
bindFunction(ScriptInstance, String, String, Block) - Method in class sleep.bridges.DefaultEnvironment
 
bindFunction(ScriptInstance, String, String, Block) - Method in interface sleep.interfaces.Environment
binds a function (functionName) of a certain type (typeKeyword) to the defined functionBody.
BindPredicate - Class in sleep.engine.atoms
 
BindPredicate(String, Check, Block) - Constructor for class sleep.engine.atoms.BindPredicate
 
BindPredicate(String, Check, Block) - Static method in class sleep.engine.GeneratedSteps
 
bindPredicate(ScriptInstance, String, Check, Block) - Method in interface sleep.interfaces.PredicateEnvironment
binds a function (functionName) of a certain type (typeKeyword) to the defined functionBody.
Block - Class in sleep.engine
A Block is the fundamental unit of parsed and ready to execute sleep code.
Block(String) - Constructor for class sleep.engine.Block
 
block - Variable in class sleep.runtime.ScriptEnvironment.Context
 
BLOCK_CACHE - Static variable in class sleep.runtime.ScriptLoader
cache for parsed scripts mantained (optionally) by the script loader.
BLOCK_RULE - Static variable in class sleep.parser.LexicalAnalyzer
 
bridgesg - Variable in class sleep.runtime.ScriptLoader
global bridges
bridgess - Variable in class sleep.runtime.ScriptLoader
specific bridges
BridgeUtilities - Class in sleep.bridges
A bridge is a class that bridges your applications API and sleep.
BridgeUtilities() - Constructor for class sleep.bridges.BridgeUtilities
 
buffer - Variable in class sleep.bridges.io.IOObject
 
BufferObject - Class in sleep.bridges.io
The buffer works as follows.
BufferObject() - Constructor for class sleep.bridges.io.BufferObject
 
buildArgument(Class, Scalar, ScriptInstance) - Static method in class sleep.engine.ObjectUtilities
 
buildArgumentArray(Class[], Stack, ScriptInstance) - Static method in class sleep.engine.ObjectUtilities
 
buildArgumentErrorMessage(Class, String, Class[], Object[]) - Static method in class sleep.engine.ObjectUtilities
 
BuildInterface(Class, Function, ScriptInstance) - Static method in class sleep.engine.ProxyInterface
Constructs a new instance of the specified class that uses the passed Sleep function to respond to all method calls on this instance.
BuildInterface(Class[], Function, ScriptInstance) - Static method in class sleep.engine.ProxyInterface
Constructs a new instance of the specified class that uses the passed Sleep function to respond to all method calls on this instance.
BuildInterface(Class, Block, ScriptInstance) - Static method in class sleep.engine.ProxyInterface
Constructs a new instance of the specified class that uses the passed block to respond to all method calls on this instance.
BuildInterface(Class[], Block, ScriptInstance) - Static method in class sleep.engine.ProxyInterface
Constructs a new instance of the specified class that uses the passed block to respond to all method calls on this instance.
BuildScalar(boolean, Object) - Static method in class sleep.engine.ObjectUtilities
 

C

Call - Class in sleep.engine.atoms
 
Call(String) - Constructor for class sleep.engine.atoms.Call
 
Call(String) - Static method in class sleep.engine.GeneratedSteps
 
callback - Variable in class sleep.bridges.io.SocketObject.SocketHandler
 
callClosure(String, ScriptInstance, Stack) - Method in class sleep.bridges.SleepClosure
"Safely" calls this closure.
CallFunction() - Method in class sleep.engine.CallRequest
actually execute the function call
callFunction(String, Stack) - Method in class sleep.runtime.ScriptInstance
Calls a subroutine/built-in function using this script.
callme - Variable in class sleep.engine.CallRequest.FunctionCallRequest
 
CallRequest - Class in sleep.engine
this class encapsulates a function call request.
CallRequest(ScriptEnvironment, int) - Constructor for class sleep.engine.CallRequest
initialize a new call request
CallRequest.ClosureCallRequest - Class in sleep.engine
execute a closure with all of the trimmings.
CallRequest.ClosureCallRequest(ScriptEnvironment, int, Scalar, String) - Constructor for class sleep.engine.CallRequest.ClosureCallRequest
 
CallRequest.FunctionCallRequest - Class in sleep.engine
execute a function with all of the debug, trace, etc..
CallRequest.FunctionCallRequest(ScriptEnvironment, int, String, Function) - Constructor for class sleep.engine.CallRequest.FunctionCallRequest
 
CallRequest.InlineCallRequest - Class in sleep.engine
execute a block of code inline with all the profiling, tracing, and other support
CallRequest.InlineCallRequest(ScriptEnvironment, int, String, Block) - Constructor for class sleep.engine.CallRequest.InlineCallRequest
 
calls - Variable in class sleep.runtime.ScriptInstance.ProfilerStatistic
the total number of times this function has been called
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".
Check(String, Block) - Static method in class sleep.engine.GeneratedSteps
 
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
Checkers - Class in sleep.parser
A class that provides a bunch of static methods for checking a stream of sleep tokens for a certain lexical structure.
Checkers() - Constructor for class sleep.parser.Checkers
 
classes - Variable in class sleep.parser.ImportManager
 
classRef - Variable in class sleep.engine.atoms.ObjectAccess
 
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.BufferObject
handles our closing semantices i.e.
close() - Method in class sleep.bridges.io.IOObject
Closes all of the reader's / writer's opened by this IOObject.
close() - Method in class sleep.bridges.io.ProcessObject
 
close() - Method in class sleep.bridges.io.SocketObject
 
close - Variable in class sleep.parser.Rule
 
code - Variable in class sleep.error.SyntaxError
 
code - Variable in class sleep.parser.Parser
 
CodeGenerator - Class in sleep.parser
Generates code for the parser.
CodeGenerator(Parser) - Constructor for class sleep.parser.CodeGenerator
 
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
CollectionWrapper - Class in sleep.runtime
A read only scalar array for wrapping data structures that implement the java.util.Collection interface.
CollectionWrapper(Collection) - Constructor for class sleep.runtime.CollectionWrapper
 
CollectionWrapper.ProxyIterator - Class in sleep.runtime
 
CollectionWrapper.ProxyIterator() - Constructor for class sleep.runtime.CollectionWrapper.ProxyIterator
 
combineTokens(Token, Token) - Static method in class sleep.parser.ParserUtilities
 
COMMENT_RULE - Static variable in class sleep.parser.LexicalAnalyzer
 
CommentRule - Class in sleep.parser
 
CommentRule() - Constructor for class sleep.parser.CommentRule
 
comments - Variable in class sleep.parser.Parser
an identifier for the script file.
compareTo(Object) - Method in class sleep.runtime.ScriptInstance.ProfilerStatistic
used to compare this statistic to other statistics for the sake of sorting
compile(String, String) - Static method in class sleep.bridges.Transliteration
Compiles the translation pattern.
compile(String, String, int) - Static method in class sleep.bridges.Transliteration
Compiles the translation pattern.
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
CONNECT_FUNCTION - Static variable in class sleep.bridges.io.SocketObject
 
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
consolePrint(String) - Method in class sleep.console.TextConsole
 
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
consolePrintln(Object) - Method in class sleep.console.TextConsole
 
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.
consoleReadln() - Method in class sleep.console.TextConsole
 
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
copy(int) - Method in class sleep.parser.Token
 
copy(String) - Method in class sleep.parser.Token
 
copyRule() - Method in class sleep.parser.CommentRule
 
copyRule() - Method in class sleep.parser.Rule
 
copyValue() - Method in class sleep.engine.types.DoubleValue
 
copyValue() - Method in class sleep.engine.types.IntValue
 
copyValue() - Method in class sleep.engine.types.LongValue
 
copyValue() - Method in class sleep.engine.types.NullValue
 
copyValue() - Method in class sleep.engine.types.ObjectValue
 
copyValue() - Method in class sleep.engine.types.StringValue
 
copyValue() - Method in interface sleep.runtime.ScalarType
create a clone of this scalar's value.
count - Variable in class sleep.bridges.io.DataPattern
 
count - Variable in class sleep.engine.atoms.Iterate.IteratorData
 
CreateClosure - Class in sleep.engine.atoms
 
CreateClosure(Block) - Constructor for class sleep.engine.atoms.CreateClosure
 
CreateClosure(Block) - Static method in class sleep.engine.GeneratedSteps
 
CreateFrame - Class in sleep.engine.atoms
 
CreateFrame() - Constructor for class sleep.engine.atoms.CreateFrame
 
CreateFrame() - Static method in class sleep.engine.GeneratedSteps
 
CreateFrame() - Method in class sleep.runtime.ScriptEnvironment
 
createInternalVariableContainer() - Method in class sleep.bridges.DefaultVariable
 
createInternalVariableContainer() - Method in interface sleep.interfaces.Variable
returns which variable environment is used to store non-global / non-local variables.
createLocalVariableContainer() - Method in class sleep.bridges.DefaultVariable
 
createLocalVariableContainer() - Method in interface sleep.interfaces.Variable
returns which variable environment is used to temporarily store local variables.
CreateTerms(Parser, StringIterator) - Static method in class sleep.parser.LexicalAnalyzer
 
CreateTerms(Parser, StringIterator, boolean, boolean) - Static method in class sleep.parser.LexicalAnalyzer
 
CreateTerms(Parser, StringIterator, Rule[], boolean, boolean) - Static method in class sleep.parser.LexicalAnalyzer
 
CURRENT_BLOCK - Variable in class sleep.parser.CodeGenerator
 
currentHandler - Variable in class sleep.runtime.ScriptEnvironment
 

D

DataPattern - Class in sleep.bridges.io
A DataPattern represents a data format for Sleep's IO functions.
DataPattern() - Constructor for class sleep.bridges.io.DataPattern
 
debug - Variable in class sleep.runtime.ScriptInstance
track all of the flagged debug options for this script (set to DEBUG_SHOW_ERRORS by default)
DEBUG_NONE - Static variable in class sleep.runtime.ScriptInstance
debug should be absolutely quiet, never fire any runtime warnings
DEBUG_REQUIRE_STRICT - Static variable in class sleep.runtime.ScriptInstance
fire runtime warning whenever an undeclared variable is fired
DEBUG_SHOW_ERRORS - Static variable in class sleep.runtime.ScriptInstance
fire runtime warnings for all critical flow interrupting errors
DEBUG_SHOW_WARNINGS - Static variable in class sleep.runtime.ScriptInstance
fire runtime warnings for anything flagged for retrieval with checkError()
DEBUG_THROW_WARNINGS - Static variable in class sleep.runtime.ScriptInstance
throw exceptions for anything flagged for retrieval with checkError()
DEBUG_TRACE_CALLS - Static variable in class sleep.runtime.ScriptInstance
fire a runtime warning describing each function call
DEBUG_TRACE_LOGIC - Static variable in class sleep.runtime.ScriptInstance
fire a runtime warning describing each predicate decision made
DEBUG_TRACE_PROFILE_ONLY - Static variable in class sleep.runtime.ScriptInstance
forces function call tracing to occur (for the sake of profiling a script) but supresses all runtime warnings as a result of the tracing
DEBUG_TRACE_SUPPRESS - Static variable in class sleep.runtime.ScriptInstance
users shouldn't need to flag this, it is just a general method of saying we're suppressing trace messages...
debugString - Variable in class sleep.runtime.ScriptEnvironment
 
decide(String, ScriptInstance, Stack) - Method in class sleep.bridges.BasicNumbers
 
decide(String, ScriptInstance, Stack) - Method in class sleep.bridges.BasicUtilities
 
Decide - Class in sleep.engine.atoms
 
Decide(Check) - Constructor for class sleep.engine.atoms.Decide
 
Decide(Check, Block, Block) - Static method in class sleep.engine.GeneratedSteps
 
decide(String, ScriptInstance, Stack) - Method in interface sleep.interfaces.Predicate
decides the truthfulness of the proposition predicateName applied to the passedInTerms.
DefaultEnvironment - Class in sleep.bridges
 
DefaultEnvironment() - Constructor for class sleep.bridges.DefaultEnvironment
 
DefaultVariable - Class in sleep.bridges
 
DefaultVariable() - Constructor for class sleep.bridges.DefaultVariable
 
describe(Stack) - Static method in class sleep.runtime.SleepUtils
returns a comma separated list of descriptions of the scalars in the specified argument stack.
describe(Scalar) - Static method in class sleep.runtime.SleepUtils
returns a string description of the specified scalar.
description - Variable in class sleep.error.SyntaxError
 
description - Variable in class sleep.runtime.ScriptInstance.SleepStackElement
 
disableConversions - Variable in class sleep.runtime.ScriptLoader
 
DoubleValue - Class in sleep.engine.types
 
DoubleValue(double) - Constructor for class sleep.engine.types.DoubleValue
 
doubleValue() - Method in class sleep.engine.types.DoubleValue
 
doubleValue() - Method in class sleep.engine.types.IntValue
 
doubleValue() - Method in class sleep.engine.types.LongValue
 
doubleValue() - Method in class sleep.engine.types.NullValue
 
doubleValue() - Method in class sleep.engine.types.ObjectValue
 
doubleValue() - Method in class sleep.engine.types.StringValue
 
doubleValue() - Method in class sleep.runtime.Scalar
the double value of this scalar
doubleValue() - Method in interface sleep.runtime.ScalarType
convert the scalar to a double
DQUOTE_RULE - Static variable in class sleep.parser.LexicalAnalyzer
 

E

EndOfTerm - Static variable in class sleep.parser.LexicalAnalyzer
 
EndOfTerm - Variable in class sleep.parser.Parser
 
environment - Variable in class sleep.engine.CallRequest
 
Environment - Interface in sleep.interfaces
Blocks of code associated with an identifier are processed by their environment.
environment - Variable in class sleep.runtime.ScriptEnvironment
the environment hashtable that contains all of the functions, predicates, operators, and "environment keywords" this script has access to.
environment - Variable in class sleep.runtime.ScriptInstance
The script environment which contains all of the runtime info for a script
environmentStack - Variable in class sleep.runtime.ScriptEnvironment
the runtime data stack for this environment
errorMessage - Variable in class sleep.runtime.ScriptEnvironment
stored error message...
errors - Variable in class sleep.parser.Parser
a list of all of the comments from the script file
escape_constants - Static variable in class sleep.parser.CodeGenerator
 
EstimateSize(String) - Static method in class sleep.bridges.io.DataPattern
 
evaluate(String, ScriptInstance, Stack) - Method in class sleep.bridges.BasicIO
 
evaluate(String, ScriptInstance, Stack) - Method in class sleep.bridges.BasicNumbers
 
evaluate(String, ScriptInstance, Stack) - Method in class sleep.bridges.BasicUtilities
 
evaluate(String, ScriptInstance, Stack) - Method in class sleep.bridges.FileSystemBridge
 
evaluate(String, ScriptInstance, Stack) - Method in class sleep.bridges.SleepClosure
Evaluates the closure, use callClosure instead.
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.Assign
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.AssignT
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.Bind
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.BindFilter
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.BindPredicate
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.Call
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.CreateClosure
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.CreateFrame
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.Decide
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.Get
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.Goto
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.Index
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.Iterate
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.ObjectAccess
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.ObjectNew
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.Operate
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.PLiteral
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.PopTry
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.Return
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.SValue
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.atoms.Try
 
evaluate(ScriptEnvironment) - Method in class sleep.engine.Block
evaluates this block of code.
evaluate(ScriptEnvironment, Step) - Method in class sleep.engine.Block
evaluates this block of code.
evaluate(ScriptEnvironment) - Method in class sleep.engine.Step
evaluate this atomic step.
evaluate(String, ScriptInstance, Stack) - Method in interface sleep.interfaces.Function
Evaluate a function and return the resulting scalar.
evaluateExpression(String) - Method in class sleep.runtime.ScriptEnvironment
evaluates an expression
evaluateOldContext() - Method in class sleep.runtime.ScriptEnvironment
 
evaluateParsedLiteral(String) - Method in class sleep.runtime.ScriptEnvironment
evaluates the passed in code as if it was a sleep parsed literal
evaluatePredicate(String) - Method in class sleep.runtime.ScriptEnvironment
evaluates a predicate condition
evaluateStatement(String) - Method in class sleep.runtime.ScriptEnvironment
evaluate a full blown statement...
evaluateString(ScriptInstance, String) - Method in class sleep.bridges.BasicIO
 
evaluateString(ScriptInstance, String) - Method in interface sleep.interfaces.Evaluation
Evaluate the specified string value.
Evaluation - Interface in sleep.interfaces
A Sleep evaluation is a way to define how a `back quoted` string should work.
execute() - Method in class sleep.engine.CallRequest.ClosureCallRequest
 
execute() - Method in class sleep.engine.CallRequest
execute the function call contained here
execute() - Method in class sleep.engine.CallRequest.FunctionCallRequest
 
execute() - Method in class sleep.engine.CallRequest.InlineCallRequest
 
executeMe - Variable in class sleep.parser.Parser
a list of all of the statements
exhandlers - Variable in class sleep.runtime.ScriptEnvironment
 
EXPR_ASSERT - Static variable in interface sleep.parser.ParserConstants
 
EXPR_ASSIGNMENT - Static variable in interface sleep.parser.ParserConstants
 
EXPR_ASSIGNMENT_OP - Static variable in interface sleep.parser.ParserConstants
 
EXPR_ASSIGNMENT_T - Static variable in interface sleep.parser.ParserConstants
 
EXPR_ASSIGNMENT_T_OP - Static variable in interface sleep.parser.ParserConstants
 
EXPR_BIND - Static variable in interface sleep.parser.ParserConstants
 
EXPR_BIND_FILTER - Static variable in interface sleep.parser.ParserConstants
 
EXPR_BIND_PRED - Static variable in interface sleep.parser.ParserConstants
 
EXPR_BLOCK - Static variable in interface sleep.parser.ParserConstants
 
EXPR_BREAK - Static variable in interface sleep.parser.ParserConstants
 
EXPR_ESCAPE - Static variable in interface sleep.parser.ParserConstants
 
EXPR_EVAL_STRING - Static variable in interface sleep.parser.ParserConstants
 
EXPR_FOR - Static variable in interface sleep.parser.ParserConstants
 
EXPR_FOREACH - Static variable in interface sleep.parser.ParserConstants
 
EXPR_FOREACH_SPECIAL - Static variable in interface sleep.parser.ParserConstants
 
EXPR_IF - Static variable in interface sleep.parser.ParserConstants
 
EXPR_IF_ELSE - Static variable in interface sleep.parser.ParserConstants
 
EXPR_RETURN - Static variable in interface sleep.parser.ParserConstants
 
EXPR_TRYCATCH - Static variable in interface sleep.parser.ParserConstants
 
EXPR_WHILE - Static variable in interface sleep.parser.ParserConstants
 
EXPR_WHILE_SPECIAL - Static variable in interface sleep.parser.ParserConstants
 
extract(Token) - Static method in class sleep.parser.ParserUtilities
 
extract(String) - Static method in class sleep.parser.ParserUtilities
 
extractNamedParameters(Stack) - Static method in class sleep.bridges.BridgeUtilities
extracts all named parameters from the argument stack.

F

file - Variable in class sleep.bridges.io.FileObject
 
FileObject - Class in sleep.bridges.io
 
FileObject() - Constructor for class sleep.bridges.io.FileObject
 
FileSystemBridge - Class in sleep.bridges
provides a bridge for accessing the local file system
FileSystemBridge() - Constructor for class sleep.bridges.FileSystemBridge
 
FilterEnvironment - Interface in sleep.interfaces
Filtered environments are similar to normal keyword environments except they also allow a parameter specified by the user.
findConstructor(Class, Stack) - Static method in class sleep.engine.ObjectUtilities
 
findex - Variable in class sleep.runtime.ScriptEnvironment
 
findImportedClass(String) - Method in class sleep.parser.ImportManager
Attempts to find a class, starts out with the passed in string itself, if that doesn't resolve then the string is appended to each imported package to see where the class might exist
findImportedClass(String) - Method in class sleep.parser.Parser
Attempts to find a class, starts out with the passed in string itself, if that doesn't resolve then the string is appended to each imported package to see where the class might exist
findJarFile(String) - Static method in class sleep.parser.ParserConfig
Search the sleep classpath for the specified file.
findMethod(Class, String, Stack) - Static method in class sleep.engine.ObjectUtilities
 
findPrecedentOperators(Statement, TokenList, int, String, int) - Static method in class sleep.parser.TokenParser
 
fireWarning(String, int) - Method in class sleep.runtime.ScriptInstance
Fire a runtime script warning
fireWarning(String, int, boolean) - Method in class sleep.runtime.ScriptInstance
Fire a runtime script warning
first - Variable in class sleep.engine.Block
our first step in this block
flagChange(Scalar) - Method in class sleep.runtime.WatchScalar
 
flagError(Object) - Method in class sleep.runtime.ScriptEnvironment
A utility for bridge writers to flag an error.
flagReturn(Scalar, int) - Method in class sleep.runtime.ScriptEnvironment
flags a return value for this script environment
flattenArray(Scalar, Scalar) - Static method in class sleep.bridges.BridgeUtilities
Flattens the specified scalar array.
flattenIterator(Iterator, Scalar) - Static method in class sleep.bridges.BridgeUtilities
Flattens the specified arrays within the specified iterator.
FLOW_CONTROL_BREAK - Static variable in class sleep.runtime.ScriptEnvironment
request a break out of the current loop
FLOW_CONTROL_CALLCC - Static variable in class sleep.runtime.ScriptEnvironment
adding a callcc keyword
FLOW_CONTROL_CONTINUE - Static variable in class sleep.runtime.ScriptEnvironment
adding a continue keyword as people keep demanding it
FLOW_CONTROL_DEBUG - Static variable in class sleep.runtime.ScriptEnvironment
a special case for debugs and such
FLOW_CONTROL_NONE - Static variable in class sleep.runtime.ScriptEnvironment
currently no flow control change has been requested
FLOW_CONTROL_PASS - Static variable in class sleep.runtime.ScriptEnvironment
a special case, pass control flow to the return value (it better be a function!)
FLOW_CONTROL_RETURN - Static variable in class sleep.runtime.ScriptEnvironment
request a return from the current function
FLOW_CONTROL_THROW - Static variable in class sleep.runtime.ScriptEnvironment
adding a throw keyword -- sleep is now useable :)
FLOW_CONTROL_YIELD - Static variable in class sleep.runtime.ScriptEnvironment
adding a yield keyword
fork() - Method in class sleep.runtime.ScriptInstance
Creates a forked script instance.
formatCall(String) - Method in class sleep.engine.CallRequest.ClosureCallRequest
 
formatCall(String) - Method in class sleep.engine.CallRequest
return a string view of this function call for trace messages; arguments are captured as comma separated descriptions of all args
formatCall(String) - Method in class sleep.engine.CallRequest.FunctionCallRequest
 
formatCall(String) - Method in class sleep.engine.CallRequest.InlineCallRequest
 
formatErrors() - Method in exception sleep.error.YourCodeSucksException
generate a nicely formatted string representation of the script errors in this exception
FrameResult(Scalar) - Method in class sleep.runtime.ScriptEnvironment
kills the current frame and if there is a parent frame pushes the specified value on to it
frames - Variable in class sleep.runtime.ScriptEnvironment
 
func - Variable in class sleep.bridges.DefaultEnvironment
 
func - Variable in class sleep.engine.ProxyInterface
 
function - Variable in class sleep.bridges.io.SocketObject.SocketHandler
 
function - Variable in class sleep.engine.CallRequest.FunctionCallRequest
 
function - Variable in class sleep.engine.CallRequest.InlineCallRequest
 
Function - Interface in sleep.interfaces
A function bridge is used to define a built-in function.
functionName - Variable in class sleep.runtime.ScriptInstance.ProfilerStatistic
the name of the function call

G

GeneratedSteps - Class in sleep.engine
A class providing static methods for constructing an atomic step of a specific type
GeneratedSteps() - Constructor for class sleep.engine.GeneratedSteps
 
Get - Class in sleep.engine.atoms
 
Get(String) - Constructor for class sleep.engine.atoms.Get
 
Get(String) - Static method in class sleep.engine.GeneratedSteps
 
get(Token[], int, int) - Static method in class sleep.parser.ParserUtilities
 
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.
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 class sleep.bridges.ArgumentArray
 
getAt(int) - Method in class sleep.engine.types.ArrayContainer
 
getAt(Scalar) - Method in class sleep.engine.types.HashContainer
 
getAt(int) - Method in class sleep.runtime.CollectionWrapper
 
getAt(Scalar) - Method in class sleep.runtime.MapWrapper
 
getAt(int) - Method in interface sleep.runtime.ScalarArray
 
getAt(Scalar) - Method in interface sleep.runtime.ScalarHash
Retrieves a scalar from the hashtable.
getBlock(String) - Method in class sleep.runtime.ScriptEnvironment
 
getBuffer(int) - Method in class sleep.bridges.io.IOObject
 
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.
getCount() - Method in class sleep.bridges.Semaphore
returns the current count data associated with this semaphore.
getCurrentFrame() - Method in class sleep.runtime.ScriptEnvironment
 
getCurrentSource() - Method in class sleep.runtime.ScriptEnvironment
obtain the filename of the current source of execution
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.
getEntireLine() - Method in class sleep.parser.StringIterator
 
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.
getErrorToken() - Method in class sleep.parser.StringIterator
 
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) - 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
 
getFrameDescription() - Method in class sleep.engine.CallRequest.ClosureCallRequest
 
getFrameDescription() - Method in class sleep.engine.CallRequest.FunctionCallRequest
 
getFrameDescription() - Method in class sleep.engine.CallRequest
return the description of this current stack frame in the event of an exception
getFrameDescription() - Method in class sleep.engine.CallRequest.InlineCallRequest
 
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, ScriptInstance) - Static method in class sleep.runtime.SleepUtils
extracts a callable Function from the passed in Scalar.
getFunctionName() - Method in class sleep.engine.CallRequest.ClosureCallRequest
 
getFunctionName() - Method in class sleep.engine.CallRequest.FunctionCallRequest
 
getFunctionName() - Method in class sleep.engine.CallRequest
return the name of the function (for use in profiler statistics)
getFunctionName() - Method in class sleep.engine.CallRequest.InlineCallRequest
 
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.atoms.Decide
 
getHighLineNumber() - Method in class sleep.engine.atoms.Goto
 
getHighLineNumber() - Method in class sleep.engine.Block
return the highest line number associated with this block
getHighLineNumber() - Method in class sleep.engine.Step
returns the last line number that this step is associated with (assuming it is associated with multiple lines
getHint() - Method in class sleep.parser.Token
 
getImportManager() - Method in class sleep.parser.Parser
obtain the import manager, used for managing imported packages.
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.
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.
getLeft() - Method in class sleep.parser.Rule
 
getLineMarker() - Method in class sleep.parser.StringIterator
 
getLineNumber() - Method in class sleep.engine.CallRequest
returns the line number this function call is occuring from
getLineNumber() - Method in class sleep.engine.Step
returns the line number this step is associated with
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.
getLineNumber() - Method in class sleep.parser.StringIterator
 
getList() - Method in class sleep.parser.TokenList
 
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
getLowLineNumber() - Method in class sleep.engine.Step
returns the first line number that this step is associated with (assuming it is associated with multiple lines
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
getMarker() - Method in class sleep.parser.Token
 
getMarkerIndex() - Method in class sleep.parser.Token
 
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
getName() - Method in class sleep.parser.Parser
returns the identifier representing the source of the script we're parsing
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
getNextSafeSubroutine(BasicSubroutine) - Method in class sleep.bridges.DefaultEnvironment
 
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 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
 
getRight() - Method in class sleep.parser.Rule
 
getRunnableBlock() - Method in class sleep.parser.CodeGenerator
 
getRunnableBlock() - Method in class sleep.parser.Parser
 
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
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 class sleep.bridges.DefaultVariable
 
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.engine.CallRequest
returns the script environment...
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.BufferObject
returns the stream referenced by this IOObject
getSource() - Method in class sleep.bridges.io.FileObject
returns the file referenced by this IOObject
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.bridges.io.ProcessObject
returns the Process object used by this IO implementation
getSource() - Method in class sleep.bridges.io.SocketObject
returns the socket used for this connection
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.
getStatements() - Method in class sleep.parser.Parser
 
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.
getStrings() - Method in class sleep.parser.TokenList
 
getSyntaxError() - Method in class sleep.parser.Rule
 
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.
getTokens() - Method in class sleep.parser.TokenList
 
getType() - Method in class sleep.parser.CommentRule
 
getType() - Method in class sleep.parser.Rule
 
getType() - Method in class sleep.parser.Statement
 
getUnloadStack() - Method in class sleep.bridges.BasicSubroutine
 
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
Goto - Class in sleep.engine.atoms
 
Goto(Check) - Constructor for class sleep.engine.atoms.Goto
 
Goto(Check, Block, Block) - Static method in class sleep.engine.GeneratedSteps
 
GroupBlockTokens(Parser, StringIterator) - Static method in class sleep.parser.LexicalAnalyzer
a general pass over the list of tokens, we create terms and then pass over them creating combined terms
groupByBlockTerm(Parser, Token) - Static method in class sleep.parser.ParserUtilities
breaks down the token into sub tokens that are one "term" wide, in the case of blocks separated by ;
groupByMessageTerm(Parser, Token) - Static method in class sleep.parser.ParserUtilities
breaks down the token into sub tokens that are one "term" wide, in the case of messages separated by :
groupByParameterTerm(Parser, Token) - Static method in class sleep.parser.ParserUtilities
breaks down the token into sub tokens that are one "term" wide, a termi in the case of parameters it uses ,
GroupExpressionIndexTokens(Parser, StringIterator) - Static method in class sleep.parser.LexicalAnalyzer
a general pass over the list of tokens, we create terms and then pass over them creating combined terms
GroupParameterTokens(Parser, StringIterator) - Static method in class sleep.parser.LexicalAnalyzer
 

H

HACK_DEC - Static variable in interface sleep.parser.ParserConstants
 
HACK_INC - Static variable in interface sleep.parser.ParserConstants
 
handleExceptionFromJava(Throwable, ScriptEnvironment, String, int) - Static method in class sleep.engine.ObjectUtilities
Standard method to handle a Java exception from a HOES call.
handler - Variable in class sleep.runtime.ScriptEnvironment.Context
 
handler - Variable in class sleep.runtime.ScriptEnvironment.ExceptionContext
 
hasErrors() - Method in class sleep.parser.Parser
 
hasFrame() - Method in class sleep.runtime.ScriptEnvironment
 
hash - Variable in class sleep.runtime.Scalar
 
HashContainer - Class in sleep.engine.types
 
HashContainer(Map) - Constructor for class sleep.engine.types.HashContainer
 
HashContainer() - Constructor for class sleep.engine.types.HashContainer
 
hasNext() - Method in class sleep.parser.StringIterator
check that there is another character out there for us to get
hasNext(int) - Method in class sleep.parser.StringIterator
check that there are at least n chars we can still get
hasNext() - Method in class sleep.runtime.CollectionWrapper.ProxyIterator
 
hasWarnings() - Method in class sleep.parser.Parser
 
hint - Variable in class sleep.parser.Token
 
host - Variable in class sleep.bridges.io.SocketObject.SocketHandler
 

I

IDEA_BLOCK - Static variable in interface sleep.parser.ParserConstants
 
IDEA_BOOLEAN - Static variable in interface sleep.parser.ParserConstants
 
IDEA_CLASS - Static variable in interface sleep.parser.ParserConstants
 
IDEA_DOUBLE - Static variable in interface sleep.parser.ParserConstants
 
IDEA_EXPR - Static variable in interface sleep.parser.ParserConstants
 
IDEA_EXPR_I - Static variable in interface sleep.parser.ParserConstants
 
IDEA_FUNC - Static variable in interface sleep.parser.ParserConstants
 
IDEA_HASH_PAIR - Static variable in interface sleep.parser.ParserConstants
 
IDEA_LITERAL - Static variable in interface sleep.parser.ParserConstants
 
IDEA_NUMBER - Static variable in interface sleep.parser.ParserConstants
 
IDEA_OPER - Static variable in interface sleep.parser.ParserConstants
 
IDEA_PROPERTY - Static variable in interface sleep.parser.ParserConstants
 
IDEA_STRING - Static variable in interface sleep.parser.ParserConstants
 
identity() - Method in class sleep.runtime.Scalar
returns an identity value for this scalar.
iffalse - Variable in class sleep.engine.atoms.Decide
 
iftrue - Variable in class sleep.engine.atoms.Decide
 
iftrue - Variable in class sleep.engine.atoms.Goto
 
ImportManager - Class in sleep.parser
This class mantains a cache of imported package names and resolve classes for a Sleep parser.
ImportManager() - Constructor for class sleep.parser.ImportManager
 
importPackage(String, String) - Method in class sleep.parser.ImportManager
Used by Sleep to import statement to save an imported package name.
importPackage(String, String) - Method in class sleep.parser.Parser
Used by Sleep to import statement to save an imported package name.
imports - Variable in class sleep.parser.ImportManager
 
imports - Variable in class sleep.parser.Parser
 
in - Variable in class sleep.bridges.io.IOObject
 
increment - Variable in class sleep.engine.atoms.Goto
 
Index - Class in sleep.engine.atoms
 
Index(String, Block) - Constructor for class sleep.engine.atoms.Index
 
Index(String, Block) - Static method in class sleep.engine.GeneratedSteps
 
INDEX_RULE - Static variable in class sleep.parser.LexicalAnalyzer
 
initDefaultBridges() - Method in class sleep.runtime.ScriptLoader
method call to initialize the default bridges, if you want to change the default bridges subclass this class and override this method
initLocalScope(ScriptVariables, Variable, Stack) - Static method in class sleep.bridges.BridgeUtilities
initializes local scope based on argument stack
inline - Variable in class sleep.engine.CallRequest.InlineCallRequest
 
installBlock(Block) - Method in class sleep.runtime.ScriptInstance
Install a block as the compiled script code
installEscapeConstant(char, String) - Static method in class sleep.parser.CodeGenerator
install a constant for escapes within strings i.e.
installEscapeConstant(char, String) - Static method in class sleep.parser.ParserConfig
Installs an escape constant into the sleep parser.
installExceptionHandler(ScriptEnvironment.ExceptionContext) - Method in class sleep.runtime.ScriptEnvironment
 
installExceptionHandler(Block, Block, String) - Method in class sleep.runtime.ScriptEnvironment
 
intValue() - Method in class sleep.engine.types.DoubleValue
 
IntValue - Class in sleep.engine.types
 
IntValue(int) - Constructor for class sleep.engine.types.IntValue
 
intValue() - Method in class sleep.engine.types.IntValue
 
intValue() - Method in class sleep.engine.types.LongValue
 
intValue() - Method in class sleep.engine.types.NullValue
 
intValue() - Method in class sleep.engine.types.ObjectValue
 
intValue() - Method in class sleep.engine.types.StringValue
 
intValue() - Method in class sleep.runtime.Scalar
the int value of this scalar
intValue() - Method in interface sleep.runtime.ScalarType
convert the scalar to an int
invoke(Object, Method, Object[]) - Method in class sleep.engine.ProxyInterface
This function invokes the contained Sleep closure with the specified arguments
IOObject - Class in sleep.bridges.io
The IOObject is the parent class for all IO Source objects that are compatible with Sleep's I/O API.
IOObject() - Constructor for class sleep.bridges.io.IOObject
 
isAndPredicate(String, String, String) - Static method in class sleep.parser.Checkers
 
isArgMatch(Class[], Stack) - Static method in class sleep.engine.ObjectUtilities
convienence method to determine wether or not the stack of values is a safe match for the specified method signature
isArgMatch(Class, Scalar) - Static method in class sleep.engine.ObjectUtilities
determined if the specified scalar can be rightfully cast to the specified class
isArray(String) - Static method in class sleep.parser.Checkers
 
isArrayIndex(String) - Static method in class sleep.parser.Checkers
 
isAssert(String) - Static method in class sleep.parser.Checkers
 
isBacktick(String) - Static method in class sleep.parser.Checkers
 
isBalanced() - Method in class sleep.parser.CommentRule
 
isBalanced() - Method in class sleep.parser.Rule
 
isBind(String, String, String) - Static method in class sleep.parser.Checkers
 
isBindFilter(String, String, String, String) - Static method in class sleep.parser.Checkers
 
isBindPredicate(String, String, String) - Static method in class sleep.parser.Checkers
 
isBiPredicate(String, String, String) - Static method in class sleep.parser.Checkers
 
isBlock(String) - Static method in class sleep.parser.Checkers
 
isBoolean(String) - Static method in class sleep.parser.Checkers
 
isCallCC() - Method in class sleep.runtime.ScriptEnvironment
 
isCharsetConversions() - Method in class sleep.runtime.ScriptLoader
 
isClassIdentifier(Parser, String) - Static method in class sleep.parser.Checkers
 
isClassLiteral(String) - Static method in class sleep.parser.Checkers
 
isClassPiece(String) - Static method in class sleep.parser.Checkers
 
isClosureCall(String, String) - Static method in class sleep.parser.Checkers
 
isComment(String) - Static method in class sleep.parser.Checkers
 
isDataLiteral(String) - Static method in class sleep.parser.Checkers
 
isDebug() - Method in class sleep.engine.CallRequest.FunctionCallRequest
 
isDebug() - Method in class sleep.engine.CallRequest
return true if debug trace is enabled.
isDebugInterrupt() - Method in class sleep.runtime.ScriptEnvironment
 
isDebugTrace() - Method in class sleep.error.ScriptWarning
is this a trace message for one of the trace debug options
isDecrementHack(String) - Static method in class sleep.parser.Checkers
 
isDouble(String) - Static method in class sleep.parser.Checkers
 
isElseIfStatement(String, String, String, String) - Static method in class sleep.parser.Checkers
 
isElseStatement(String, String) - Static method in class sleep.parser.Checkers
 
isEmptyScalar(Scalar) - Static method in class sleep.runtime.SleepUtils
returns true if the passed in scalar value is equivalent to the empty scalar or null
isEndOfVar(char) - Static method in class sleep.parser.Checkers
 
isEOF() - Method in class sleep.bridges.io.IOObject
Returns true if the reader is closed
isExceptionHandlerInstalled() - Method in class sleep.runtime.ScriptEnvironment
 
isExpression(String) - Static method in class sleep.parser.Checkers
 
isFor(String, String, String) - Static method in class sleep.parser.Checkers
 
isForeach(String, String, String, String) - Static method in class sleep.parser.Checkers
 
isFunction(String) - Static method in class sleep.parser.Checkers
 
isFunctionCall(String, String) - Static method in class sleep.parser.Checkers
 
isFunctionCall(String) - Static method in class sleep.parser.Checkers
 
isFunctionReferenceToken(String) - Static method in class sleep.parser.Checkers
 
isFunctionScalar(Scalar) - Static method in class sleep.runtime.SleepUtils
Determines if the passed in scalar represents a "function" value.
isHash(String) - Static method in class sleep.parser.Checkers
 
isHashIndex(String) - Static method in class sleep.parser.Checkers
 
isIfStatement(String, String, String) - Static method in class sleep.parser.Checkers
 
isImportStatement(String, String) - Static method in class sleep.parser.Checkers
 
isIncrementHack(String) - Static method in class sleep.parser.Checkers
 
isIndex(String) - Static method in class sleep.parser.Checkers
 
isIndexableItem(String, String) - Static method in class sleep.parser.Checkers
 
isIndexableItem(String) - Static method in class sleep.parser.Checkers
 
isLeft(char) - Method in class sleep.parser.CommentRule
 
isLeft(char) - Method in class sleep.parser.Rule
 
isLiteral(String) - Static method in class sleep.parser.Checkers
 
isLoaded() - Method in class sleep.runtime.ScriptInstance
Returns wether or not this script is loaded.
isLoaded(String) - Method in class sleep.runtime.ScriptLoader
Determines wether or not the script is loaded by checking if the specified key exists in the script db.
isMatch(char) - Method in class sleep.parser.CommentRule
 
isMatch(char) - Method in class sleep.parser.Rule
 
isNextChar(char) - Method in class sleep.parser.StringIterator
 
isNextString(String) - Method in class sleep.parser.StringIterator
 
isNumber(String) - Static method in class sleep.parser.Checkers
 
isObjectNew(String, String) - Static method in class sleep.parser.Checkers
 
isOperator(String, String, String) - Static method in class sleep.parser.Checkers
 
isOrPredicate(String, String, String) - Static method in class sleep.parser.Checkers
 
isPassControl() - Method in class sleep.runtime.ScriptEnvironment
 
isProfileOnly() - Method in class sleep.runtime.ScriptInstance
a quick way to check if we are profiling and not tracing the script steps
isResponsible(Block) - Method in class sleep.runtime.ScriptEnvironment
 
isReturn(String) - Static method in class sleep.parser.Checkers
 
isReturn() - Method in class sleep.runtime.ScriptEnvironment
 
isRight(char) - Method in class sleep.parser.CommentRule
 
isRight(char) - Method in class sleep.parser.Rule
 
isScalar(String) - Static method in class sleep.parser.Checkers
 
isSpecialForeach(String, String, String, String, String, String) - Static method in class sleep.parser.Checkers
 
isSpecialWhile(String, String, String, String) - Static method in class sleep.parser.Checkers
 
isString(String) - Static method in class sleep.parser.Checkers
 
isThrownValue() - Method in class sleep.runtime.ScriptEnvironment
 
isTryCatch(String, String, String, String, String) - Static method in class sleep.parser.Checkers
 
isUniPredicate(String, String) - Static method in class sleep.parser.Checkers
 
isVariable(String) - Static method in class sleep.parser.Checkers
 
isVariableReference(String) - Static method in class sleep.parser.Checkers
 
isWhile(String, String, String) - Static method in class sleep.parser.Checkers
 
isYield() - Method in class sleep.runtime.ScriptEnvironment
 
Iterate - Class in sleep.engine.atoms
 
Iterate(String, String, int) - Constructor for class sleep.engine.atoms.Iterate
 
Iterate.IteratorData - Class in sleep.engine.atoms
 
Iterate.IteratorData() - Constructor for class sleep.engine.atoms.Iterate.IteratorData
 
iterator - Variable in class sleep.engine.atoms.Iterate.IteratorData
 
ITERATOR_CREATE - Static variable in class sleep.engine.atoms.Iterate
 
ITERATOR_DESTROY - Static variable in class sleep.engine.atoms.Iterate
 
ITERATOR_NEXT - Static variable in class sleep.engine.atoms.Iterate
 
IteratorCreate(String, String) - Static method in class sleep.engine.GeneratedSteps
 
IteratorDestroy() - Static method in class sleep.engine.GeneratedSteps
 
IteratorNext() - Static method in class sleep.engine.GeneratedSteps
 

J

jars - Variable in class sleep.parser.ImportManager
 
join(Token[]) - Static method in class sleep.parser.ParserUtilities
 
join(String[], String) - Static method in class sleep.parser.ParserUtilities
 

K

kenv - Variable in class sleep.engine.atoms.Iterate.IteratorData
 
key - Variable in class sleep.bridges.KeyValuePair
the key scalar
key - Variable in class sleep.engine.atoms.Iterate.IteratorData
 
key - Variable in class sleep.engine.atoms.Iterate
 
keys() - Method in class sleep.engine.types.HashContainer
 
keys() - Method in class sleep.runtime.MapWrapper
this operation is kind of expensive...
keys() - Method in interface sleep.runtime.ScalarHash
Returns all of the keys within the scalar hash.
KeyValuePair - Class in sleep.bridges
Arguments passed to functions with the form key => expression are available via the KeyValuePair object.
KeyValuePair(Scalar, Scalar) - Constructor for class sleep.bridges.KeyValuePair
Instantiates a key/value pair
keywords - Static variable in class sleep.parser.Checkers
a hashtable that keeps track of language keywords so they are not mistaken for function names
KillFrame() - Method in class sleep.runtime.ScriptEnvironment
 

L

laddr - Variable in class sleep.bridges.io.SocketObject.SocketHandler
 
last - Variable in class sleep.engine.Block
our last step in this block
last - Variable in class sleep.runtime.ScriptEnvironment.Context
 
LexicalAnalyzer - Class in sleep.parser
 
LexicalAnalyzer() - Constructor for class sleep.parser.LexicalAnalyzer
 
line - Variable in class sleep.engine.Step
the script line number that this step was generated from
line - Variable in class sleep.error.ScriptWarning
 
lineNo - Variable in class sleep.error.SyntaxError
 
lineNo - Variable in class sleep.parser.StringIterator
 
lineNumber - Variable in class sleep.engine.CallRequest
 
lineNumber - Variable in class sleep.runtime.ScriptInstance.SleepStackElement
 
linger - Variable in class sleep.bridges.io.SocketObject.SocketHandler
 
listen(SocketObject.SocketHandler, ScriptEnvironment) - Method in class sleep.bridges.io.SocketObject
 
LISTEN_FUNCTION - Static variable in class sleep.bridges.io.SocketObject
 
Loadable - Interface in sleep.interfaces
A loadable bridge is used to perform actions on scripts when they are loaded and unloaded.
loadContext(Stack, HashMap) - Method in class sleep.runtime.ScriptEnvironment
 
loaded - Variable in class sleep.runtime.ScriptInstance
true by default, indicates wether or not the script is loaded.
loadedScripts - Variable in class sleep.runtime.ScriptLoader
loaded scripts
loadScript(String, Block, Hashtable) - Method in class sleep.runtime.ScriptLoader
 
loadScript(String, String, Hashtable) - Method in class sleep.runtime.ScriptLoader
loads the specified script
loadScript(String, InputStream) - Method in class sleep.runtime.ScriptLoader
loads a script from the specified inputstream
loadScript(String, InputStream, Hashtable) - Method in class sleep.runtime.ScriptLoader
loads a script from the specified input stream using the specified hashtable as a shared environment
loadScript(String) - Method in class sleep.runtime.ScriptLoader
Loads the specified script file
loadScript(String, Hashtable) - Method in class sleep.runtime.ScriptLoader
Loads the specified script file, uses the specified hashtable for the environment
loadScript(File, Hashtable) - Method in class sleep.runtime.ScriptLoader
Loads the specified script file, uses the specified hashtable for the environment
loadScript(File) - Method in class sleep.runtime.ScriptLoader
Loads the specified script file
loadSerialized(File, Hashtable) - Method in class sleep.runtime.ScriptLoader
Load a serialized version of the script iff a serialized version exists, and its modification time is greater than the modification time of the script.
loadSerialized(String, InputStream, Hashtable) - Method in class sleep.runtime.ScriptLoader
Loads a serialized script from the specified input stream with the specified name
longValue() - Method in class sleep.engine.types.DoubleValue
 
longValue() - Method in class sleep.engine.types.IntValue
 
LongValue - Class in sleep.engine.types
 
LongValue(long) - Constructor for class sleep.engine.types.LongValue
 
longValue() - Method in class sleep.engine.types.LongValue
 
longValue() - Method in class sleep.engine.types.NullValue
 
longValue() - Method in class sleep.engine.types.ObjectValue
 
longValue() - Method in class sleep.engine.types.StringValue
 
longValue() - Method in class sleep.runtime.Scalar
the long value of this scalar
longValue() - Method in interface sleep.runtime.ScalarType
convert the scalar to a long
lport - Variable in class sleep.bridges.io.SocketObject.SocketHandler
 

M

main(String[]) - Static method in class sleep.console.TextConsole
 
main(String[]) - Static method in class sleep.parser.Parser
 
main(String[]) - Static method in class sleep.parser.StringIterator
 
makeToken(String, Token) - Static method in class sleep.parser.ParserUtilities
 
MapWrapper - Class in sleep.runtime
A class for creating accessing a Map data structure in your application in a ready only way.
MapWrapper(Map) - Constructor for class sleep.runtime.MapWrapper
 
mark() - Method in class sleep.parser.StringIterator
 
mark1 - Variable in class sleep.parser.StringIterator
 
mark2 - Variable in class sleep.parser.StringIterator
 
marker - Variable in class sleep.error.SyntaxError
 
marker - Variable in class sleep.parser.Token
 
markFrame() - Method in class sleep.runtime.ScriptEnvironment
markFrame and cleanFrame are used to keep the sleep stack in good order after certain error conditions
message - Variable in class sleep.error.ScriptWarning
 
metadata - Variable in class sleep.runtime.ScriptEnvironment
 
metaStack - Variable in class sleep.runtime.ScriptEnvironment
 
moreHandlers - Variable in class sleep.runtime.ScriptEnvironment.Context
 
moreHandlers - Variable in class sleep.runtime.ScriptEnvironment
 

N

name - Variable in class sleep.engine.atoms.Check
 
name - Variable in class sleep.engine.atoms.ObjectAccess
 
name - Variable in class sleep.engine.atoms.ObjectNew
 
name - Variable in class sleep.engine.CallRequest.ClosureCallRequest
 
name - Variable in class sleep.parser.Parser
the actual "code" for the script file.
name - Variable in class sleep.runtime.ScriptInstance
the name of this script
name - Variable in class sleep.runtime.WatchScalar
 
newInstance(Class, SleepClosure, ScriptInstance) - Static method in class sleep.runtime.SleepUtils
Creates a proxy instance of the specified class (limited to interfaces at this time) that is backed with the specified closure
newInstance(Class, Block, ScriptInstance) - Static method in class sleep.runtime.SleepUtils
Creates a proxy instance of the specified class (limited to interfaces at this time) that is backed with the specified block of code (made into a closure)
next - Variable in class sleep.bridges.io.DataPattern
 
next - Variable in class sleep.engine.Step
Steps act as a simple self contained linked list
next(int) - Method in class sleep.parser.StringIterator
returns the string consisting of the next n characters.
next() - Method in class sleep.parser.StringIterator
moves the iterator forward one char
next() - Method in class sleep.runtime.CollectionWrapper.ProxyIterator
 
normalize(int, int) - Static method in class sleep.bridges.BridgeUtilities
normalizes the index value based on the specified length
nullScalar - Static variable in class sleep.runtime.SleepUtils
a shared instance of the dreaded null scalar...
NullValue - Class in sleep.engine.types
 
NullValue() - Constructor for class sleep.engine.types.NullValue
 

O

OBJECT_ACCESS - Static variable in interface sleep.parser.ParserConstants
 
OBJECT_ACCESS_S - Static variable in interface sleep.parser.ParserConstants
 
OBJECT_CL_CALL - Static variable in interface sleep.parser.ParserConstants
 
OBJECT_IMPORT - Static variable in interface sleep.parser.ParserConstants
 
OBJECT_NEW - Static variable in interface sleep.parser.ParserConstants
 
ObjectAccess - Class in sleep.engine.atoms
 
ObjectAccess(String, Class) - Constructor for class sleep.engine.atoms.ObjectAccess
 
ObjectAccess(String) - Static method in class sleep.engine.GeneratedSteps
 
ObjectAccessStatic(Class, String) - Static method in class sleep.engine.GeneratedSteps
 
ObjectNew - Class in sleep.engine.atoms
 
ObjectNew(Class) - Constructor for class sleep.engine.atoms.ObjectNew
 
ObjectNew(Class) - Static method in class sleep.engine.GeneratedSteps
 
ObjectUtilities - Class in sleep.engine
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.
ObjectUtilities() - Constructor for class sleep.engine.ObjectUtilities
 
objectValue() - Method in class sleep.engine.types.DoubleValue
 
objectValue() - Method in class sleep.engine.types.IntValue
 
objectValue() - Method in class sleep.engine.types.LongValue
 
objectValue() - Method in class sleep.engine.types.NullValue
 
ObjectValue - Class in sleep.engine.types
 
ObjectValue(Object) - Constructor for class sleep.engine.types.ObjectValue
 
objectValue() - Method in class sleep.engine.types.ObjectValue
 
objectValue() - Method in class sleep.engine.types.StringValue
 
objectValue() - Method in class sleep.runtime.Scalar
the object value of this scalar
objectValue() - Method in interface sleep.runtime.ScalarType
convert the scalar to an object value *shrug*
open(String, ScriptEnvironment) - Method in class sleep.bridges.io.FileObject
opens a file and references it to this file object.
open(String[], String[], File, ScriptEnvironment) - Method in class sleep.bridges.io.ProcessObject
 
open(SocketObject.SocketHandler, ScriptEnvironment) - Method in class sleep.bridges.io.SocketObject
 
open - Variable in class sleep.parser.Rule
 
openRead(InputStream) - Method in class sleep.bridges.io.IOObject
Initializes a binary reader (a DataInputStream) and a text reader (a BufferedReader) against this input stream.
openWrite(OutputStream) - Method in class sleep.bridges.io.IOObject
Initializes a binary writer (a DataOutputStream) and a text writer (a PrintWriter) against this input stream.
operate(String, ScriptInstance, Stack) - Method in class sleep.bridges.BasicNumbers
 
Operate - Class in sleep.engine.atoms
 
Operate(String) - Constructor for class sleep.engine.atoms.Operate
 
Operate(String) - Static method in class sleep.engine.GeneratedSteps
 
operate(String, ScriptInstance, Stack) - Method in interface sleep.interfaces.Operator
apply operator operatorName on the values in the stack.
operator - Variable in class sleep.engine.atoms.AssignT
 
Operator - Interface in sleep.interfaces
An operator in sleep parlance is anything used to operate on two variables inside of an expression.
OPTION_COMPLEMENT - Static variable in class sleep.bridges.Transliteration
Negates the pattern
OPTION_DELETE - Static variable in class sleep.bridges.Transliteration
Forces any matches of non-mapped pattern characters to be deleted
OPTION_SQUEEZE - Static variable in class sleep.bridges.Transliteration
Deletes duplicates of all matched characters
order - Variable in class sleep.bridges.io.DataPattern
 
out - Variable in class sleep.bridges.io.IOObject
 
owner - Variable in class sleep.runtime.ScriptEnvironment.ExceptionContext
 
owner - Variable in class sleep.runtime.WatchScalar
 

P

P() - Method in class sleep.bridges.Semaphore
aquires this semaphore by attempting to decrement the count.
PAREN_RULE - Static variable in class sleep.parser.LexicalAnalyzer
 
parent - Variable in class sleep.runtime.ScriptInstance
 
Parse(String) - Static method in class sleep.bridges.io.DataPattern
 
parse(Statement) - Method in class sleep.parser.CodeGenerator
 
parse() - Method in class sleep.parser.Parser
 
parse(StringIterator) - Method in class sleep.parser.Parser
 
parseBlock(Token) - Method in class sleep.parser.CodeGenerator
 
parseBlock(LinkedList) - Method in class sleep.parser.CodeGenerator
 
ParseBlocks(Parser, TokenList) - Static method in class sleep.parser.TokenParser
 
ParseCode(String) - Static method in class sleep.runtime.SleepUtils
Parses the specified code into a runnable block.
parseIdea(Token) - Method in class sleep.parser.CodeGenerator
 
ParseIdea(Parser, TokenList) - Static method in class sleep.parser.TokenParser
 
parseObject(Token) - Method in class sleep.parser.CodeGenerator
 
parseObject(Statement) - Method in class sleep.parser.CodeGenerator
 
ParseObject(Parser, TokenList) - Static method in class sleep.parser.TokenParser
 
parseParameters(Token) - Method in class sleep.parser.CodeGenerator
 
parsePredicate(Token) - Method in class sleep.parser.CodeGenerator
 
parsePredicate(Statement) - Method in class sleep.parser.CodeGenerator
 
ParsePredicate(Parser, TokenList) - Static method in class sleep.parser.TokenParser
 
parser - Variable in class sleep.parser.CodeGenerator
 
Parser - Class in sleep.parser
 
Parser(String) - Constructor for class sleep.parser.Parser
initialize the parser with the code you want me to work with
Parser(String, String) - Constructor for class sleep.parser.Parser
initialize the parser with the code you want me to work with
Parser(String, String, ImportManager) - Constructor for class sleep.parser.Parser
initialize the parser with the code you want me to work with plus a shared import manager
ParserConfig - Class in sleep.parser
 
ParserConfig() - Constructor for class sleep.parser.ParserConfig
 
ParserConstants - Interface in sleep.parser
 
ParserUtilities - Class in sleep.parser
 
ParserUtilities() - Constructor for class sleep.parser.ParserUtilities
 
paths - Variable in class sleep.runtime.ScriptLoader
path to search for jar files imported using [import * from: *] syntax
peek() - Method in class sleep.parser.StringIterator
 
PLiteral - Class in sleep.engine.atoms
 
PLiteral(String) - Constructor for class sleep.engine.atoms.PLiteral
 
PLiteral(String) - Static method in class sleep.engine.GeneratedSteps
 
pop() - Method in class sleep.bridges.ArgumentArray
 
pop() - Method in class sleep.engine.types.ArrayContainer
 
pop() - Method in class sleep.runtime.CollectionWrapper
 
pop() - Method in interface sleep.runtime.ScalarArray
 
popClosureLevel() - Method in class sleep.runtime.ScriptVariables
discards the current closure variable scope
popExceptionContext() - Method in class sleep.runtime.ScriptEnvironment
 
popLocalLevel() - Method in class sleep.runtime.ScriptVariables
discards the current local variable scope, making the previous local scope the current local scope again
popSource() - Method in class sleep.runtime.ScriptEnvironment
remove the latest source information from the source stack
PopTry - Class in sleep.engine.atoms
 
PopTry() - Constructor for class sleep.engine.atoms.PopTry
 
PopTry() - Static method in class sleep.engine.GeneratedSteps
 
port - Variable in class sleep.bridges.io.SocketObject.SocketHandler
 
position - Variable in class sleep.parser.StringIterator
 
PRED_AND - Static variable in interface sleep.parser.ParserConstants
 
PRED_BI - Static variable in interface sleep.parser.ParserConstants
 
PRED_EXPR - Static variable in interface sleep.parser.ParserConstants
 
PRED_IDEA - Static variable in interface sleep.parser.ParserConstants
 
PRED_OR - Static variable in interface sleep.parser.ParserConstants
 
PRED_UNI - Static variable in interface sleep.parser.ParserConstants
 
Predicate - Interface in sleep.interfaces
A predicate is an operator used inside of comparisons.
PredicateEnvironment - Interface in sleep.interfaces
Predicate environments are similar to normal keyword environments except instead of binding commands to an identifier they are bound to a predicate condition.
PRESERVE_ENTITY - Static variable in class sleep.parser.Rule
 
PRESERVE_SINGLE - Static variable in class sleep.parser.Rule
 
print(String) - Method in class sleep.bridges.io.IOObject
Prints out a line of text with no newline character appended
printErrors(OutputStream) - Method in exception sleep.error.YourCodeSucksException
print a nicely formatted version of the script errors to the specified stream
printLine(String) - Method in class sleep.bridges.io.IOObject
Prints out a line of text with a newline character appended
printProfileStatistics(OutputStream) - Method in class sleep.runtime.ScriptInstance
Dumps the profiler statistics to the specified stream
process - Variable in class sleep.bridges.io.ProcessObject
 
ProcessObject - Class in sleep.bridges.io
 
ProcessObject() - Constructor for class sleep.bridges.io.ProcessObject
 
processScriptErrors(YourCodeSucksException) - Method in class sleep.console.ConsoleImplementation
a convienence method that formats and writes each syntax error to the proxy output
processScriptWarning(ScriptWarning) - Method in class sleep.console.ConsoleImplementation
 
processScriptWarning(ScriptWarning) - Method in interface sleep.error.RuntimeWarningWatcher
fired when a runtime warning has occured.
ProxyInterface - Class in sleep.engine
This class is used to mock an instance of a class that implements a specified Java interface using a Sleep function.
ProxyInterface(Function, ScriptInstance) - Constructor for class sleep.engine.ProxyInterface
 
push(Scalar) - Method in class sleep.bridges.ArgumentArray
 
push(Scalar) - Method in class sleep.engine.types.ArrayContainer
 
push(Scalar) - Method in class sleep.runtime.CollectionWrapper
 
push(Scalar) - Method in interface sleep.runtime.ScalarArray
 
pushClosureLevel(Variable) - Method in class sleep.runtime.ScriptVariables
pushes the specified variables into this closures level, once the closure has executed this should be popped
pushLocalLevel(Variable) - Method in class sleep.runtime.ScriptVariables
makes the specified variable container active for the local scope.
pushLocalLevel() - Method in class sleep.runtime.ScriptVariables
starts a new local variable scope.
pushSource(String) - Method in class sleep.runtime.ScriptEnvironment
push source information onto the source stack
putMetadata(Object, Object) - Method in class sleep.bridges.SleepClosure
put some value into the metadata store associated with this closure.
putScalar(String, Scalar) - Method in class sleep.bridges.DefaultVariable
 
putScalar(String, Scalar) - Method in interface sleep.interfaces.Variable
put a scalar into this variable environment
putScalar(String, Scalar) - Method in class sleep.runtime.ScriptEnvironment
puts a scalar into this scripts environment (global scope)
putScalar(String, Scalar) - Method in class sleep.runtime.ScriptVariables
puts a scalar into the global scope

R

readCharacter() - Method in class sleep.bridges.io.IOObject
Reads in a character of text and returns as a string.
reader - Variable in class sleep.bridges.io.IOObject
 
readerb - Variable in class sleep.bridges.io.IOObject
 
readeru - Variable in class sleep.bridges.io.IOObject
 
readLine() - Method in class sleep.bridges.io.IOObject
Reads in a line of text
readme - Variable in class sleep.bridges.io.BufferObject
The readable source for this IO object
realIterator - Variable in class sleep.runtime.CollectionWrapper.ProxyIterator
 
recordStackFrame(String, String, int) - Method in class sleep.runtime.ScriptInstance
Records a stack frame into this environments stack trace tracker thingie.
recordStackFrame(String, int) - Method in class sleep.runtime.ScriptInstance
Records a stack frame into this environments stack trace tracker thingie.
RegexBridge - Class in sleep.bridges
Provides a bridge between Java's regex API and sleep.
RegexBridge() - Constructor for class sleep.bridges.RegexBridge
 
release(int) - Static method in class sleep.bridges.io.SocketObject
releases the socket binding for the specified port
remove(Scalar) - Method in class sleep.bridges.ArgumentArray
 
remove(int) - Method in class sleep.bridges.ArgumentArray
 
remove(Scalar) - Method in class sleep.engine.types.ArrayContainer
 
remove(int) - Method in class sleep.engine.types.ArrayContainer
 
remove(Scalar) - Method in class sleep.engine.types.HashContainer
 
remove() - Method in class sleep.runtime.CollectionWrapper.ProxyIterator
 
remove(int) - Method in class sleep.runtime.CollectionWrapper
 
remove(Scalar) - Method in class sleep.runtime.CollectionWrapper
 
remove(Scalar) - Method in class sleep.runtime.MapWrapper
 
remove(Scalar) - Method in interface sleep.runtime.ScalarArray
 
remove(int) - Method in interface sleep.runtime.ScalarArray
 
remove(Scalar) - Method in interface sleep.runtime.ScalarHash
Removes the specified scalar from the hashmap.
removeScalar(String) - Method in class sleep.bridges.DefaultVariable
 
removeScalar(String) - Method in interface sleep.interfaces.Variable
remove a scalar from this variable environment
removeScalar(Iterator, Scalar) - Static method in class sleep.runtime.SleepUtils
Iterates over the specified collection and removes all items that are the same as the specified scalar value.
removeWarningWatcher(RuntimeWarningWatcher) - Method in class sleep.runtime.ScriptInstance
Removes a runtime warning watcher listener
reportError(String, Token) - Method in class sleep.parser.Parser
 
reportError(SyntaxError) - Method in class sleep.parser.Parser
 
reportErrorWithMarker(String, Token) - Method in class sleep.parser.Parser
 
reportWarning(String, Token) - Method in class sleep.parser.Parser
 
request - Variable in class sleep.runtime.ScriptEnvironment
 
reset() - Method in class sleep.parser.StringIterator
 
resetEnvironment() - Method in class sleep.runtime.ScriptEnvironment
Resets the script environment to include clearing the return of all flags (including thrown exceptions)
restore() - Method in class sleep.parser.CodeGenerator
 
Return - Class in sleep.engine.atoms
 
Return(int) - Constructor for class sleep.engine.atoms.Return
See ScriptEnvironment.FLOW_CONTROL_* for the type constants
Return(int) - Static method in class sleep.engine.GeneratedSteps
 
return_type - Variable in class sleep.engine.atoms.Return
 
rppl() - Method in class sleep.console.ConsoleImplementation
starts the console
Rule - Class in sleep.parser
 
Rule(String, String, char, char) - Constructor for class sleep.parser.Rule
 
Rule(String, char) - Constructor for class sleep.parser.Rule
 
Rule() - Constructor for class sleep.parser.Rule
 
run() - Method in class sleep.bridges.io.SocketObject.SocketHandler
 
run() - Method in class sleep.runtime.ScriptInstance
Executes this script, same as runScript() just here for Runnable compatability
runCode(Block, ScriptEnvironment) - Static method in class sleep.runtime.SleepUtils
"safely" run a snippet of code.
runCode(Function, String, ScriptInstance, Stack) - Static method in class sleep.runtime.SleepUtils
"safely" runs a "Function" of code.
runCode(ScriptInstance, Block, HashMap) - Static method in class sleep.runtime.SleepUtils
"safely" run a snippet of code.
runCode(ScriptInstance, Block) - Static method in class sleep.runtime.SleepUtils
"safely" run a snippet of code.
runScript() - Method in class sleep.runtime.ScriptInstance
Executes this script, should be done first thing once a script is loaded
RuntimeWarningWatcher - Interface in sleep.error
Runtime errors are caught by sleep.
rv - Variable in class sleep.runtime.ScriptEnvironment
 

S

sameAs(Scalar) - Method in class sleep.runtime.Scalar
compares two scalars in terms of their identity.
sarray - Variable in class sleep.parser.TokenList
 
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 - Variable in class sleep.engine.CallRequest.ClosureCallRequest
 
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 class sleep.bridges.DefaultVariable
 
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.ArgumentArray
 
scalarIterator() - Method in class sleep.bridges.SleepClosure
 
scalarIterator() - Method in class sleep.engine.types.ArrayContainer
 
scalarIterator() - Method in class sleep.runtime.CollectionWrapper
 
scalarIterator() - Method in interface sleep.runtime.ScalarArray
 
ScalarType - Interface in sleep.runtime
This interface makes it possible to create a new scalar type.
script - Variable in class sleep.bridges.io.SocketObject.SocketHandler
 
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.bridges.BasicIO
 
scriptLoaded(ScriptInstance) - Method in class sleep.bridges.BasicNumbers
 
scriptLoaded(ScriptInstance) - Method in class sleep.bridges.BasicStrings
 
scriptLoaded(ScriptInstance) - Method in class sleep.bridges.BasicUtilities
 
scriptLoaded(ScriptInstance) - Method in class sleep.bridges.DefaultEnvironment
 
scriptLoaded(ScriptInstance) - Method in class sleep.bridges.DefaultVariable
 
scriptLoaded(ScriptInstance) - Method in class sleep.bridges.FileSystemBridge
 
scriptLoaded(ScriptInstance) - Method in class sleep.bridges.RegexBridge
 
scriptLoaded(ScriptInstance) - Method in class sleep.bridges.TimeDateBridge
 
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.bridges.BasicIO
 
scriptUnloaded(ScriptInstance) - Method in class sleep.bridges.BasicNumbers
 
scriptUnloaded(ScriptInstance) - Method in class sleep.bridges.BasicStrings
 
scriptUnloaded(ScriptInstance) - Method in class sleep.bridges.BasicUtilities
 
scriptUnloaded(ScriptInstance) - Method in class sleep.bridges.DefaultEnvironment
 
scriptUnloaded(ScriptInstance) - Method in class sleep.bridges.DefaultVariable
 
scriptUnloaded(ScriptInstance) - Method in class sleep.bridges.FileSystemBridge
 
scriptUnloaded(ScriptInstance) - Method in class sleep.bridges.RegexBridge
 
scriptUnloaded(ScriptInstance) - Method in class sleep.bridges.TimeDateBridge
 
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
Semaphore - Class in sleep.bridges
A sleep synchronization primitive.
Semaphore(long) - Constructor for class sleep.bridges.Semaphore
initializes this semaphore with the specified initial count
sendEOF() - Method in class sleep.bridges.io.IOObject
Closes down the output streams effectively sending an end of file message to the reading end.
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
setChoices(Block, Block) - Method in class sleep.engine.atoms.Decide
 
setChoices(Block) - Method in class sleep.engine.atoms.Goto
 
setClosureVariables(SleepClosure, Variable) - Method in class sleep.runtime.ScriptVariables
returns the closure level variables for this specific 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
setEndOfTerm(char) - Method in class sleep.parser.Parser
 
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.
setIncrement(Block) - Method in class sleep.engine.atoms.Goto
 
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
setInfo(int) - Method in class sleep.engine.Step
convience method for the code generator to set the line number.
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.
setType(int) - Method in class sleep.parser.Statement
 
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
setValue(ScalarType) - Method in class sleep.runtime.WatchScalar
set the value of this scalar container to a scalar value of some type
setValue(ScalarArray) - Method in class sleep.runtime.WatchScalar
set the value of this scalar container to a scalar array
setValue(ScalarHash) - Method in class sleep.runtime.WatchScalar
set the value of this scalar container to a scalar hash
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 class sleep.bridges.ArgumentArray
 
size - Variable in class sleep.bridges.io.DataPattern
 
size() - Method in class sleep.engine.types.ArrayContainer
 
size() - Method in class sleep.runtime.CollectionWrapper
 
size() - Method in interface sleep.runtime.ScalarArray
 
skip(int) - Method in class sleep.parser.StringIterator
does a direct skip of n characters, use only when you know what the chars are..
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.engine.types - package sleep.engine.types
 
sleep.error - package sleep.error
 
sleep.interfaces - package sleep.interfaces
 
sleep.parser - package sleep.parser
The parser package.
sleep.runtime - package sleep.runtime
 
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
 
socket - Variable in class sleep.bridges.io.SocketObject
 
socket - Variable in class sleep.bridges.io.SocketObject.SocketHandler
 
SocketObject - Class in sleep.bridges.io
 
SocketObject() - Constructor for class sleep.bridges.io.SocketObject
 
SocketObject.SocketHandler - Class in sleep.bridges.io
 
SocketObject.SocketHandler() - Constructor for class sleep.bridges.io.SocketObject.SocketHandler
 
sort(Comparator) - Method in class sleep.bridges.ArgumentArray
 
sort(Comparator) - Method in class sleep.engine.types.ArrayContainer
 
sort(Comparator) - Method in class sleep.runtime.CollectionWrapper
 
sort(Comparator) - Method in interface sleep.runtime.ScalarArray
 
source - Variable in class sleep.bridges.io.BufferObject
The writeable source for this IO object
source - Variable in class sleep.engine.atoms.Iterate.IteratorData
 
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
 
sources - Variable in class sleep.runtime.ScriptEnvironment
how many stacks does this damned class include?
SQUOTE_RULE - Static variable in class sleep.parser.LexicalAnalyzer
 
start() - Method in class sleep.bridges.io.SocketObject.SocketHandler
 
start - Variable in class sleep.engine.atoms.Decide
 
start - Variable in class sleep.engine.atoms.Goto
 
Statement - Class in sleep.parser
 
Statement() - Constructor for class sleep.parser.Statement
 
statements - Variable in class sleep.parser.Parser
 
Step - Class in sleep.engine
The root of all atomic steps.
Step() - Constructor for class sleep.engine.Step
 
STRING_FRAGMENT - Static variable in class sleep.engine.atoms.PLiteral
 
StringIterator - Class in sleep.parser
 
StringIterator(String) - Constructor for class sleep.parser.StringIterator
 
StringIterator(String, int) - Constructor for class sleep.parser.StringIterator
 
StringValue - Class in sleep.engine.types
 
StringValue(String) - Constructor for class sleep.engine.types.StringValue
 
stringValue() - Method in class sleep.runtime.Scalar
the string value of this scalar
SValue - Class in sleep.engine.atoms
 
SValue(Scalar) - Constructor for class sleep.engine.atoms.SValue
 
SValue(Scalar) - Static method in class sleep.engine.GeneratedSteps
 
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...

T

tarray - Variable in class sleep.parser.TokenList
 
term - Variable in class sleep.parser.Token
 
terms - Variable in class sleep.parser.TokenList
 
text - Variable in class sleep.parser.StringIterator
 
TextConsole - Class in sleep.console
Default implementation of the console proxy class.
TextConsole() - Constructor for class sleep.console.TextConsole
 
texts - Variable in class sleep.parser.StringIterator
 
thread - Variable in class sleep.bridges.io.IOObject
 
ticks - Variable in class sleep.runtime.ScriptInstance.ProfilerStatistic
the total number of ticks consumed by this function call
TimeDateBridge - Class in sleep.bridges
 
TimeDateBridge() - Constructor for class sleep.bridges.TimeDateBridge
 
timeout - Variable in class sleep.bridges.io.SocketObject.SocketHandler
 
toByteArrayNoConversion(String) - Static method in class sleep.bridges.BridgeUtilities
converts the specified string to an array of bytes (useful as Sleep stores byte arrays to strings)
token - Variable in class sleep.bridges.io.IOObject
 
Token - Class in sleep.parser
as much as possible this is a String with a line number associate with it (aka hint)
Token(String, int) - Constructor for class sleep.parser.Token
 
Token(String, int, int) - Constructor for class sleep.parser.Token
 
TokenList - Class in sleep.parser
 
TokenList() - Constructor for class sleep.parser.TokenList
 
TokenParser - Class in sleep.parser
 
TokenParser() - Constructor for class sleep.parser.TokenParser
 
tokens - Variable in class sleep.parser.Parser
a list of all of the parser warnings
toString() - Method in class sleep.bridges.ArgumentArray
 
toString() - Method in class sleep.bridges.KeyValuePair
Return a string representation of this key/value pair
toString() - Method in class sleep.bridges.Semaphore
returns a nice string representation of this semaphore
toString() - Method in class sleep.bridges.SleepClosure
Information about this closure in the form of &closure[:]#
toString() - Method in class sleep.bridges.Transliteration
Returns a string representation of this transliteration pattern...
toString(String) - Method in class sleep.engine.atoms.Assign
 
toString(String) - Method in class sleep.engine.atoms.AssignT
 
toString(String) - Method in class sleep.engine.atoms.Bind
 
toString() - Method in class sleep.engine.atoms.BindFilter
 
toString() - Method in class sleep.engine.atoms.BindPredicate
 
toString(String) - Method in class sleep.engine.atoms.Call
 
toString(String) - Method in class sleep.engine.atoms.Check
Converts this object to a string, used by the sleep engine for constructing an AST like thing
toString() - Method in class sleep.engine.atoms.Check
Returns a string representation of this object
toString(String) - Method in class sleep.engine.atoms.CreateClosure
 
toString(String) - Method in class sleep.engine.atoms.CreateFrame
 
toString(String) - Method in class sleep.engine.atoms.Decide
 
toString(String) - Method in class sleep.engine.atoms.Get
 
toString(String) - Method in class sleep.engine.atoms.Goto
 
toString(String) - Method in class sleep.engine.atoms.Index
 
toString(String) - Method in class sleep.engine.atoms.Iterate
 
toString() - Method in class sleep.engine.atoms.ObjectAccess
 
toString() - Method in class sleep.engine.atoms.ObjectNew
 
toString(String) - Method in class sleep.engine.atoms.Operate
 
toString(String) - Method in class sleep.engine.atoms.PLiteral
 
toString(String) - Method in class sleep.engine.atoms.PopTry
 
toString(String) - Method in class sleep.engine.atoms.Return
 
toString(String) - Method in class sleep.engine.atoms.SValue
 
toString(String) - Method in class sleep.engine.atoms.Try
 
toString(String) - Method in class sleep.engine.Block
 
toString() - Method in class sleep.engine.Block
Returns a string representation of the Abstract Syntax Tree (AST).
toString(String) - Method in class sleep.engine.Step
returns a string representation of this atomic step
toString() - Method in class sleep.engine.Step
 
toString() - Method in class sleep.engine.types.ArrayContainer
 
toString() - Method in class sleep.engine.types.DoubleValue
 
toString() - Method in class sleep.engine.types.HashContainer
 
toString() - Method in class sleep.engine.types.IntValue
 
toString() - Method in class sleep.engine.types.LongValue
 
toString() - Method in class sleep.engine.types.NullValue
 
toString() - Method in class sleep.engine.types.ObjectValue
 
toString() - Method in class sleep.engine.types.StringValue
 
toString() - Method in class sleep.error.ScriptWarning
returns a nicely formatted string representation of this runtime warning.
toString() - Method in exception sleep.error.YourCodeSucksException
Returns a simple string representation of the errors within this exception
toString() - Method in class sleep.parser.CommentRule
 
toString() - Method in class sleep.parser.Rule
 
toString() - Method in class sleep.parser.Statement
 
toString() - Method in class sleep.parser.StringIterator
 
toString() - Method in class sleep.parser.Token
 
toString() - Method in class sleep.parser.TokenList
 
toString() - Method in class sleep.runtime.CollectionWrapper
 
toString() - Method in class sleep.runtime.MapWrapper
 
toString() - Method in class sleep.runtime.Scalar
 
toString() - Method in interface sleep.runtime.ScalarType
convert the scalar to a string
toString() - Method in class sleep.runtime.ScriptEnvironment
 
toString() - Method in class sleep.runtime.ScriptInstance.ProfilerStatistic
returns a string in the form of (total time used in seconds)s (total calls made) @(line number) (function description)
toString() - Method in class sleep.runtime.ScriptInstance.SleepStackElement
 
toStringGeneric() - Method in class sleep.bridges.SleepClosure
Returns a generic string version of this closure without id information
trace - Variable in class sleep.error.ScriptWarning
 
translate(String) - Method in class sleep.bridges.Transliteration
Applies this Transliteration to the specified text.
Transliteration - Class in sleep.bridges
This class provides a character translation utility similar to the UNIX tr command.
Transliteration() - Constructor for class sleep.bridges.Transliteration
 
trim(Parser, String) - Static method in class sleep.parser.LexicalAnalyzer
 
Try - Class in sleep.engine.atoms
 
Try(Block, Block, String) - Constructor for class sleep.engine.atoms.Try
 
Try(Block, Block, String) - Static method in class sleep.engine.GeneratedSteps
 
type - Variable in class sleep.bridges.io.SocketObject.SocketHandler
 
type - Variable in class sleep.engine.atoms.Iterate
 
type - Variable in class sleep.parser.Statement
 

U

unloadScript(String) - Method in class sleep.runtime.ScriptLoader
unload a script
unloadScript(ScriptInstance) - Method in class sleep.runtime.ScriptLoader
unload a script

V

V() - Method in class sleep.bridges.Semaphore
increments this semaphore
value - Variable in class sleep.bridges.io.DataPattern
 
value - Variable in class sleep.bridges.KeyValuePair
the value scalar
value - Variable in class sleep.engine.atoms.Iterate.IteratorData
 
value - Variable in class sleep.engine.atoms.Iterate
 
value - Variable in class sleep.engine.types.DoubleValue
 
value - Variable in class sleep.engine.types.IntValue
 
value - Variable in class sleep.engine.types.LongValue
 
value - Variable in class sleep.engine.types.ObjectValue
 
value - Variable in class sleep.engine.types.StringValue
 
value - Variable in class sleep.runtime.Scalar
 
VALUE_INDEXED - Static variable in interface sleep.parser.ParserConstants
 
VALUE_SCALAR - Static variable in interface sleep.parser.ParserConstants
 
VALUE_SCALAR_REFERENCE - Static variable in interface sleep.parser.ParserConstants
 
values - Variable in class sleep.bridges.DefaultVariable
 
values - Variable in class sleep.engine.types.ArrayContainer
 
values - Variable in class sleep.engine.types.HashContainer
 
values - Variable in class sleep.runtime.CollectionWrapper
 
values - Variable in class sleep.runtime.MapWrapper
 
VAR_FRAGMENT - Static variable in class sleep.engine.atoms.PLiteral
 
Variable - Interface in sleep.interfaces
A variable bridge is a container for storing scalars.
variables - Variable in class sleep.runtime.ScriptInstance
The script variables which contains all of the variable information for a script
varname - Variable in class sleep.runtime.ScriptEnvironment.ExceptionContext
 
venv - Variable in class sleep.engine.atoms.Iterate.IteratorData
 

W

wait(ScriptEnvironment, long) - Method in class sleep.bridges.io.IOObject
 
wait(ScriptEnvironment, long) - Method in class sleep.bridges.io.ProcessObject
 
warnings - Variable in class sleep.parser.Parser
a list of all of the parser errors
watchers - Variable in class sleep.runtime.ScriptInstance
A list of listeners watching for a runtime error
WatchScalar - Class in sleep.runtime
 
WatchScalar(String, ScriptEnvironment) - Constructor for class sleep.runtime.WatchScalar
 
witnessClose(Token) - Method in class sleep.parser.CommentRule
Used to keep track of closing braces to check balance later on
witnessClose(Token) - Method in class sleep.parser.Rule
Used to keep track of closing braces to check balance later on
witnessOpen(Token) - Method in class sleep.parser.CommentRule
Used to keep track of opening braces to check balance later on
witnessOpen(Token) - Method in class sleep.parser.Rule
Used to keep track of opening braces to check balance later on
wrap(String) - Method in class sleep.parser.CommentRule
 
wrap(String) - Method in class sleep.parser.Rule
 
writerb - Variable in class sleep.bridges.io.IOObject
 
writeru - Variable in class sleep.bridges.io.IOObject
 

Y

YourCodeSucksException - Exception in sleep.error
Syntax errors are a reality of programming.
YourCodeSucksException(LinkedList) - Constructor for exception sleep.error.YourCodeSucksException
Initialize the exception (sleep parser)

A B C D E F G H I J K L M N O P R S T U V W Y