|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.javaflow.bytecode.Stack
org.apache.commons.javaflow.bytecode.StackRecorder
public final class StackRecorder
Adds additional behaviors necessary for stack capture/restore
on top of Stack
.
Field Summary | |
---|---|
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(). |
Fields inherited from class org.apache.commons.javaflow.bytecode.Stack |
---|
runnable |
Constructor Summary | |
---|---|
StackRecorder(java.lang.Runnable pTarget)
Creates a new empty StackRecorder that runs the given target. |
|
StackRecorder(Stack pParent)
Creates a clone of the given StackRecorder . |
Method Summary | |
---|---|
StackRecorder |
execute(java.lang.Object context)
|
static StackRecorder |
get()
Return the continuation, which is associated to the current thread. |
java.lang.Object |
getContext()
|
static void |
suspend()
|
Methods inherited from class org.apache.commons.javaflow.bytecode.Stack |
---|
hasDouble, hasFloat, hasInt, hasLong, hasObject, hasReference, isEmpty, isSerializable, popDouble, popFloat, popInt, popLong, popObject, popReference, pushDouble, pushFloat, pushInt, pushLong, pushObject, pushReference, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public StackRecorder(java.lang.Runnable pTarget)
StackRecorder
that runs the given target.
public StackRecorder(Stack pParent)
StackRecorder
.
Method Detail |
---|
public static void suspend()
public StackRecorder execute(java.lang.Object context)
public java.lang.Object getContext()
public static StackRecorder get()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |