| java.lang.Object jline.SimpleCompletor
All known Subclasses: jline.ClassNameCompletor,
SimpleCompletor | public class SimpleCompletor implements Completor,Cloneable(Code) | |
A simple
Completor implementation that handles a pre-defined
list of completion words.
Example usage:
myConsoleReader.addCompletor (new SimpleCompletor (new String [] { "now", "yesterday", "tomorrow" }));
author: Marc Prud'hommeaux |
Inner Class :public static interface SimpleCompletorFilter | |
Inner Class :public static class NoOpFilter implements SimpleCompletorFilter | |
Constructor Summary | |
public | SimpleCompletor(String candidateString) Create a new SimpleCompletor with a single possible completion
values. | public | SimpleCompletor(String[] candidateStrings) Create a new SimpleCompletor with a list of possible completion
values. | public | SimpleCompletor(String[] strings, SimpleCompletorFilter filter) | public | SimpleCompletor(Reader reader) Complete candidates using the contents of the specified Reader. | public | SimpleCompletor(InputStream in) Complete candidates using the whitespearated values in
read from the specified Reader. |
candidates | SortedSet candidates(Code) | | The list of candidates that will be completed.
|
delimiter | String delimiter(Code) | | A delimiter to use to qualify completions.
|
filter | final SimpleCompletorFilter filter(Code) | | |
SimpleCompletor | public SimpleCompletor(String candidateString)(Code) | | Create a new SimpleCompletor with a single possible completion
values.
|
SimpleCompletor | public SimpleCompletor(String[] candidateStrings)(Code) | | Create a new SimpleCompletor with a list of possible completion
values.
|
SimpleCompletor | public SimpleCompletor(String[] strings, SimpleCompletorFilter filter)(Code) | | |
SimpleCompletor | public SimpleCompletor(Reader reader) throws IOException(Code) | | Complete candidates using the contents of the specified Reader.
|
SimpleCompletor | public SimpleCompletor(InputStream in) throws IOException(Code) | | Complete candidates using the whitespearated values in
read from the specified Reader.
|
addCandidateString | public void addCandidateString(String candidateString)(Code) | | |
setCandidateStrings | public void setCandidateStrings(String[] strings)(Code) | | |
setDelimiter | public void setDelimiter(String delimiter)(Code) | | |
|
|