|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openarchitectureware.debug.processing.handlers.EventRuntimeHandler
public class EventRuntimeHandler
This class handles the communication of debug events on the runtime side.
It sends them out (together with addition syntax element information, if required).
Field Summary | |
---|---|
static int |
RESUMED
|
static int |
STARTED
|
static int |
SUSPENDED
|
static int |
TERMINATED
|
Fields inherited from interface org.openarchitectureware.debug.processing.IEventHandler |
---|
END_FRAME, NORMAL_FRAME |
Constructor Summary | |
---|---|
EventRuntimeHandler()
|
Method Summary | |
---|---|
void |
init(DebugMonitor monitor,
Connection connection)
initiate the instantiated handler. |
void |
postTask(java.lang.Object context)
Pop the element from the stack, adjust the cleanStackLevel value if required |
void |
preTask(java.lang.Object element,
java.lang.Object context,
int state)
Push the element onto the stack |
void |
resumed()
Send RESUMED event to the debug server |
void |
started()
Send STARTED event to the debug server |
void |
startListener()
no need to listen |
void |
suspended()
Send SUSPENDED event to the debug server together with the number of stack elements that are still the same (cleanStackLevel) since the last suspend and all new SyntaxElementTOs. |
void |
terminated()
Send TERMINATED event to the debug server |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STARTED
public static final int SUSPENDED
public static final int RESUMED
public static final int TERMINATED
Constructor Detail |
---|
public EventRuntimeHandler()
Method Detail |
---|
public void init(DebugMonitor monitor, Connection connection)
IRuntimeHandler
DebugMonitor
and Connection
instances that may be needed for the handler to do it's workDebugMonitor
dependent on the type of handler.
init
in interface IRuntimeHandler
monitor
- the DebugMonitorconnection
- the connection to the debugger frameworkpublic void startListener()
startListener
in interface IRuntimeHandler
IRuntimeHandler.startListener()
public void started() throws java.io.IOException
started
in interface IEventHandler
java.io.IOException
IEventHandler.started()
public void preTask(java.lang.Object element, java.lang.Object context, int state)
preTask
in interface IEventHandler
org.openarchitectureware.debug.processing.IEventHandler#preTask(java.lang.Object, int)
public void postTask(java.lang.Object context)
postTask
in interface IEventHandler
org.openarchitectureware.debug.processing.IEventHandler#postTask()
public void suspended() throws java.io.IOException
suspended
in interface IEventHandler
java.io.IOException
IEventHandler.suspended()
public void resumed() throws java.io.IOException
resumed
in interface IEventHandler
java.io.IOException
IEventHandler.resumed()
public void terminated() throws java.io.IOException
terminated
in interface IEventHandler
java.io.IOException
IEventHandler.terminated()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |