use of com.haulmont.cuba.core.sys.jpql.antlr2.JPA2Lexer in project cuba by cuba-platform.
the class Parser method createParser.
private static JPA2Parser createParser(String input) {
if (input.contains("~"))
throw new IllegalArgumentException("Input string cannot contain \"~\"");
CharStream cs = new AntlrNoCaseStringStream(input);
JPA2Lexer lexer = new JPA2Lexer(cs);
TokenStream tstream = new CommonTokenStream(lexer);
return new JPA2Parser(tstream);
}
Aggregations