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:
| 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) |
|
protected String |
getSeparator() |
|
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()
Copyright © 2019. All rights reserved.