public abstract class FilenameTabCompleter extends Object implements CommandLineCompleter
Constructor and Description |
---|
FilenameTabCompleter(CommandContext ctx) |
Modifier and Type | Method and Description |
---|---|
protected int |
getCandidates(String buffer,
List<String> candidates) |
static void |
main(String[] args) |
protected int |
matchFiles(String buffer,
String translated,
File[] entries,
List<String> candidates)
Match the specified buffer to the array of entries and
enter the matches into the list of candidates.
|
protected abstract boolean |
startsWithRoot(String path) |
String |
translatePath(String path) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
complete
public FilenameTabCompleter(CommandContext ctx)
protected abstract boolean startsWithRoot(String path)
protected int matchFiles(String buffer, String translated, File[] entries, List<String> candidates)
buffer
- the untranslated buffertranslated
- the buffer with common characters replacedentries
- the list of files to matchcandidates
- the list of candidates to populateCopyright © 2023 JBoss by Red Hat. All rights reserved.