|
org.netbeans.api.debugger.jpda/2 2.31.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.spi.debugger.jpda.Evaluator.Context
public static final class Evaluator.Context
Context of the evaluation. This class provides the evaluation context - stack frame and context variable. Two sets of APIs can be used during the evaluation:
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, notifyMethodToBeInvoked()
must be called
before the method invocation.
Constructor Summary | |
---|---|
Evaluator.Context(Lookup context)
Creates the context, do not call directly |
Method Summary | |
---|---|
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 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Evaluator.Context(Lookup context)
Method Detail |
---|
public CallStackFrame getCallStackFrame()
getStackFrame()
.
public ObjectVariable getContextVariable()
getContextObject()
.
null
.public com.sun.jdi.StackFrame getStackFrame()
getCallStackFrame()
.
public int getStackDepth()
getStackFrame()
.
public com.sun.jdi.ObjectReference getContextObject()
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)
.
|
org.netbeans.api.debugger.jpda/2 2.31.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |