public class ExecutionManager
extends java.lang.Object
| Constructor and Description |
|---|
ExecutionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDiagnosticsListener(OutputListener l) |
void |
addJDIListener(int index,
JDIListener jl)
Adds a JDIListener - at the specified position
|
void |
addJDIListener(JDIListener jl)
Adds a JDIListener
|
void |
addSessionListener(SessionListener listener) |
void |
addSpecListener(SpecListener cl) |
java.util.List |
allClasses()
Return a list of ReferenceType objects for all
currently loaded classes and interfaces.
|
java.util.List |
allThreads() |
void |
attach(java.lang.String portName) |
AccessWatchpointSpec |
createAccessWatchpoint(java.lang.String classPattern,
java.lang.String fieldId) |
BreakpointSpec |
createClassLineBreakpoint(java.lang.String classPattern,
int line) |
ExceptionSpec |
createExceptionIntercept(java.lang.String classPattern,
boolean notifyCaught,
boolean notifyUncaught) |
BreakpointSpec |
createMethodBreakpoint(java.lang.String classPattern,
java.lang.String methodId,
java.util.List methodArgs) |
ModificationWatchpointSpec |
createModificationWatchpoint(java.lang.String classPattern,
java.lang.String fieldId) |
BreakpointSpec |
createSourceLineBreakpoint(java.lang.String sourceName,
int line) |
void |
delete(EventRequestSpec spec) |
void |
detach() |
com.sun.jdi.Value |
evaluate(com.sun.jdi.StackFrame f,
java.lang.String expr) |
com.sun.jdi.request.EventRequestManager |
eventRequestManager() |
java.util.List |
eventRequestSpecs() |
boolean |
explictStart(com.sun.jdi.connect.Connector connector,
java.util.Map arguments) |
java.util.List |
findClassesByName(java.lang.String name)
Return a ReferenceType object for the currently
loaded class or interface whose fully-qualified
class name is specified, else return null if there
is none.
|
java.util.List |
findClassesMatchingPattern(java.lang.String pattern)
Return a list of ReferenceType objects for all
currently loaded classes and interfaces whose name
matches the given pattern.
|
int |
getTraceMode(int mode)
Get JDI trace mode.
|
void |
go() |
void |
install(EventRequestSpec spec) |
void |
interrupt() |
boolean |
isInterrupted()
Determine if VM is interrupted, i.e, present and not running.
|
void |
removeDiagnosticsListener(OutputListener l) |
void |
removeJDIListener(JDIListener jl)
Removes a JDIListener
|
void |
removeSessionListener(SessionListener listener) |
void |
removeSpecListener(SpecListener cl) |
void |
resumeThread(com.sun.jdi.ThreadReference thread) |
void |
setTraceMode(int mode)
Set JDI trace mode.
|
void |
stepIntoInstruction(com.sun.jdi.ThreadReference thread) |
void |
stepIntoLine(com.sun.jdi.ThreadReference thread) |
void |
stepOut(com.sun.jdi.ThreadReference thread) |
void |
stepOverInstruction(com.sun.jdi.ThreadReference thread) |
void |
stepOverLine(com.sun.jdi.ThreadReference thread) |
void |
stopThread(com.sun.jdi.ThreadReference thread) |
void |
suspendThread(com.sun.jdi.ThreadReference thread) |
com.sun.jdi.ThreadGroupReference |
systemThreadGroup() |
ThreadInfo |
threadInfo(com.sun.jdi.ThreadReference thread) |
java.util.List |
topLevelThreadGroups() |
com.sun.jdi.VirtualMachine |
vm() |
public void addSessionListener(SessionListener listener)
public void removeSessionListener(SessionListener listener)
public void addSpecListener(SpecListener cl)
public void removeSpecListener(SpecListener cl)
public void addJDIListener(JDIListener jl)
public void addJDIListener(int index,
JDIListener jl)
public void removeJDIListener(JDIListener jl)
public void addDiagnosticsListener(OutputListener l)
public void removeDiagnosticsListener(OutputListener l)
public com.sun.jdi.VirtualMachine vm()
public com.sun.jdi.request.EventRequestManager eventRequestManager()
public int getTraceMode(int mode)
public void setTraceMode(int mode)
public boolean isInterrupted()
public java.util.List allClasses()
throws NoSessionException
NoSessionExceptionpublic java.util.List findClassesByName(java.lang.String name)
throws NoSessionException
NoSessionExceptionpublic java.util.List findClassesMatchingPattern(java.lang.String pattern)
throws NoSessionException
NoSessionExceptionpublic java.util.List allThreads()
throws NoSessionException
NoSessionExceptionpublic java.util.List topLevelThreadGroups()
throws NoSessionException
NoSessionExceptionpublic com.sun.jdi.ThreadGroupReference systemThreadGroup()
throws NoSessionException
NoSessionExceptionpublic com.sun.jdi.Value evaluate(com.sun.jdi.StackFrame f,
java.lang.String expr)
throws ParseException,
com.sun.jdi.InvocationException,
com.sun.jdi.InvalidTypeException,
com.sun.jdi.ClassNotLoadedException,
NoSessionException,
com.sun.jdi.IncompatibleThreadStateException
ParseExceptioncom.sun.jdi.InvocationExceptioncom.sun.jdi.InvalidTypeExceptioncom.sun.jdi.ClassNotLoadedExceptionNoSessionExceptioncom.sun.jdi.IncompatibleThreadStateExceptionpublic void attach(java.lang.String portName)
throws VMLaunchFailureException
VMLaunchFailureExceptionpublic boolean explictStart(com.sun.jdi.connect.Connector connector,
java.util.Map arguments)
throws VMLaunchFailureException
VMLaunchFailureExceptionpublic void detach()
throws NoSessionException
NoSessionExceptionpublic void interrupt()
throws NoSessionException
NoSessionExceptionpublic void go()
throws NoSessionException,
VMNotInterruptedException
public void stepIntoInstruction(com.sun.jdi.ThreadReference thread)
throws NoSessionException
NoSessionExceptionpublic void stepOverInstruction(com.sun.jdi.ThreadReference thread)
throws NoSessionException
NoSessionExceptionpublic void stepIntoLine(com.sun.jdi.ThreadReference thread)
throws NoSessionException,
com.sun.jdi.AbsentInformationException
NoSessionExceptioncom.sun.jdi.AbsentInformationExceptionpublic void stepOverLine(com.sun.jdi.ThreadReference thread)
throws NoSessionException,
com.sun.jdi.AbsentInformationException
NoSessionExceptioncom.sun.jdi.AbsentInformationExceptionpublic void stepOut(com.sun.jdi.ThreadReference thread)
throws NoSessionException
NoSessionExceptionpublic void suspendThread(com.sun.jdi.ThreadReference thread)
throws NoSessionException
NoSessionExceptionpublic void resumeThread(com.sun.jdi.ThreadReference thread)
throws NoSessionException
NoSessionExceptionpublic void stopThread(com.sun.jdi.ThreadReference thread)
throws NoSessionException
NoSessionExceptionpublic ThreadInfo threadInfo(com.sun.jdi.ThreadReference thread)
public BreakpointSpec createSourceLineBreakpoint(java.lang.String sourceName, int line)
public BreakpointSpec createClassLineBreakpoint(java.lang.String classPattern, int line)
public BreakpointSpec createMethodBreakpoint(java.lang.String classPattern, java.lang.String methodId, java.util.List methodArgs)
public ExceptionSpec createExceptionIntercept(java.lang.String classPattern, boolean notifyCaught, boolean notifyUncaught)
public AccessWatchpointSpec createAccessWatchpoint(java.lang.String classPattern, java.lang.String fieldId)
public ModificationWatchpointSpec createModificationWatchpoint(java.lang.String classPattern, java.lang.String fieldId)
public void delete(EventRequestSpec spec)
public void install(EventRequestSpec spec)
public java.util.List eventRequestSpecs()