Interface InteractiveModeHandler

All Known Implementing Classes:
SimpleInteractiveModeHandler

public interface InteractiveModeHandler
Interactive mode handler interface.

NOTE: THIS INTERFACE IS EXPERIMENTAL. IT MAY CHANGE IN THE FUTURE.

  • Field Details

    • ALWAYS_NON_INTERACTIVE

      static final InteractiveModeHandler ALWAYS_NON_INTERACTIVE
      Instance of always non interactive.
  • Method Details

    • isEnabled

      boolean isEnabled()
      Get interactive mode is enabled or not.
      Returns:
      true if interactive mode is enabled.
    • setEnabled

      void setEnabled​(boolean isEnabled)
      Enable or disable interactive mode.
      Parameters:
      isEnabled - true if enable interactive mode.
    • enableIfBreakpointReached

      void enableIfBreakpointReached​(CurrentCommand curCmd)
      Enable if a breakpoint is reached.
      Parameters:
      curCmd - current command.
    • handle

      CurrentCommand handle​(Context context, CommandListIterator commandListIterator, CurrentCommand curCmd)
      Handle interactive mode.
      Parameters:
      context - context.
      commandListIterator - command list iterator.
      curCmd - current command.
      Returns:
      curCmd itself or replaced command.