public interface IEvaluationEngine
Clients are not intended to implement this interface.
IEvaluationResult
,
IEvaluationListener
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes this evaluation engine.
|
void |
evaluate(String snippet,
IJavaObject thisContext,
IJavaThread thread,
IEvaluationListener listener,
int evaluationDetail,
boolean hitBreakpoints)
Asynchronously evaluates the given snippet in the context of
the specified type, reporting the result back to the given listener.
|
void |
evaluate(String snippet,
IJavaStackFrame frame,
IEvaluationListener listener,
int evaluationDetail,
boolean hitBreakpoints)
Asynchronously evaluates the given snippet in the context of
the specified stack frame, reporting the result back to the given listener.
|
IJavaDebugTarget |
getDebugTarget()
Returns the debug target for which evaluations
are executed.
|
IJavaProject |
getJavaProject()
Returns the Java project in which expressions are
compiled.
|
void evaluate(String snippet, IJavaStackFrame frame, IEvaluationListener listener, int evaluationDetail, boolean hitBreakpoints) throws DebugException
snippet
- code snippet to evaluateframe
- the stack frame context in which to run the
evaluation.listener
- the listener that will receive notification
when/if the evaluation completesevaluationDetail
- one of DebugEvent.EVALUATION
or
DebugEvent.EVALUATION_IMPLICIT
hitBreakpoints
- whether or not breakpoints should be honored
in the evaluation thread during the evaluation. If false
,
breakpoints hit in the evaluation thread will be ignored.DebugException
- if this method fails. Reasons include:void evaluate(String snippet, IJavaObject thisContext, IJavaThread thread, IEvaluationListener listener, int evaluationDetail, boolean hitBreakpoints) throws DebugException
snippet
- code snippet to evaluatethisContext
- the 'this' context for the evaluationthread
- the thread in which to run the evaluation,
which must be suspendedlistener
- the listener that will receive notification
when/if the evaluation completesevaluationDetail
- one of DebugEvent.EVALUATION
or
DebugEvent.EVALUATION_IMPLICIT
hitBreakpoints
- whether or not breakpoints should be honored
in the evaluation thread during the evaluation. If false
,
breakpoints hit in the evaluation thread will be ignored.DebugException
- if this method fails. Reasons include:IJavaProject getJavaProject()
IJavaDebugTarget getDebugTarget()
void dispose()
Copyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.