|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openarchitectureware.debug.processing.handlers.BreakpointRuntimeHandler
public class BreakpointRuntimeHandler
This class handles the communication of Breakpoints on the runtime side. It listens in an extra thread for set
and removal of breakpoints. The DebugMonitor
uses this class to suspend the runtime process at
breakpoints.
Field Summary | |
---|---|
protected Connection |
connection
|
protected DebugMonitor |
monitor
|
static int |
REMOVE
|
static int |
SET
|
Fields inherited from interface org.openarchitectureware.debug.processing.IProcessHandler |
---|
INTERRUPT, POP, PUSH, SHALL_HANDLE, SUSPEND |
Constructor Summary | |
---|---|
BreakpointRuntimeHandler()
|
Method Summary | |
---|---|
void |
init(DebugMonitor monitor,
Connection connection)
initiate the instantiated handler. |
boolean |
isLastCall()
if true, the handler has the last call and will be processed at the last handler |
void |
run()
|
boolean |
shallHandle(boolean lastState,
java.lang.Object element,
int flag)
no contribution here |
boolean |
shallInterrupt(boolean lastState)
no contribution here |
boolean |
shallSuspend(boolean lastState,
java.lang.Object element,
int flag)
returns true if a breakpoint is rgeistered for that element |
void |
startListener()
start the listening process in an extra thread, if required |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SET
public static final int REMOVE
protected Connection connection
protected DebugMonitor monitor
Constructor Detail |
---|
public BreakpointRuntimeHandler()
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()
IRuntimeHandler
startListener
in interface IRuntimeHandler
public void run()
run
in interface java.lang.Runnable
public boolean isLastCall()
IProcessHandler
isLastCall
in interface IProcessHandler
public boolean shallSuspend(boolean lastState, java.lang.Object element, int flag)
shallSuspend
in interface IProcessHandler
lastState
- the consolidated decisions of previously asked listenerselement
- the element that is questionedflag
- one of the values IEventHandler.NORMAL_FRAME
or
IEventHandler.END_FRAME
IProcessHandler.shallSuspend(boolean, java.lang.Object, int)
public boolean shallHandle(boolean lastState, java.lang.Object element, int flag)
shallHandle
in interface IProcessHandler
lastState
- the consolidated decisions of previously asked listenerselement
- the element that is questionedflag
- one of the values IProcessHandler.PUSH
or IProcessHandler.POP
IProcessHandler.shallHandle(boolean, java.lang.Object, int)
public boolean shallInterrupt(boolean lastState)
shallInterrupt
in interface IProcessHandler
lastState
- the consolidated decisions of previously asked listeners
IProcessHandler.shallInterrupt(boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |