1 21 package oracle.toplink.essentials.internal.parsing.ejbql; 23 24 import persistence.antlr.TokenBuffer; 25 import persistence.antlr.TokenStreamException; 26 import persistence.antlr.TokenStream; 27 import persistence.antlr.RecognitionException; 28 import persistence.antlr.ParserSharedInputState; 29 30 import oracle.toplink.essentials.exceptions.EJBQLException; 32 import oracle.toplink.essentials.internal.helper.ConversionManager; 33 import oracle.toplink.essentials.exceptions.ConversionException; 34 import oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParserBuilder; 35 36 import java.lang.reflect.Field ; 38 39 44 public class EJBQLParser extends EJBQLParserBase { 45 46 public static String antlrVersion = "2.7.3"; 47 48 public EJBQLParser(TokenBuffer tokenBuf) { 49 this(tokenBuf, 3); 50 } 51 52 protected EJBQLParser(persistence.antlr.TokenBuffer tokenBuf, int k_) { 53 super(tokenBuf, k_); 54 initialize(); 55 } 56 57 public EJBQLParser(ParserSharedInputState state, int k_) { 58 super(state, k_); 59 } 60 61 protected EJBQLParser(TokenStream lexer, int k) { 62 super(lexer, k); 63 } 64 65 public static String ANTLRVersion() throws Exception { 66 return antlrVersion; 67 } 68 69 73 public static EJBQLParser buildParserFor(String ejbqlString) throws EJBQLException { 74 try { 75 return EJBQLParserBuilder.buildParser(ejbqlString); 76 } catch (Exception exception) { 77 throw EJBQLException.generalParsingException(ejbqlString, exception); 78 } 79 } 80 81 public void document() throws RecognitionException, TokenStreamException { 82 } 84 } 85 | Popular Tags |