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