jline
Interface Completor
- ArgumentCompletor, ClassNameCompletor, FileNameCompletor, MultiCompletor, NullCompletor, SimpleCompletor
public interface Completor
A Completor is the mechanism by which tab-completion candidates
will be resolved.
int | complete(String buffer, int cursor, List candidates) - Populates candidates with a list of possible
completions for the buffer.
|
complete
public int complete(String buffer,
int cursor,
List candidates)
Populates candidates with a list of possible
completions for the buffer. The candidates
list will not be sorted before being displayed to the
user: thus, the complete method should sort the
List
before returning.
buffer
- the buffercandidates
- the List
of candidates to populate
- the index of the buffer for which
the completion will be relative