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 String |
getDisplay(org.jline.terminal.Terminal terminal,
Path p) |
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()
Copyright © 2019. All rights reserved.