Package org.jline.builtins
Class Completers.AnyCompleter
java.lang.Object
org.jline.builtins.Completers.AnyCompleter
- All Implemented Interfaces:
org.jline.reader.Completer
- Enclosing class:
Completers
A completer that accepts any input.
This completer simply returns the current word as a candidate, effectively accepting any input without providing additional completions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Completers.AnyCompleter
Singleton instance of AnyCompleter -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
Singleton instance of AnyCompleter
-
-
Constructor Details
-
AnyCompleter
public AnyCompleter()
-
-
Method Details
-
complete
public void complete(org.jline.reader.LineReader reader, org.jline.reader.ParsedLine commandLine, List<org.jline.reader.Candidate> candidates) Completes the current word by returning it as a candidate.- Specified by:
complete
in interfaceorg.jline.reader.Completer
- Parameters:
reader
- the line readercommandLine
- the parsed command linecandidates
- the list to add completion candidates to
-