public 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:
| Constructor and Description |
|---|
FileNameCompleter() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(Path path) |
void |
complete(LineReader reader,
ParsedLine commandLine,
List<Candidate> candidates) |
protected static String |
getDisplay(org.jline.terminal.Terminal terminal,
Path p) |
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.