public class TestCompleter extends Object implements ReadlineCompleter
Constructor and Description |
---|
TestCompleter()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
completer(String t,
int s)
Return possible completion.
|
public String completer(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
Homepage: http://java-readline.sourceforge.net/