APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.internal.org.jline.reader.impl.completer

public Class SystemCompleter

extends Object
implements Completer
Class Inheritance
All Implemented Interfaces
jdk.internal.org.jline.reader.Completer
Imports
java.util.*, java.util.function.Function, java.util.stream.Collectors, jdk.internal.org.jline.reader.Candidate, .Completer, .LineReader, .ParsedLine, jdk.internal.org.jline.utils.AttributedString

Completer which contains multiple completers and aggregates them together.
Author
Matti Rinta-Nikkola

Field Summary

Modifier and TypeField and Description
private Map<String, String>
private StringsCompleter
private boolean
private Map<String, List<Completer>>
private Map<String, String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
add(String command, List<Completer> completers)

public void
add(List<String> commands, Completer completer)

public void
add(String command, Completer completer)

public void
public void
addAliases(Map<String, String> aliasCommand)

private String
public void
public void
compile(Function<String, Candidate> candidateBuilder)

public void
complete(LineReader reader, ParsedLine commandLine, List<Candidate> candidates)

Implements jdk.internal.org.jline.reader.Completer.complete.

Populates candidates with a list of possible completions for the command line.

private Map<String, String>
public Map<String, List<Completer>>
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

aliasCommandback to summary
private Map<String, String> aliasCommand
commandsback to summary
private StringsCompleter commands
compiledback to summary
private boolean compiled
completersback to summary
private Map<String, List<Completer>> completers
descriptionsback to summary
private Map<String, String> descriptions

Constructor Detail

SystemCompleterback to summary
public SystemCompleter()

Method Detail

addback to summary
public void add(String command, List<Completer> completers)
addback to summary
public void add(List<String> commands, Completer completer)
addback to summary
public void add(String command, Completer completer)
addback to summary
public void add(SystemCompleter other)
addAliasesback to summary
public void addAliases(Map<String, String> aliasCommand)
commandback to summary
private String command(String cmd)
compileback to summary
public void compile()
compileback to summary
public void compile(Function<String, Candidate> candidateBuilder)
completeback to summary
public void complete(LineReader reader, ParsedLine commandLine, List<Candidate> candidates)

Implements jdk.internal.org.jline.reader.Completer.complete.

Doc from jdk.internal.org.jline.reader.Completer.complete.

Populates candidates with a list of possible completions for the command line. The list of candidates will be sorted and filtered by the LineReader, so that the list of candidates displayed to the user will usually be smaller than the list given by the completer. Thus it is not necessary for the completer to do any matching based on the current buffer. On the contrary, in order for the typo matcher to work, all possible candidates for the word being completed should be returned.

Annotations
@Override
getAliasesback to summary
private Map<String, String> getAliases()
getCompletersback to summary
public Map<String, List<Completer>> getCompleters()
isCompiledback to summary
public boolean isCompiled()