Home | History | Annotate | Download | only in jline

Lines Matching defs:string

22  *  myConsoleReader.addCompletor (new SimpleCompletor (new String [] { "now", "yesterday", "tomorrow" }));
36 String delimiter;
43 public SimpleCompletor(final String candidateString) {
44 this(new String[] {
53 public SimpleCompletor(final String[] candidateStrings) {
57 public SimpleCompletor(final String[] strings,
78 private static String[] getStrings(final Reader in)
84 String line;
93 return (String[]) words.toArray(new String[words.size()]);
96 public int complete(final String buffer, final int cursor, final List clist) {
97 String start = (buffer == null) ? "" : buffer;
102 String can = (String) i.next();
120 clist.set(0, ((String) clist.get(0)) + " ");
128 public void setDelimiter(final String delimiter) {
132 public String getDelimiter() {
141 String element = (String) i.next();
159 public void setCandidateStrings(final String[] strings) {
163 public void addCandidateString(final String candidateString) {
164 final String string =
167 if (string != null) {
168 candidates.add(string);
183 * Filter the specified String. To not filter it, return the
184 * same String as the parameter. To exclude it, return null.
186 public String filter(String element);
190 public String filter(final String element) {