| org.eclipse.jdt.debug.eval.IClassFileEvaluationEngine
All known Subclasses: org.eclipse.jdt.internal.debug.eval.LocalEvaluationEngine,
IClassFileEvaluationEngine | public interface IClassFileEvaluationEngine extends IEvaluationEngine(Code) | | An evaluation engine that performs evaluations by
deploying and executing class files locally.
Clients are not intended to implement this interface.
since: 2.0 |
Method Summary | |
public void | evaluate(String snippet, IJavaThread thread, IEvaluationListener listener, boolean hitBreakpoints) Asynchronously evaluates the given snippet in the specified
target thread, reporting the result back to the given listener.
The snippet is evaluated in the context of the Java
project this evaluation engine was created on. | public String[] | getImports() Returns the import declarations for this evaluation context. | public void | setImports(String[] imports) Sets the import declarations for this evaluation context. |
evaluate | public void evaluate(String snippet, IJavaThread thread, IEvaluationListener listener, boolean hitBreakpoints) throws DebugException(Code) | | Asynchronously evaluates the given snippet in the specified
target thread, reporting the result back to the given listener.
The snippet is evaluated in the context of the Java
project this evaluation engine was created on. If the
snippet is determined to be a valid expression, the expression
is evaluated in the specified thread, which resumes its
execution from the location at which it is currently suspended.
When the evaluation completes, the thread will be suspened
at this original location.
Compilation and runtime errors are reported in the evaluation result.
Parameters: snippet - code snippet to evaluate Parameters: thread - the thread in which to run the evaluation,which must be suspended Parameters: listener - the listener that will receive notificationwhen/if the evalaution completes Parameters: hitBreakpoints - whether or not breakpoints should be honoredin the evaluation thread during the evaluation. If false ,breakpoints hit in the evaluation thread will be ignored. exception: DebugException - if this method fails. Reasons include:- Failure communicating with the VM. The DebugException'sstatus code contains the underlying exception responsible forthe failure.
- The specified thread is not currently suspended
- The specified thread is not contained in the debug targetassociated with this evaluation engine
- The specified thread is suspended in the middle ofan evaluation that has not completed. It is not possibleto perform nested evaluations
|
getImports | public String[] getImports()(Code) | | Returns the import declarations for this evaluation context. An empty
list indicates there are no imports. The syntax for the import corresponds to a
fully qualified type name, or to an on-demand package name as defined by
ImportDeclaration (JLS2 7.5). For example, "java.util.Hashtable"
or "java.util.*" .
the list of import names |
setImports | public void setImports(String[] imports)(Code) | | Sets the import declarations for this evaluation context. An empty
list indicates there are no imports. The syntax for the import corresponds to a
fully qualified type name, or to an on-demand package name as defined by
ImportDeclaration (JLS2 7.5). For example, "java.util.Hashtable"
or "java.util.*" .
Parameters: imports - the list of import names |
|
|