Class TransposeWords

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

public class TransposeWords extends Object implements Action
Transpose the word before cursor with the word after (or at) cursor. At end of line, transpose the last two words. Cursor ends up after the second transposed word.
  • Constructor Details

    • TransposeWords

      public TransposeWords()
  • 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