|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcaas.util.JDIClassRunner
public class JDIClassRunner
This is the main top-level JDI simulator class. This class will take information about a class to be run and spawn off a JDI instance to run it. It is really a JDI wrapper around ClassRunner.
Constructor Summary | |
---|---|
JDIClassRunner(java.lang.String classpath,
java.lang.String annotateScript,
java.lang.String evalScript,
java.lang.String classname,
java.lang.String[] args)
Constructor. |
Method Summary | |
---|---|
void |
addJDIHandler(JDIHandler handler)
Adds another JDIHandler to this list of handlers that will receive events from the JDI. |
void |
begin()
This is the method to start up the JDI VM. |
void |
closeConsole()
Closes the console window, if any |
int |
getBlackBoardIntField(java.lang.String fieldname)
This will retrieve the integer value from any static BlackBoard field. |
void |
handleEvent(com.sun.jdi.event.Event e)
This class is also a JDIHandler, because it must deal with VMDeathEvents. |
void |
handleSTDERR(java.lang.String str)
Does nothing |
void |
handleSTDOUT(java.lang.String str)
Does nothing |
boolean |
isDead()
Checks to see if this class is done running (dead). |
boolean |
isRunning()
Checks if this class is still running. |
void |
kill()
Kills the JDI JVM. |
void |
requestExceptionEvents(java.lang.String classname)
Registers an ExceptionEvent that the system should watch for |
void |
requestFieldAccessEvents(java.lang.String classname,
java.lang.String fieldname)
Registers a AccessWatchpointEvent that the system should watch for. |
void |
requestFieldModifyEvents(java.lang.String classname,
java.lang.String fieldname)
Registers a ModificationWatchpointEvent that the system should watch for. |
void |
requestMethodBeginEvents(java.lang.String classname,
java.lang.String methodname,
java.lang.String signature)
Registers a MethodEntryEvent that the system should watch for. |
void |
requestMethodEndEvents(java.lang.String classname,
java.lang.String methodname,
java.lang.String signature)
Registers a MethodExitEvent that the system should watch for. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDIClassRunner(java.lang.String classpath, java.lang.String annotateScript, java.lang.String evalScript, java.lang.String classname, java.lang.String[] args)
classpath
- the classpath needed for the program,
just as it would appear on the command line (use the right separator)annotateScript
- the filename of annotation scriptevalScript
- the filename of the evaluation scriptclassname
- the name of the class to runargs
- the command-line args for the programMethod Detail |
---|
public void requestMethodBeginEvents(java.lang.String classname, java.lang.String methodname, java.lang.String signature)
classname
- the name of the parent class of the methodmethodname
- the name of the method (i.e. "setSize")the
- internal signature of the method (i.e. "(II)V")public void requestMethodEndEvents(java.lang.String classname, java.lang.String methodname, java.lang.String signature)
classname
- the name of the parent class of the methodmethodname
- the name of the method (i.e. "setSize")the
- internal signature of the method (i.e. "(II)V")public void requestFieldAccessEvents(java.lang.String classname, java.lang.String fieldname)
classname
- the name of the parent class of the fieldfieldname
- the name of the field (i.e. "myBiscuit")public void requestFieldModifyEvents(java.lang.String classname, java.lang.String fieldname)
classname
- the name of the parent class of the fieldfieldname
- the name of the field (i.e. "myBiscuit")public void requestExceptionEvents(java.lang.String classname)
classname
- the name of the exceptionpublic void begin()
public boolean isRunning()
public boolean isDead()
public void addJDIHandler(JDIHandler handler)
handler
- the handlerpublic void kill()
public void closeConsole()
public void handleEvent(com.sun.jdi.event.Event e)
handleEvent
in interface JDIHandler
public void handleSTDOUT(java.lang.String str)
handleSTDOUT
in interface JDIHandler
public void handleSTDERR(java.lang.String str)
handleSTDERR
in interface JDIHandler
public int getBlackBoardIntField(java.lang.String fieldname) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |