Interface Action

All Superinterfaces:
Consumer<InputProcessor>
All Known Subinterfaces:
ActionEvent, SearchAction
All Known Implementing Classes:
BackwardChar, BeginningOfHistory, BeginningOfLine, CapitalizeForwardWord, ChangeBackwardBigWord, ChangeBackwardWord, ChangeCaseChar, ChangeEndOfLine, ChangeForwardBigWord, ChangeForwardWord, CharacterSearch, CharacterSearchBackward, Clear, Complete, CopyBackwardBigWord, CopyBackwardWord, CopyForwardBigWord, CopyForwardWord, CopyLine, DeleteBackwardBigWord, DeleteBackwardWord, DeleteChar, DeleteCharOrList, DeleteEndOfLine, DeleteForwardBigWord, DeleteForwardWord, DeleteHorizontalSpace, DeleteLine, DeletePrevChar, DeleteStartOfLine, DownCaseForwardWord, EmacsEditingMode, EndOfFile, EndOfHistory, EndOfLine, Enter, ExchangePointAndMark, ForwardChar, ForwardSearchHistory, HistorySearchBackward, HistorySearchForward, InsertComment, Interrupt, KillRegion, MoveBackwardBigWord, MoveBackwardWord, MoveForwardBigWord, MoveForwardWord, NextHistory, NoAction, NonIncrementalForwardSearchHistory, NonIncrementalReverseSearchHistory, OverwriteMode, PossibleCompletions, PrevHistory, QuotedInsert, RedrawCurrentLine, ReverseSearchHistory, RevertLine, SetMark, TildeExpand, TransposeChars, TransposeWords, Undo, UnixFilenameRubout, UpCaseChar, UpCaseForwardWord, ViEditingMode, Yank, YankAfter, YankLastArg, YankNthArg, YankPop

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 java.util.function.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