Class TransposeWords
java.lang.Object
org.aesh.readline.action.mappings.TransposeWords
- All Implemented Interfaces:
Consumer<InputProcessor>,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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(InputProcessor inputProcessor) Executes this action on the given input processor.name()Returns the name of this action.
-
Constructor Details
-
TransposeWords
public TransposeWords()
-
-
Method Details
-
name
Description copied from interface:ActionReturns the name of this action. -
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
-