org.eclipse.emf.mwe.internal.core.debug.processing
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
static int INTERRUPT
           
static int POP
           
static int PUSH
           
static int SHALL_HANDLE
           
static int SUSPEND
           
 
Method Summary
 boolean isLastCall()
          if true, the handler has the last call and will be processed at the last handler
 boolean shallHandle(boolean lastState, java.lang.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 interrupted
 boolean shallSuspend(boolean lastState, java.lang.Object element, int flag)
          define if a debug process shall be suspended for a given element.
It should be implemented as a filter.
 

Field Detail

SHALL_HANDLE

static final int SHALL_HANDLE
See Also:
Constant Field Values

INTERRUPT

static final int INTERRUPT
See Also:
Constant Field Values

SUSPEND

static final int SUSPEND
See Also:
Constant Field Values

PUSH

static final int PUSH
See Also:
Constant Field Values

POP

static final int POP
See Also:
Constant Field Values
Method Detail

shallHandle

boolean shallHandle(boolean lastState,
                    java.lang.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. The result shall be AND or OR related with lastState.

Parameters:
lastState - the consolidated decisions of previously asked listeners
element - the element that is questioned
flag - one of the values IProcessHandler.PUSH or IProcessHandler.POP
Returns:

shallSuspend

boolean shallSuspend(boolean lastState,
                     java.lang.Object element,
                     int flag)
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 with lastState.

Parameters:
lastState - the consolidated decisions of previously asked listeners
element - the element that is questioned
flag - one of the values IEventHandler.NORMAL_FRAME or IEventHandler.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