public class FileNameCompleter extends Object implements Completer
Constructor and Description |
---|
FileNameCompleter() |
Modifier and Type | Method and Description |
---|---|
int |
complete(String buffer,
int cursor,
List<CharSequence> candidates)
Populates candidates with a list of possible completions for the buffer.
|
protected File |
getUserDir() |
protected File |
getUserHome() |
protected int |
matchFiles(String buffer,
String translated,
File[] files,
List<CharSequence> candidates) |
protected CharSequence |
render(File file,
CharSequence name) |
protected String |
separator() |
public int complete(String buffer, int cursor, List<CharSequence> candidates)
Completer
List
before returning.protected String separator()
protected File getUserHome()
protected File getUserDir()
protected int matchFiles(String buffer, String translated, File[] files, List<CharSequence> candidates)
protected CharSequence render(File file, CharSequence name)
Copyright © 2024. All rights reserved.