public interface DebuggerEvaluator
Modifier and Type | Method and Description |
---|---|
java.util.List<DebuggeeData> |
evaluate(java.util.List<java.lang.String> expressions,
DebuggeeData context)
Evaluate expressions into DebuggeeData representations in the context
of the currently set thread and stack position and an optional DebuggeeData
object.
|
DebuggeeData |
evaluate(java.lang.String expression,
DebuggeeData context)
Evaluate one expression into a DebuggeeData representation in the context
of the currently set thread and stack position and an optional DebuggeeData
object.
|
java.util.List<DebuggerThread> |
getAllThreads()
Get all the current threads
|
Context |
getContext()
Get the context of this evaluator
|
DebuggerEvaluator |
getEvaluator(DebuggerThread thread)
Get a new evaluator for another thread.
|
DebuggerEvaluator |
getEvaluator(int stackFrame)
Get a new evaluator for a specific 0-based stack frame for the same
thread as the current evaluator
|
int |
getStackFrame()
Get the 0-based index of the stack frame for this evaluator.
|
int |
getStackFrameCount()
Find out how many stack frames there are.
|
DebuggerThread |
getThread()
Get the thread for this evaluator.
|
boolean |
hasExpired()
Check if this evaluator has expired.
|
boolean hasExpired()
Context getContext()
int getStackFrame()
DebuggerThread getThread()
DebuggeeData evaluate(java.lang.String expression, DebuggeeData context)
expression
- One expression to evaluatecontext
- An optional Object to use as the context for the
evaluation which is useful if a DebuggeeData has children and the
caller wants to evaluate a child in the context of the parent. If null,
the context is the stack frame and thread of this DebuggerEvaluator.java.util.List<DebuggeeData> evaluate(java.util.List<java.lang.String> expressions, DebuggeeData context)
expressions
- Expressions to evaluatecontext
- An optional Object to use as the context for the
evaluations which is useful if a DebuggeeData has children and the
caller wants to evaluate a child in the context of the parent. If null,
the context is the stack frame and thread of this DebuggerEvaluator.int getStackFrameCount()
DebuggerEvaluator getEvaluator(int stackFrame)
DebuggerEvaluator getEvaluator(DebuggerThread thread)
thread
- The thread to usejava.util.List<DebuggerThread> getAllThreads()