frysk.bindir
Class fhpd.FhpdCompletor
java.lang.Object
frysk.bindir.fhpd.FhpdCompletor
- All Implemented Interfaces:
- Completor
- Enclosing class:
- fhpd
static final class fhpd.FhpdCompletor
- extends Object
- implements Completor
Field Summary |
(package private) CLI |
cli
|
Method Summary |
int |
complete(String buffer,
int cursor,
List candidates)
Populates candidates with a list of possible
completions for the buffer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cli
CLI cli
fhpd.FhpdCompletor
public fhpd.FhpdCompletor(CLI cli)
complete
public int complete(String buffer,
int cursor,
List candidates)
- Description copied from interface:
Completor
- Populates candidates with a list of possible
completions for the buffer. The candidates
list will not be sorted before being displayed to the
user: thus, the complete method should sort the
List
before returning.
- Specified by:
complete
in interface Completor
- Parameters:
buffer
- the buffercandidates
- the List
of candidates to populate
- Returns:
- the index of the buffer for which
the completion will be relative