1 21 package oracle.toplink.essentials.internal.parsing.ejbql.antlr273; 23 24 import persistence.antlr.TokenBuffer; 25 26 import java.io.StringReader ; 28 29 import oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLLexer; 31 import oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser; 32 33 38 public class EJBQLParserBuilder { 39 40 44 public static EJBQLParser buildParser(String ejbqlString) { 45 EJBQLLexer lexer = new EJBQLLexer(new StringReader (ejbqlString)); 46 TokenBuffer buffer = new TokenBuffer(lexer); 47 EJBQLParser parser = new EJBQLParser(buffer); 48 parser.setEjbqlString(ejbqlString); 49 return parser; 50 } 51 } 52 | Popular Tags |