public class FileCompletor extends Object implements jline.Completor
FileNameCompletor
to take into account the current
working directoryConstructor and Description |
---|
FileCompletor() |
Modifier and Type | Method and Description |
---|---|
int |
complete(String buf,
int cursor,
List candidates) |
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.
|
public int complete(String buf, int cursor, List candidates)
complete
in interface jline.Completor
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 populateCopyright © 2011 Nuxeo SA. All Rights Reserved.