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
public static class Completers.AnyCompleter extends java.lang.Object implements org.jline.reader.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.
-
-
Field Summary
Fields Modifier and Type Field Description static Completers.AnyCompleter
INSTANCE
Singleton instance of AnyCompleter
-
Constructor Summary
Constructors Constructor Description AnyCompleter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
complete(org.jline.reader.LineReader reader, org.jline.reader.ParsedLine commandLine, java.util.List<org.jline.reader.Candidate> candidates)
Completes the current word by returning it as a candidate.
-
-
-
Field Detail
-
INSTANCE
public static final Completers.AnyCompleter INSTANCE
Singleton instance of AnyCompleter
-
-
Method Detail
-
complete
public void complete(org.jline.reader.LineReader reader, org.jline.reader.ParsedLine commandLine, java.util.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
-
-