Interface Action

All Superinterfaces:
Consumer<InputProcessor>
All Known Subinterfaces:
ActionEvent, SearchAction
All Known Implementing Classes:
BackwardChar, BeginningOfLine, CapitalizeForwardWord, ChangeBackwardBigWord, ChangeBackwardWord, ChangeCaseChar, ChangeEndOfLine, ChangeForwardBigWord, ChangeForwardWord, Clear, Complete, CopyBackwardBigWord, CopyBackwardWord, CopyForwardBigWord, CopyForwardWord, CopyLine, DeleteBackwardBigWord, DeleteBackwardWord, DeleteChar, DeleteEndOfLine, DeleteForwardBigWord, DeleteForwardWord, DeleteLine, DeletePrevChar, DeleteStartOfLine, DownCaseForwardWord, EmacsEditingMode, EndOfFile, EndOfLine, Enter, ForwardChar, ForwardSearchHistory, Interrupt, MoveBackwardBigWord, MoveBackwardWord, MoveForwardBigWord, MoveForwardWord, NextHistory, NoAction, PrevHistory, ReverseSearchHistory, Undo, UpCaseChar, UpCaseForwardWord, ViEditingMode, Yank, YankAfter

public interface Action extends Consumer<InputProcessor>
Base interface for all readline editing actions.
Author:
Ståle W. Pedersen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(InputProcessor inputProcessor)
    Executes this action on the given input processor.
    Returns the name of this action.

    Methods inherited from interface Consumer

    andThen
  • Method Details

    • name

      String name()
      Returns the name of this action.
      Returns:
      the action name
    • accept

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