frysk.bindir
Class fhpd.FhpdCompletor

java.lang.Object
  extended by 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
           
 
Constructor Summary
fhpd.FhpdCompletor(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
 

Field Detail

cli

CLI cli
Constructor Detail

fhpd.FhpdCompletor

public fhpd.FhpdCompletor(CLI cli)
Method Detail

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 buffer
candidates - the List of candidates to populate
Returns:
the index of the buffer for which the completion will be relative