Class CandidateListCompletionHandler

  • All Implemented Interfaces:
    jline.console.completer.CompletionHandler

    public class CandidateListCompletionHandler
    extends java.lang.Object
    implements jline.console.completer.CompletionHandler
    Fixes issues with the default CandidateListCompletionHandler such as clearing out the whole buffer when a completion matches a list of candidates
    Since:
    2.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean complete​(jline.console.ConsoleReader reader, java.util.List<java.lang.CharSequence> candidates, int pos)  
      void setAlwaysIncludeNewline​(boolean eagerNewlines)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CandidateListCompletionHandler

        public CandidateListCompletionHandler()
    • Method Detail

      • setAlwaysIncludeNewline

        public void setAlwaysIncludeNewline​(boolean eagerNewlines)
      • complete

        public boolean complete​(jline.console.ConsoleReader reader,
                                java.util.List<java.lang.CharSequence> candidates,
                                int pos)
                         throws java.io.IOException
        Specified by:
        complete in interface jline.console.completer.CompletionHandler
        Throws:
        java.io.IOException