public class CompletionFinderTabCompleter extends Object implements TabCompleter
CompletionFinder
s.Constructor and Description |
---|
CompletionFinderTabCompleter(CompletionFinder finder)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
complete(String buffer,
int cursor,
List<CharSequence> candidates)
Perform tab completion.
|
public CompletionFinderTabCompleter(CompletionFinder finder)
finder
- the CompletionFinder which provides completion candidates. Must not be null.public int complete(String buffer, int cursor, List<CharSequence> candidates)
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.