CompleterCompleters.DirectoriesCompleter, Completers.FilesCompleterpublic static class Completers.FileNameCompleter extends Object implements Completer
This completer tries to behave as similar as possible to bash's file name completion (using GNU readline) with the following exceptions:
| Modifier and Type | Field | Description |
|---|---|---|
protected static org.jline.utils.StyleResolver |
resolver |
| Constructor | Description |
|---|---|
FileNameCompleter() |
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
accept(Path path) |
|
void |
complete(LineReader reader,
ParsedLine commandLine,
List<Candidate> candidates) |
|
protected String |
getDisplay(org.jline.terminal.Terminal terminal,
Path p,
org.jline.utils.StyleResolver resolver,
String separator) |
|
protected String |
getSeparator(boolean useForwardSlash) |
|
protected Path |
getUserDir() |
|
protected Path |
getUserHome() |
public void complete(LineReader reader, ParsedLine commandLine, List<Candidate> candidates)
protected boolean accept(Path path)
protected Path getUserDir()
protected Path getUserHome()
protected String getSeparator(boolean useForwardSlash)
Copyright © 2020. All rights reserved.