|
Eclipse JDT 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An evaluation engine performs an evalutaion of a code snippet or expression in a specified thread of a debug target. An evaluation engine is associated with a specific debug target and Java project on creation.
Clients are not intended to implement this interface.
IEvaluationResult
,
IEvaluationListener
Method Summary | |
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 snippets are compliled. |
Method Detail |
public 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 evalaution 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:public 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 evalaution 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:public IJavaProject getJavaProject()
public IJavaDebugTarget getDebugTarget()
public void dispose()
|
Eclipse JDT 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |