Interface ProcessHandler
- All Known Implementing Classes:
BreakpointRuntimeHandler
,CommandRuntimeHandler
public interface ProcessHandler
Interface that is used by the DebugMonitor to decide several operational steps.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionboolean
if true, the handler has the last call and will be processed at the last handlerboolean
shallHandle
(boolean lastState, Object element, int flag) define if an element shall be considered or completely ignored for suspension in a debug process.
It should be implemented as a filter.boolean
shallInterrupt
(boolean lastState) define if the debugger runtime process shall be interruptedboolean
shallSuspend
(boolean lastState, Object element, int flag) define if a debug process shall be suspended for a given element.
It should be implemented as a filter.
-
Field Details
-
SHALL_HANDLE
static final int SHALL_HANDLE- See Also:
-
INTERRUPT
static final int INTERRUPT- See Also:
-
SUSPEND
static final int SUSPEND- See Also:
-
PUSH
static final int PUSH- See Also:
-
POP
static final int POP- See Also:
-
-
Method Details
-
shallHandle
define if an element shall be considered or completely ignored for suspension in a debug process.
It should be implemented as a filter. The result shall be AND or OR related withlastState
.- Parameters:
lastState
- the consolidated decisions of previously asked listenerselement
- the element that is questionedflag
- one of the valuesIProcessHandler.PUSH
orIProcessHandler.POP
- Returns:
- true if element shall be handled
-
shallSuspend
define if a debug process shall be suspended for a given element.
It should be implemented as a filter. The result shall be AND or OR related withlastState
.- Parameters:
lastState
- the consolidated decisions of previously asked listenerselement
- the element that is questionedflag
- one of the valuesIEventHandler.NORMAL_FRAME
orIEventHandler.END_FRAME
- Returns:
- if the process shall suspend based on the last state and the evaluation of the current element
-
shallInterrupt
boolean shallInterrupt(boolean lastState) define if the debugger runtime process shall be interrupted- Parameters:
lastState
- the consolidated decisions of previously asked listeners- Returns:
- if the process shall be interrupted based on the last state and the evaluation of the current element
-
isLastCall
boolean isLastCall()if true, the handler has the last call and will be processed at the last handler- Returns:
- whether or not
-