public class TestCompleter extends java.lang.Object implements ReadlineCompleter
Constructor and Description |
---|
TestCompleter()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
completer(java.lang.String t,
int s)
Return possible completion.
|
public java.lang.String completer(java.lang.String t, int s)
completer
in interface ReadlineCompleter
t
- start of completion text. This is the text since the last
word break character.s
- 0 or positive int. This state is zero on the first call
for a completion request and increments for each subsequent
call until the end of choices is reached.null
, if there
are no more choices.Readline.getWordBreakCharacters()
,
TestCompleter
Released under the LGPL, (c) Bernhard Bablok, Henner Zeller 1998-2002, Andrew Clemons 2017
Homepage: https://github.com/aclemons/java-readline