java.lang.Object
org.praxislive.script.InlineCommand.InlineStackFrame
- All Implemented Interfaces:
StackFrame
- Enclosing interface:
InlineCommand
A default implementation of StackFrame for use by InlineCommand
implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.praxislive.script.StackFrame
StackFrame.State -
Method Summary
Modifier and TypeMethodDescriptiongetState()Get the current state of this StackFrame.voidpostResponse(Call call) Used by the script executor to post the result of a Call.voidpostResponse(StackFrame.State state, List<Value> args) Used by the script executor to post the result of a child StackFrame returned byStackFrame.process(org.praxislive.script.Env).Process the StackFrame.result()Access the result of this StackFrame.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.praxislive.script.StackFrame
andThen, andThenMap, onError
-
Method Details
-
getState
Description copied from interface:StackFrameGet the current state of this StackFrame.- Specified by:
getStatein interfaceStackFrame- Returns:
- current state
-
process
Description copied from interface:StackFrameProcess the StackFrame. After processing, the StackFrame should have made one or more Calls, returned a child StackFrame, or moved out of the Incomplete state.Process may be called multiple times if the state is still incomplete after this method returns and a response has been posted.
- Specified by:
processin interfaceStackFrame- Parameters:
env- processing environment- Returns:
- child StackFrame or null
-
postResponse
Description copied from interface:StackFrameUsed by the script executor to post the result of a Call. The StackFrame should validate the match ID of the response call against any pending calls before processing the call state or arguments.If the state is still incomplete after a response is posted,
StackFrame.process(org.praxislive.script.Env)will be called again.- Specified by:
postResponsein interfaceStackFrame- Parameters:
call- response call
-
postResponse
Description copied from interface:StackFrameUsed by the script executor to post the result of a child StackFrame returned byStackFrame.process(org.praxislive.script.Env).If the state is still incomplete after a response is posted,
StackFrame.process(org.praxislive.script.Env)will be called again.- Specified by:
postResponsein interfaceStackFrame- Parameters:
state- the completion state of the child stack frameargs- the result of the child stack frame
-
result
Description copied from interface:StackFrameAccess the result of this StackFrame.- Specified by:
resultin interfaceStackFrame- Returns:
- result
-