public interface WarpScriptStack
| Modifier and Type | Interface and Description |
|---|---|
static class |
WarpScriptStack.Macro |
static class |
WarpScriptStack.Mark |
static class |
WarpScriptStack.Signal
Signals that can be sent to a stack
The higher the ordinal of a signal, the higher its priority
|
static class |
WarpScriptStack.StackContext |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTRIBUTE_ALLOW_REDEFINED
Flag indicating whether or not redefined functions are allowed
|
static java.lang.String |
ATTRIBUTE_CREATION_TIME
Creation timestamp for the stack
|
static java.lang.String |
ATTRIBUTE_DEBUG_DEPTH
Debug depth of the stack.
|
static java.lang.String |
ATTRIBUTE_ELAPSED
List of elapsed times (in ns) per line
|
static java.lang.String |
ATTRIBUTE_EXPORTED_SYMBOLS
List of symbols to export upon script termination as a map of symbol name
to symbol value pushed onto the stack.
|
static java.lang.String |
ATTRIBUTE_FETCH_COUNT
Number of datapoints fetched so far in the session
|
static java.lang.String |
ATTRIBUTE_FETCH_LIMIT
Maximum number of datapoints that can be fetched in a session
|
static java.lang.String |
ATTRIBUTE_FETCH_LIMIT_HARD |
static java.lang.String |
ATTRIBUTE_GTS_COUNT
Number of GTS retrieved so far in the session
|
static java.lang.String |
ATTRIBUTE_GTS_LIMIT
Maximum number of GTS which can be retrieved from directory in a session
|
static java.lang.String |
ATTRIBUTE_GTS_LIMIT_HARD |
static java.lang.String |
ATTRIBUTE_HADOOP_PROGRESSABLE
Key for storing an instance of Hadoop's Progressable to report progress to the Hadoop framework
|
static java.lang.String |
ATTRIBUTE_HEADERS
Map of headers to return with the response
|
static java.lang.String |
ATTRIBUTE_IMPORT_RULES
Name of attribute for storing macro import rules
|
static java.lang.String |
ATTRIBUTE_IN_SECURE_MACRO
Flag indicating if we are currently in a secure macro execution
|
static java.lang.String |
ATTRIBUTE_IN_XEVAL
Flag indicating if we are currently executing an XEVAL call, in which
case generated macros should not be flagged secure.
|
static java.lang.String |
ATTRIBUTE_INFOMODE
Flag indicating whether or not the stack is currently in info mode
|
static java.lang.String |
ATTRIBUTE_INTERACTIVE_ECHO
Should the interactive mode display the top of the stack after each command?
|
static java.lang.String |
ATTRIBUTE_INTERACTIVE_JSON
Should the REL display the stack levels as JSON?
|
static java.lang.String |
ATTRIBUTE_INTERACTIVE_TIME
Flag indicating whether or not to display timing information after each command.
|
static java.lang.String |
ATTRIBUTE_INTERACTIVE_WRITER
PrintWriter instance for the REL (Read Execute Loop)
|
static java.lang.String |
ATTRIBUTE_JSON_MAXSIZE
Maximum size of a JSON created and pushed on the stack, in number of characters.
|
static java.lang.String |
ATTRIBUTE_JSON_MAXSIZE_HARD |
static java.lang.String |
ATTRIBUTE_JSON_PRETTY
Is the stack configured to output pretty JSON (i.e with ident)?
|
static java.lang.String |
ATTRIBUTE_JSON_STRICT
Is the stack configured to output strict JSON (i.e with no NaN/Infinity)?
|
static java.lang.String |
ATTRIBUTE_LAST_ERROR
Last error encountered in a TRY block
|
static java.lang.String |
ATTRIBUTE_LINENO
Flag indicating whether or not to set section with the current line number
|
static java.lang.String |
ATTRIBUTE_LOOP_MAXDURATION
Maximum duration of loops in ms and its hard limit
|
static java.lang.String |
ATTRIBUTE_LOOP_MAXDURATION_HARD |
static java.lang.String |
ATTRIBUTE_MACRO_NAME
Name of the current macro, or null if not in a macro or in an anonymous one
|
static java.lang.String |
ATTRIBUTE_MACRO_TTL
TTL (in ms since the epoch) of a macro
|
static java.lang.String |
ATTRIBUTE_MAX_BUCKETS
Maximum number of buckets in bucketized GTS
|
static java.lang.String |
ATTRIBUTE_MAX_BUCKETS_HARD |
static java.lang.String |
ATTRIBUTE_MAX_DEPTH
Maximum depth of the stack
|
static java.lang.String |
ATTRIBUTE_MAX_DEPTH_HARD |
static java.lang.String |
ATTRIBUTE_MAX_GEOCELLS
Maximum number of cells if GeoXPShapes
|
static java.lang.String |
ATTRIBUTE_MAX_GEOCELLS_HARD |
static java.lang.String |
ATTRIBUTE_MAX_OPS
Maximum number of operations for the stack
|
static java.lang.String |
ATTRIBUTE_MAX_OPS_HARD |
static java.lang.String |
ATTRIBUTE_MAX_PIXELS
Maximum number of pixels for images created on the stack
|
static java.lang.String |
ATTRIBUTE_MAX_PIXELS_HARD |
static java.lang.String |
ATTRIBUTE_MAX_SYMBOLS
Maximum number of symbols for the stack
|
static java.lang.String |
ATTRIBUTE_MAX_SYMBOLS_HARD |
static java.lang.String |
ATTRIBUTE_NAME
Name given to the stack
|
static java.lang.String |
ATTRIBUTE_OPS
Current number of operations performed on this stack
|
static java.lang.String |
ATTRIBUTE_PARSING_ERRORS
List of parsing errors or unknown function errors generated in WarpScript audit mode.
|
static java.lang.String |
ATTRIBUTE_RECURSION_MAXDEPTH
Maximum recursion depth
|
static java.lang.String |
ATTRIBUTE_RECURSION_MAXDEPTH_HARD |
static java.lang.String |
ATTRIBUTE_RUNNER_RESCHEDULE_PERIOD
Stack attribute for runner rescheduling period in millisecond
|
static java.lang.String |
ATTRIBUTE_RUNNER_RESCHEDULE_TIMESTAMP
Stack attribute for runner rescheduling absolute timestamp in millisecond
|
static java.lang.String |
ATTRIBUTE_SECTION_NAME
Name of current code section, null is unnamed
|
static java.lang.String |
ATTRIBUTE_SECURE_KEY
Key for securing scripts
|
static java.lang.String |
ATTRIBUTE_TIMEBOXED
Stack attribute used to indicate the execution is currently timeboxed
|
static java.lang.String |
ATTRIBUTE_TIMINGS
Flag indicating whether or not to track elapsed times per script line
|
static java.lang.String |
CAPABILITIES_ATTR |
static java.lang.String |
CAPABILITIES_PREFIX |
static java.lang.String |
CAPABILITY_DEBUG |
static java.lang.String |
CAPABILITY_HTTP |
static java.lang.String |
CAPABILITY_INVENTORY |
static java.lang.String |
CAPABILITY_LEVELDB |
static java.lang.String |
CAPABILITY_LEVELDB_ADMIN |
static java.lang.String |
CAPABILITY_LEVELDB_CLOSE |
static java.lang.String |
CAPABILITY_LEVELDB_COMPACT |
static java.lang.String |
CAPABILITY_LEVELDB_FIND |
static java.lang.String |
CAPABILITY_LEVELDB_INFO |
static java.lang.String |
CAPABILITY_LEVELDB_OPEN |
static java.lang.String |
CAPABILITY_LEVELDB_PURGE |
static java.lang.String |
CAPABILITY_LEVELDB_REPAIR |
static java.lang.String |
CAPABILITY_LEVELDB_REPORT |
static java.lang.String |
CAPABILITY_LEVELDB_SNAPSHOT |
static java.lang.String |
CAPABILITY_LEVELDB_TIMESTAMP |
static java.lang.String |
CAPABILITY_LIMIT |
static java.lang.String |
CAPABILITY_LIMITS |
static java.lang.String |
CAPABILITY_MANAGER |
static java.lang.String |
CAPABILITY_MAXBUCKETS |
static java.lang.String |
CAPABILITY_MAXDEPTH |
static java.lang.String |
CAPABILITY_MAXGEOCELLS |
static java.lang.String |
CAPABILITY_MAXGTS |
static java.lang.String |
CAPABILITY_MAXJSON |
static java.lang.String |
CAPABILITY_MAXLOOP |
static java.lang.String |
CAPABILITY_MAXOPS |
static java.lang.String |
CAPABILITY_MAXPIXELS |
static java.lang.String |
CAPABILITY_MAXRECURSION |
static java.lang.String |
CAPABILITY_MAXSYMBOLS |
static java.lang.String |
CAPABILITY_REPORT |
static java.lang.String |
CAPABILITY_SETMACROCONFIG |
static java.lang.String |
CAPABILITY_SLEEP_MAXTIME |
static java.lang.String |
CAPABILITY_TIMEBOX_MAXTIME |
static java.lang.String |
CAPABILITY_WFGET |
static java.lang.String |
CAPABILITY_WFSET |
static java.lang.String |
CAPNAME_RUNNER_RESCHEDULE_MIN_PERIOD
Cap name for runner rescheduling minimum period in millisecond
|
static java.lang.String |
COMMENT_END |
static java.lang.String |
COMMENT_START |
static int |
COUNTER_RETURN_DEPTH
Index of RETURN_DEPTH counter
|
static long |
DEFAULT_FETCH_LIMIT |
static long |
DEFAULT_GTS_LIMIT |
static int |
DEFAULT_MAX_BUCKETS |
static int |
DEFAULT_MAX_DEPTH |
static int |
DEFAULT_MAX_GEOCELLS |
static long |
DEFAULT_MAX_JSON |
static long |
DEFAULT_MAX_LOOP_DURATION |
static long |
DEFAULT_MAX_OPS |
static long |
DEFAULT_MAX_PIXELS |
static int |
DEFAULT_MAX_RECURSION_LEVEL |
static int |
DEFAULT_MAX_SYMBOLS |
static long |
DEFAULT_REGISTERS |
static java.lang.String |
MACRO_END |
static java.lang.String |
MACRO_START |
static java.lang.String |
MULTILINE_END |
static java.lang.String |
MULTILINE_START |
static java.lang.String |
SECURE_SCRIPT_END |
static java.lang.String |
SECURE_SCRIPT_START |
static java.lang.String |
TOP_LEVEL_SECTION |
| Modifier and Type | Method and Description |
|---|---|
void |
auditMode(boolean auditMode)
Turn on/off auditMode.
|
void |
checkBalanced()
Perform a final check to ensure balancing constructs are balanced.
|
void |
clear()
Empty the stack
|
void |
define(java.lang.String stmt,
WarpScriptStack.Macro macro)
(re)define 'stmt' as a valid statement executing 'macro'
This allows for the overriding of built-in statements
|
int |
depth()
Return the depth (i.e.
|
void |
drop()
Remove the top of the stack.
|
void |
dropn()
Remove the top 'N' objects of the stack.
|
java.lang.String |
dump(int n)
Produces a String representation of the top 'n' levels of the stack
|
void |
dup()
Duplicate the object on top of the stack.
|
void |
dupn()
Duplicate the top 'N' objects of the stack.
|
void |
exec(java.lang.String line)
Execute a serie of statements against the stack.
|
void |
exec(java.lang.String line,
long lineNumber)
Execute a series of statements against the stack.
|
void |
exec(WarpScriptStack.Macro macro)
Execute a macro against the stack.
|
void |
execMulti(java.lang.String script) |
WarpScriptStack.Macro |
find(java.lang.String macroName)
Find a macro by name
|
java.lang.Object |
findFunction(java.lang.String macroName)
Find a function by name
|
void |
forget(java.lang.String symbol)
Forget the given symbol
|
java.lang.Object |
get(int level)
Return the object at level 'level' on the stack.
|
java.lang.Object |
getAttribute(java.lang.String key)
Return the value of an attribute.
|
java.util.concurrent.atomic.AtomicLong |
getCounter(int i)
Return the ith counter associated with the stack
|
java.util.Map<java.lang.String,WarpScriptStackFunction> |
getDefined()
Return the current map of redefined functions
|
DirectoryClient |
getDirectoryClient()
Retrieve the DirectoryClient instance associated with this stack
|
java.lang.Object[] |
getRegisters()
Return the current registers.
|
StoreClient |
getStoreClient()
Retrieve the StoreClient instance associated with this stack.
|
java.util.Map<java.lang.String,java.lang.Object> |
getSymbolTable()
Return the current symbol table.
|
java.lang.String |
getUUID()
Return a UUID for the instance of WarpScriptStack
|
void |
handleSignal()
Throw the exception associated with the current signal sent to the stack
|
int |
hide()
Hide all stack levels
|
int |
hide(int count)
Hide the deepest 'count' stack levels
|
java.lang.Object |
load(int regidx)
Return the content associated with the given register
|
java.lang.Object |
load(java.lang.String symbol)
Return the content associated with the given symbol.
|
void |
macroClose()
Closes the currently open macro (after macroOpen was called) and
push it onto the stack.
|
void |
macroOpen()
Force the stack to create a macro with all following statements.
|
java.lang.Object |
peek()
Return the object on top of the stack without removing
it from the stack.
|
java.lang.Object |
peekn()
Return the object at 'distance' from the top of the stack.
|
void |
pick()
Copy the object at level 'N' on top of the stack.
|
java.lang.Object |
pop()
Remove and return the object on top of the stack.
|
java.lang.Object[] |
popn()
Remove and return 'N' objects from the top of the
stack.
|
java.lang.Object[] |
popn(int n)
Remove and return 'N' objects from the top of the
stack.
|
void |
push(java.lang.Object o)
Push an object onto the stack
|
void |
reset(int depth)
Reset the stack to the given depth
|
void |
restore()
Restore the stack context from that on top of the stack
|
void |
restore(WarpScriptStack.StackContext context)
Restore the given stack context
|
void |
roll()
Rotate up the top 'N' objects of the stack.
|
void |
rolld()
Rotate down the top 'N' objects of the stack.
|
void |
rot()
Rotate the top 3 objects of the stack, pushing
the top of the stack down
D D
C -> B
B A
A (top) C (top)
|
void |
run(java.lang.String macroName)
Execute a macro known by name.
|
void |
save()
Push the current stack context (symbols + redefined statements) onto the stack.
|
java.lang.Object |
setAttribute(java.lang.String key,
java.lang.Object value)
Set a stack attribute.
|
void |
show()
Show all previously hidden stack levels.
|
void |
show(int count)
Show some stack levels previously hidden.
|
void |
signal(WarpScriptStack.Signal signal)
Signal the stack, i.e.
|
void |
store(int regidx,
java.lang.Object value)
Stores the given value in register 'regidx'
|
void |
store(java.lang.String symbol,
java.lang.Object value)
Store the given object under 'symbol'.
|
void |
swap()
Swap the top 2 objects of the stack.
|
static final int DEFAULT_MAX_RECURSION_LEVEL
static final long DEFAULT_FETCH_LIMIT
static final long DEFAULT_GTS_LIMIT
static final long DEFAULT_MAX_OPS
static final int DEFAULT_MAX_BUCKETS
static final int DEFAULT_MAX_GEOCELLS
static final int DEFAULT_MAX_DEPTH
static final long DEFAULT_MAX_LOOP_DURATION
static final int DEFAULT_MAX_SYMBOLS
static final long DEFAULT_MAX_PIXELS
static final long DEFAULT_MAX_JSON
static final long DEFAULT_REGISTERS
static final java.lang.String MACRO_START
static final java.lang.String MACRO_END
static final java.lang.String COMMENT_START
static final java.lang.String COMMENT_END
static final java.lang.String MULTILINE_START
static final java.lang.String MULTILINE_END
static final java.lang.String SECURE_SCRIPT_START
static final java.lang.String SECURE_SCRIPT_END
static final java.lang.String TOP_LEVEL_SECTION
static final java.lang.String ATTRIBUTE_IMPORT_RULES
static final java.lang.String ATTRIBUTE_LINENO
static final java.lang.String ATTRIBUTE_INTERACTIVE_WRITER
static final java.lang.String ATTRIBUTE_INTERACTIVE_JSON
static final java.lang.String ATTRIBUTE_INTERACTIVE_ECHO
static final java.lang.String ATTRIBUTE_INTERACTIVE_TIME
static final java.lang.String ATTRIBUTE_SECTION_NAME
static final java.lang.String ATTRIBUTE_MACRO_NAME
static final java.lang.String ATTRIBUTE_INFOMODE
static final java.lang.String ATTRIBUTE_PARSING_ERRORS
static final java.lang.String ATTRIBUTE_DEBUG_DEPTH
static final java.lang.String ATTRIBUTE_JSON_STRICT
static final java.lang.String ATTRIBUTE_JSON_PRETTY
static final java.lang.String ATTRIBUTE_JSON_MAXSIZE
static final java.lang.String ATTRIBUTE_JSON_MAXSIZE_HARD
static final java.lang.String ATTRIBUTE_FETCH_LIMIT
static final java.lang.String ATTRIBUTE_FETCH_LIMIT_HARD
static final java.lang.String ATTRIBUTE_GTS_LIMIT
static final java.lang.String ATTRIBUTE_GTS_LIMIT_HARD
static final java.lang.String ATTRIBUTE_FETCH_COUNT
static final java.lang.String ATTRIBUTE_GTS_COUNT
static final java.lang.String ATTRIBUTE_ELAPSED
static final java.lang.String ATTRIBUTE_TIMINGS
static final java.lang.String ATTRIBUTE_LOOP_MAXDURATION
static final java.lang.String ATTRIBUTE_LOOP_MAXDURATION_HARD
static final java.lang.String ATTRIBUTE_RECURSION_MAXDEPTH
static final java.lang.String ATTRIBUTE_RECURSION_MAXDEPTH_HARD
static final java.lang.String ATTRIBUTE_MAX_DEPTH
static final java.lang.String ATTRIBUTE_MAX_DEPTH_HARD
static final java.lang.String ATTRIBUTE_MAX_OPS
static final java.lang.String ATTRIBUTE_MAX_OPS_HARD
static final java.lang.String ATTRIBUTE_MAX_PIXELS
static final java.lang.String ATTRIBUTE_MAX_PIXELS_HARD
static final java.lang.String ATTRIBUTE_MAX_BUCKETS
static final java.lang.String ATTRIBUTE_MAX_BUCKETS_HARD
static final java.lang.String ATTRIBUTE_MAX_GEOCELLS
static final java.lang.String ATTRIBUTE_MAX_GEOCELLS_HARD
static final java.lang.String ATTRIBUTE_OPS
static final java.lang.String ATTRIBUTE_MAX_SYMBOLS
static final java.lang.String ATTRIBUTE_MAX_SYMBOLS_HARD
static final java.lang.String ATTRIBUTE_SECURE_KEY
static final java.lang.String ATTRIBUTE_ALLOW_REDEFINED
static final java.lang.String ATTRIBUTE_HADOOP_PROGRESSABLE
static final java.lang.String ATTRIBUTE_IN_XEVAL
static final java.lang.String ATTRIBUTE_IN_SECURE_MACRO
static final java.lang.String ATTRIBUTE_MACRO_TTL
static final java.lang.String ATTRIBUTE_EXPORTED_SYMBOLS
static final java.lang.String ATTRIBUTE_HEADERS
static final java.lang.String ATTRIBUTE_LAST_ERROR
static final java.lang.String ATTRIBUTE_CREATION_TIME
static final java.lang.String ATTRIBUTE_NAME
static final java.lang.String ATTRIBUTE_TIMEBOXED
static final java.lang.String CAPNAME_RUNNER_RESCHEDULE_MIN_PERIOD
static final java.lang.String ATTRIBUTE_RUNNER_RESCHEDULE_PERIOD
static final java.lang.String ATTRIBUTE_RUNNER_RESCHEDULE_TIMESTAMP
static final int COUNTER_RETURN_DEPTH
static final java.lang.String CAPABILITIES_PREFIX
static final java.lang.String CAPABILITIES_ATTR
static final java.lang.String CAPABILITY_INVENTORY
static final java.lang.String CAPABILITY_SETMACROCONFIG
static final java.lang.String CAPABILITY_MANAGER
static final java.lang.String CAPABILITY_REPORT
static final java.lang.String CAPABILITY_DEBUG
static final java.lang.String CAPABILITY_WFGET
static final java.lang.String CAPABILITY_WFSET
static final java.lang.String CAPABILITY_HTTP
static final java.lang.String CAPABILITY_TIMEBOX_MAXTIME
static final java.lang.String CAPABILITY_SLEEP_MAXTIME
static final java.lang.String CAPABILITY_LEVELDB
static final java.lang.String CAPABILITY_LEVELDB_ADMIN
static final java.lang.String CAPABILITY_LEVELDB_CLOSE
static final java.lang.String CAPABILITY_LEVELDB_COMPACT
static final java.lang.String CAPABILITY_LEVELDB_OPEN
static final java.lang.String CAPABILITY_LEVELDB_REPAIR
static final java.lang.String CAPABILITY_LEVELDB_SNAPSHOT
static final java.lang.String CAPABILITY_LEVELDB_PURGE
static final java.lang.String CAPABILITY_LEVELDB_FIND
static final java.lang.String CAPABILITY_LEVELDB_INFO
static final java.lang.String CAPABILITY_LEVELDB_REPORT
static final java.lang.String CAPABILITY_LEVELDB_TIMESTAMP
static final java.lang.String CAPABILITY_LIMITS
static final java.lang.String CAPABILITY_LIMIT
static final java.lang.String CAPABILITY_MAXBUCKETS
static final java.lang.String CAPABILITY_MAXDEPTH
static final java.lang.String CAPABILITY_MAXGEOCELLS
static final java.lang.String CAPABILITY_MAXGTS
static final java.lang.String CAPABILITY_MAXJSON
static final java.lang.String CAPABILITY_MAXLOOP
static final java.lang.String CAPABILITY_MAXOPS
static final java.lang.String CAPABILITY_MAXPIXELS
static final java.lang.String CAPABILITY_MAXRECURSION
static final java.lang.String CAPABILITY_MAXSYMBOLS
StoreClient getStoreClient()
DirectoryClient getDirectoryClient()
void push(java.lang.Object o) throws WarpScriptException
o - Object to push onto the stackWarpScriptExceptionjava.lang.Object pop()
throws InformativeEmptyStackException
InformativeEmptyStackException - if the stack is empty.java.lang.Object[] popn()
throws WarpScriptException
InformativeEmptyStackException - if the stack is empty.java.lang.IndexOutOfBoundsException - If 'N' is not present or if
'N' is invalid or if the stack is not deep enough.WarpScriptExceptionjava.lang.Object[] popn(int n)
throws WarpScriptException
InformativeEmptyStackException - if the stack is empty.java.lang.IndexOutOfBoundsException - If 'N' is invalid or if
the stack is not deep enough.WarpScriptExceptionjava.lang.Object peek()
throws InformativeEmptyStackException
InformativeEmptyStackException - if the stack is empty.java.lang.Object peekn()
throws WarpScriptException
InformativeEmptyStackException - if the stack is empty.WarpScriptException - if no valid 'distance' is on top of the stack or if the
requested distance is passed the bottom of the stack.int depth()
void reset(int depth)
throws WarpScriptException
WarpScriptExceptionvoid swap() throws WarpScriptException
InformativeEmptyStackException - if the stack is empty.java.lang.IndexOutOfBoundsException - if the stack is empty or
contains a single element.WarpScriptExceptionvoid rot() throws WarpScriptException
InformativeEmptyStackException - if the stack is empty.java.lang.IndexOutOfBoundsException - if the stack contains less than 3 objectsWarpScriptExceptionvoid roll() throws WarpScriptException
InformativeEmptyStackException - if the stack is empty.java.lang.IndexOutOfBoundsException - if 'N' is not present on top of the stack,
is not a number or if the stack does not have enough elements for the
operation.WarpScriptExceptionvoid rolld()
throws WarpScriptException
InformativeEmptyStackException - if the stack is emptyjava.lang.IndexOutOfBoundsException - if 'N' is not present on top of the stack,
is not a number or if the stack does not have enough elements for the
operation.WarpScriptExceptionvoid pick() throws WarpScriptException
InformativeEmptyStackExceptionjava.lang.IndexOutOfBoundsExceptionWarpScriptExceptionvoid drop() throws WarpScriptException
InformativeEmptyStackException - If the stack is empty.WarpScriptExceptionvoid dropn()
throws WarpScriptException
InformativeEmptyStackException - if the stack is empty.java.lang.IndexOutOfBoundsException - If 'N' is not present on the top of the stack,
is not a number
or if the stack has fewer than 'N' objects after consuming 'N'.WarpScriptExceptionvoid dup() throws WarpScriptException
InformativeEmptyStackException - if the stack is empty.WarpScriptExceptionvoid dupn() throws WarpScriptException
InformativeEmptyStackException - if the stack is empty.java.lang.IndexOutOfBoundsException - if the stack contains less than 'N' objects.WarpScriptExceptionjava.lang.Object get(int level)
throws WarpScriptException
level - Level of the object to returnWarpScriptException - if the stack contains less than 'level' levelsvoid execMulti(java.lang.String script)
throws WarpScriptException
WarpScriptExceptionvoid exec(java.lang.String line) throws WarpScriptException
line - String containing a space separated list of statements to executeWarpScriptExceptionvoid exec(java.lang.String line,
long lineNumber)
throws WarpScriptException
line - String containing a space separated list of statements to executelineNumber - is the WarpScript line number, when known by exec() caller. Default value is -1.WarpScriptExceptionvoid clear()
void exec(WarpScriptStack.Macro macro) throws WarpScriptException
macro - Macro instance to executeWarpScriptExceptionjava.lang.Object findFunction(java.lang.String macroName)
throws WarpScriptException
macroName - Name of function to findWarpScriptException - if macro is not foundWarpScriptStack.Macro find(java.lang.String macroName) throws WarpScriptException
macroName - Name of macro to findWarpScriptException - if macro is not foundvoid run(java.lang.String macroName) throws WarpScriptException
WarpScriptExceptionjava.lang.String dump(int n)
n - Number of stack levels to display at mostjava.lang.Object load(java.lang.String symbol)
symbol - Name of symbol to retrievevoid store(java.lang.String symbol,
java.lang.Object value)
throws WarpScriptException
symbol - Name under which to store a value.value - Value to store.WarpScriptExceptionjava.lang.Object load(int regidx)
throws WarpScriptException
regidx - Index of the register to readWarpScriptExceptionvoid store(int regidx,
java.lang.Object value)
throws WarpScriptException
WarpScriptExceptionvoid forget(java.lang.String symbol)
symbol - Name of the symbol to forget.java.util.Map<java.lang.String,java.lang.Object> getSymbolTable()
java.lang.Object[] getRegisters()
java.util.Map<java.lang.String,WarpScriptStackFunction> getDefined()
java.lang.String getUUID()
void signal(WarpScriptStack.Signal signal)
void handleSignal()
throws WarpScriptATCException
WarpScriptATCExceptionjava.lang.Object setAttribute(java.lang.String key,
java.lang.Object value)
key - Key under which the attribute should be stored.value - Value of the attribute. If null, remove the attribute.java.lang.Object getAttribute(java.lang.String key)
key - Name of the attribute to retrieve.java.util.concurrent.atomic.AtomicLong getCounter(int i)
throws WarpScriptException
WarpScriptExceptionvoid checkBalanced()
throws WarpScriptException
WarpScriptException - if the stack is currently unbalanced.void define(java.lang.String stmt,
WarpScriptStack.Macro macro)
void save() throws WarpScriptException
WarpScriptExceptionvoid restore()
throws WarpScriptException
WarpScriptExceptionvoid restore(WarpScriptStack.StackContext context) throws WarpScriptException
WarpScriptExceptionint hide()
int hide(int count)
count - Number of levels to hidevoid show()
void show(int count)
count - Number of levels to showvoid macroOpen()
throws WarpScriptException
WarpScriptExceptionvoid macroClose()
throws WarpScriptException
WarpScriptExceptionvoid auditMode(boolean auditMode)