public final class StackRecorder extends Stack
Stack
.Modifier and Type | Field and Description |
---|---|
boolean |
isCapturing
True, is the continuation freeze the strack trace, and stops the
continuation.
|
boolean |
isRestoring
True, if the continuation restores the previous stack trace to the last
invocation of suspend().
|
Object |
value
Result object passed by the continuation to the client code during suspend
|
Constructor and Description |
---|
StackRecorder(Runnable pTarget)
Creates a new empty
StackRecorder that runs the given target. |
StackRecorder(Stack pParent)
Creates a clone of the given
StackRecorder . |
Modifier and Type | Method and Description |
---|---|
StackRecorder |
execute(Object context) |
static StackRecorder |
get()
Return the continuation, which is associated to the current thread.
|
Object |
getContext() |
static Object |
suspend(Object value) |
hasDouble, hasFloat, hasInt, hasLong, hasObject, hasReference, isEmpty, isSerializable, popDouble, popFloat, popInt, popLong, popObject, popReference, pushDouble, pushFloat, pushInt, pushLong, pushObject, pushReference, toString
public transient boolean isRestoring
This field is accessed from the byte code injected into application code, and therefore defining a wrapper get method makes it awkward to step through the user code. That's why this field is public.
public transient boolean isCapturing
isRestoring
public transient Object value
public StackRecorder(Runnable pTarget)
StackRecorder
that runs the given target.public StackRecorder(Stack pParent)
StackRecorder
.public StackRecorder execute(Object context)
public Object getContext()
public static StackRecorder get()
Copyright © 2004–2019. All rights reserved.