|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xnap.cmdl.DefaultCompleter
public class DefaultCompleter
Constructor Summary | |
---|---|
DefaultCompleter()
|
Method Summary | |
---|---|
void |
add(java.lang.String completion)
|
java.lang.String |
completer(java.lang.String text,
int state)
Returns a possible completion for text . |
java.lang.String[] |
getCompletions()
|
void |
remove(java.lang.String completion)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCompleter()
Method Detail |
---|
public void add(java.lang.String completion)
public void remove(java.lang.String completion)
public java.lang.String[] getCompletions()
public java.lang.String completer(java.lang.String text, int state)
Completer
text
.
completer
in interface Completer
text
- the start of the word to be completedstate
- 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.ReadlineCompleter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |