public interface CompletionMatcher
Modifier and Type | Method and Description |
---|---|
void |
compile(Map<LineReader.Option,Boolean> options,
boolean prefix,
CompletingParsedLine line,
boolean caseInsensitive,
int errors,
String originalGroupName)
Compiles completion matcher functions
|
Candidate |
exactMatch() |
String |
getCommonPrefix() |
List<Candidate> |
matches(List<Candidate> candidates) |
void compile(Map<LineReader.Option,Boolean> options, boolean prefix, CompletingParsedLine line, boolean caseInsensitive, int errors, String originalGroupName)
options
- LineReader optionsprefix
- invoked by complete-prefix or expand-or-complete-prefix widgetline
- The parsed line within which completion has been requestedcaseInsensitive
- if completion is case insensitive or noterrors
- number of errors accepted in matchingoriginalGroupName
- value of JLineReader variable original-group-nameList<Candidate> matches(List<Candidate> candidates)
candidates
- list of candidatesCandidate exactMatch()
String getCommonPrefix()