public static final class Evaluator.Context extends Object
CallStackFrame
and ObjectVariable
can be used to compute the resulting Variable
.
StackFrame
and ObjectReference
can be used
to compute the resulting Value
. When a method invocation
is necessary, Evaluator.Context.notifyMethodToBeInvoked()
must be called
before the method invocation.
Constructor and Description |
---|
Context(Lookup context)
Creates the context, do not call directly
|
Modifier and Type | Method and Description |
---|---|
CallStackFrame |
getCallStackFrame()
Get the context call stack frame.
|
com.sun.jdi.ObjectReference |
getContextObject()
Get an optional context object.
|
ObjectVariable |
getContextVariable()
Get an optional context variable.
|
int |
getStackDepth()
Get the depth of stack frame returned from
Evaluator.Context.getStackFrame() . |
com.sun.jdi.StackFrame |
getStackFrame()
Get the context stack frame in JDI APIs.
|
void |
notifyMethodToBeInvoked()
This method is required to be called before a call to JDI
that cause the current thread (
sf.thread() ) to resume - e.g. |
public Context(Lookup context)
public CallStackFrame getCallStackFrame()
Evaluator.Context.getStackFrame()
.public ObjectVariable getContextVariable()
Evaluator.Context.getContextObject()
.null
.public com.sun.jdi.StackFrame getStackFrame()
Evaluator.Context.getCallStackFrame()
.public int getStackDepth()
Evaluator.Context.getStackFrame()
.public com.sun.jdi.ObjectReference getContextObject()
Evaluator.Context.getContextVariable()
.null
.public void notifyMethodToBeInvoked()
sf.thread()
) to resume - e.g.
ObjectReference.invokeMethod(com.sun.jdi.ThreadReference, com.sun.jdi.Method, java.util.List, int)
,
ClassType.invokeMethod(com.sun.jdi.ThreadReference, com.sun.jdi.Method, java.util.List, int)
,
ClassType.newInstance(com.sun.jdi.ThreadReference, com.sun.jdi.Method, java.util.List, int)
.