Class Completers.AnyCompleter

  • All Implemented Interfaces:
    Completer
    Enclosing class:
    Completers

    public static class Completers.AnyCompleter
    extends java.lang.Object
    implements Completer
    A completer that accepts any input.

    This completer simply returns the current word as a candidate, effectively accepting any input without providing additional completions.

    • Constructor Summary

      Constructors 
      Constructor Description
      AnyCompleter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void complete​(LineReader reader, ParsedLine commandLine, java.util.List<Candidate> candidates)
      Completes the current word by returning it as a candidate.
      • Methods inherited from class java.lang.Object

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

      • AnyCompleter

        public AnyCompleter()
    • Method Detail

      • complete

        public void complete​(LineReader reader,
                             ParsedLine commandLine,
                             java.util.List<Candidate> candidates)
        Completes the current word by returning it as a candidate.
        Specified by:
        complete in interface Completer
        Parameters:
        reader - the line reader
        commandLine - the parsed command line
        candidates - the list to add completion candidates to
        See Also:
        Candidate