|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjline.FileNameCompletor
public class 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(java.lang.String buf,
int cursor,
java.util.List candidates)
Populates candidates with a list of possible completions for the buffer. |
int |
matchFiles(java.lang.String buffer,
java.lang.String translated,
java.io.File[] entries,
java.util.List candidates)
Match the specified buffer to the array of entries and enter the matches into the list of candidates. |
protected void |
sortFileNames(java.util.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(java.lang.String buf,
int cursor,
java.util.List candidates)
CompletorList before returning.
complete in interface Completorbuf - the buffercandidates - the List of candidates to populate
protected void sortFileNames(java.util.List fileNames)
public int matchFiles(java.lang.String buffer,
java.lang.String translated,
java.io.File[] entries,
java.util.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 | |||||||