Class ExchangePointAndMark

java.lang.Object
org.aesh.readline.action.mappings.ExchangePointAndMark
All Implemented Interfaces:
Consumer<InputProcessor>, Action

public class ExchangePointAndMark extends Object implements Action
Swap the point with the mark. The current cursor position is set to the saved position, and the old cursor position is saved as the mark.
  • Constructor Details

    • ExchangePointAndMark

      public ExchangePointAndMark()
  • Method Details

    • name

      public String name()
      Description copied from interface: Action
      Returns the name of this action.
      Specified by:
      name in interface Action
      Returns:
      the action name
    • accept

      public void accept(InputProcessor inputProcessor)
      Description copied from interface: Action
      Executes this action on the given input processor.
      Specified by:
      accept in interface Action
      Specified by:
      accept in interface Consumer<InputProcessor>
      Parameters:
      inputProcessor - the input processor to operate on