Class SimpleCompletionHandler
java.lang.Object
org.aesh.readline.completion.CompletionHandler<CompleteOperation>
org.aesh.readline.completion.SimpleCompletionHandler
Simple implementation of CompletionHandler using the default CompleteOperation.
- Author:
- Ståle W. Pedersen
-
Nested Class Summary
Nested classes/interfaces inherited from class CompletionHandler
CompletionHandler.CompletionStatus -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCompleteOperation(String buffer, int cursor) Creates a complete operation for the given buffer and cursor position.Methods inherited from class CompletionHandler
addCompletion, addCompletions, clear, complete, completionStatus, findStartsWithOperation, getAskCompletionSize, removeCompletion, setAliasHandler, setAskCompletionSize, setCompletionStatus
-
Constructor Details
-
SimpleCompletionHandler
public SimpleCompletionHandler()Creates a new SimpleCompletionHandler.
-
-
Method Details
-
createCompleteOperation
Creates a complete operation for the given buffer and cursor position.- Specified by:
createCompleteOperationin classCompletionHandler<CompleteOperation>- Parameters:
buffer- the current input buffer contentcursor- the current cursor position in the buffer- Returns:
- a new CompleteOperationImpl instance for the given buffer and cursor
-