Class NonIncrementalReverseSearchHistory
java.lang.Object
org.aesh.readline.action.mappings.NonIncrementalReverseSearchHistory
- All Implemented Interfaces:
Consumer<InputProcessor>,Action,ActionEvent
Search backward through the history starting at the current line
and moving 'up' through the history as necessary using a
non-incremental search for a string supplied by the user.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(InputProcessor inputProcessor) Executes this action on the given input processor.voidProcesses an input event with the given action and key.booleanReturns whether this action event should retain focus after processing.name()Returns the name of this action.
-
Constructor Details
-
NonIncrementalReverseSearchHistory
public NonIncrementalReverseSearchHistory()
-
-
Method Details
-
name
Description copied from interface:ActionReturns the name of this action.- Returns:
- the action name
-
input
Description copied from interface:ActionEventProcesses an input event with the given action and key.- Specified by:
inputin interfaceActionEvent- Parameters:
action- the action that triggered this inputkey- the key action associated with the input
-
keepFocus
public boolean keepFocus()Description copied from interface:ActionEventReturns whether this action event should retain focus after processing.- Specified by:
keepFocusin interfaceActionEvent- Returns:
- true if this event should keep focus
-
accept
Description copied from interface:ActionExecutes this action on the given input processor.- Specified by:
acceptin interfaceAction- Specified by:
acceptin interfaceConsumer<InputProcessor>- Parameters:
inputProcessor- the input processor to operate on
-