public class StringsTabCompleter extends Object implements TabCompleter
Modifier and Type | Field and Description |
---|---|
protected CompletionFinderTabCompleter |
tabCompleter |
Constructor and Description |
---|
StringsTabCompleter(Iterable<String> strings) |
StringsTabCompleter(String... strings) |
Modifier and Type | Method and Description |
---|---|
int |
complete(String buffer,
int cursor,
List<CharSequence> candidates)
Perform tab completion.
|
protected final CompletionFinderTabCompleter tabCompleter
public StringsTabCompleter(String... strings)
public int complete(String buffer, int cursor, List<CharSequence> candidates)
TabCompleter
complete
in interface TabCompleter
buffer
- the current contents of the command linecursor
- the position of the editor cursor within the command linecandidates
- out variable containing the possible completionsCopyright © 2017. All rights reserved.