public class CandidateListCompletionHandler extends java.lang.Object implements jline.console.completer.CompletionHandler
Fixes issues with the default CandidateListCompletionHandler such as clearing out the whole buffer when a completion matches a list of candidates
Modifiers | Name | Description |
---|---|---|
private boolean |
eagerNewlines |
Type Params | Return Type | Name and description |
---|---|---|
|
public boolean |
complete(jline.console.ConsoleReader reader, java.util.List<java.lang.CharSequence> candidates, int pos) |
|
private final java.lang.String |
getUnambiguousCompletions(java.util.List<?> candidates) Returns a root that matches all the java.lang.String elements of the specified java.util.List, or null if there are no commalities. |
|
public void |
setAlwaysIncludeNewline(boolean eagerNewlines) |
|
private final boolean |
startsWith(java.lang.String starts, java.lang.String[] candidates)
|
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Returns a root that matches all the java.lang.String elements of the specified java.util.List, or null if there are no commalities. For example, if the list contains foobar, foobaz, foobuz, the method will return foob.