Class SimpleCompletionHandler

java.lang.Object
org.aesh.readline.completion.CompletionHandler<CompleteOperation>
org.aesh.readline.completion.SimpleCompletionHandler

public class SimpleCompletionHandler extends CompletionHandler<CompleteOperation>
Simple implementation of CompletionHandler using the default CompleteOperation.
Author:
Ståle W. Pedersen
  • Constructor Details

    • SimpleCompletionHandler

      public SimpleCompletionHandler()
      Creates a new SimpleCompletionHandler.
  • Method Details

    • createCompleteOperation

      public CompleteOperation createCompleteOperation(String buffer, int cursor)
      Creates a complete operation for the given buffer and cursor position.
      Specified by:
      createCompleteOperation in class CompletionHandler<CompleteOperation>
      Parameters:
      buffer - the current input buffer content
      cursor - the current cursor position in the buffer
      Returns:
      a new CompleteOperationImpl instance for the given buffer and cursor