
javarepl.completion.Completers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javarepl Show documentation
Show all versions of javarepl Show documentation
Java REPL is a simple Read-Eval-Print-Loop for Java language.
package javarepl.completion;
import static com.googlecode.totallylazy.Sequences.sequence;
import static com.googlecode.totallylazy.comparators.Comparators.ascending;
public final class Completers {
public static Completer javaKeywordCompleter() {
return new StringCompleter(
sequence("abstract", "assert", "boolean", "break", "byte", "case", "catch",
"char", "class", "continue", "default", "double", "do", "else", "enum",
"extends", "false", "final", "finally", "float", "for", "if", "implements",
"import", "instanceof", "int", "interface", "long", "native", "new", "null",
"package", "private", "protected", "public", "return", "short", "static",
"strictfp", "super", "switch", "synchronized", "this", "throw", "throws",
"transient", "true", "try", "void", "volatile", "while").sort(ascending(String.class)));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy