|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jline.FileNameCompletor
A file name completor takes the buffer and issues a list of potential completions.
This completor tries to behave as similar as possible to bash's file name completion (using GNU readline) with the following exceptions:
TODO
Constructor Summary | |
FileNameCompletor()
|
Method Summary | |
int |
complete(String buf,
int cursor,
List candidates)
Populates candidates with a list of possible completions for the buffer. |
int |
matchFiles(String buffer,
String translated,
File[] entries,
List candidates)
Match the specified buffer to the array of entries and enter the matches into the list of candidates. |
protected void |
sortFileNames(List fileNames)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileNameCompletor()
Method Detail |
public int complete(String buf, int cursor, List candidates)
Completor
List
before returning.
complete
in interface Completor
buf
- the buffercandidates
- the List
of candidates to populate
protected void sortFileNames(List fileNames)
public int matchFiles(String buffer, String translated, File[] entries, List candidates)
buffer
- the untranslated buffertranslated
- the buffer with common characters replacedentries
- the list of files to matchcandidates
- the list of candidates to populate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |