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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    if true, the handler has the last call and will be processed at the last handler
    boolean
    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 interrupted
    boolean
    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

  • Method Details

    • shallHandle

      boolean 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. 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:
      true if element shall be handled
    • shallSuspend

      boolean 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. 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