Class EJBQLParser
java.lang.Object
antlr.Parser
antlr.LLkParser
com.sun.jdo.spi.persistence.support.ejb.ejbqlc.EJBQLParser
- All Implemented Interfaces:
EJBQLTokenTypes
This class defines the syntax analysis (parser) of the EJBQL compiler.
- Author:
- Michael Bouschen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]static final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetstatic final antlr.collections.impl.BitSetprotected static final ResourceBundleI18N support.Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepthFields inherited from interface com.sun.jdo.spi.persistence.support.ejb.ejbqlc.EJBQLTokenTypes
ABS, ABSTRACT_SCHEMA_NAME, AND, AS, ASC, AVG, BETWEEN, BY, CMP_FIELD, CMP_FIELD_ACCESS, COLLECTION_CMR_FIELD, COLLECTION_CMR_FIELD_ACCESS, COMMA, CONCAT, COUNT, DESC, DISTINCT, DIV, DOT, DOUBLE_LITERAL, EMPTY, EOF, EQUAL, ESC, ESCAPE, EXPONENT, FALSE, FLOAT_LITERAL, FLOAT_SUFFIX, FLOATINGPOINT_SUFFIX, FROM, GE, GT, HEX_DIGIT, IDENT, IDENTIFICATION_VAR, IDENTIFICATION_VAR_DECL, IN, INPUT_PARAMETER, INT_LITERAL, IS, LE, LENGTH, LIKE, LOCATE, LONG_LITERAL, LPAREN, LT, MAX, MEMBER, MIN, MINUS, MOD, NEWLINE, NOT, NOT_BETWEEN, NOT_EMPTY, NOT_EQUAL, NOT_IN, NOT_LIKE, NOT_MEMBER, NOT_NULL, NULL, NULL_TREE_LOOKAHEAD, OBJECT, OF, OR, ORDER, PLUS, QUERY, RANGE, RPAREN, SELECT, SINGLE_CMR_FIELD, SINGLE_CMR_FIELD_ACCESS, SQRT, STAR, STRING_LITERAL, SUBSTRING, SUM, TRUE, UNARY_MINUS, UNARY_PLUS, UNICODE_DIGIT, UNICODE_ESCAPE, UNICODE_STR, UNKNOWN, WHERE, WS -
Constructor Summary
ConstructorsModifierConstructorDescriptionEJBQLParser(antlr.ParserSharedInputState state) EJBQLParser(antlr.TokenBuffer tokenBuf) protectedEJBQLParser(antlr.TokenBuffer tokenBuf, int k) EJBQLParser(antlr.TokenStream lexer) protectedEJBQLParser(antlr.TokenStream lexer, int k) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal voidfinal voidfinal voidfinal voidprotected voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidescape()final voidfinal voidfunction()final voidfinal voidfinal voidinExpr()final voidlikeExpr()final voidliteral()final voidfinal voidfinal voidfinal voidfinal voidpathExpr()final voidvoidquery()This method wraps the root rule in order to handle ANTLRExceptions thrown during parsing.final voidvoidreportError(int line, int column, String s) voidreportError(antlr.RecognitionException ex) ANTLR method called when an error was detected.voidANTLR method called when an error was detected.voidANTLR method called when a warning was detected.final voidroot()final voidfinal voidfinal voidMethods inherited from class antlr.LLkParser
consume, LA, LT, traceIn, traceOutMethods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
-
Field Details
-
msgs
I18N support. -
_tokenNames
-
_tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_0 -
_tokenSet_1
public static final antlr.collections.impl.BitSet _tokenSet_1 -
_tokenSet_2
public static final antlr.collections.impl.BitSet _tokenSet_2 -
_tokenSet_3
public static final antlr.collections.impl.BitSet _tokenSet_3 -
_tokenSet_4
public static final antlr.collections.impl.BitSet _tokenSet_4 -
_tokenSet_5
public static final antlr.collections.impl.BitSet _tokenSet_5 -
_tokenSet_6
public static final antlr.collections.impl.BitSet _tokenSet_6 -
_tokenSet_7
public static final antlr.collections.impl.BitSet _tokenSet_7 -
_tokenSet_8
public static final antlr.collections.impl.BitSet _tokenSet_8 -
_tokenSet_9
public static final antlr.collections.impl.BitSet _tokenSet_9 -
_tokenSet_10
public static final antlr.collections.impl.BitSet _tokenSet_10 -
_tokenSet_11
public static final antlr.collections.impl.BitSet _tokenSet_11 -
_tokenSet_12
public static final antlr.collections.impl.BitSet _tokenSet_12 -
_tokenSet_13
public static final antlr.collections.impl.BitSet _tokenSet_13 -
_tokenSet_14
public static final antlr.collections.impl.BitSet _tokenSet_14 -
_tokenSet_15
public static final antlr.collections.impl.BitSet _tokenSet_15 -
_tokenSet_16
public static final antlr.collections.impl.BitSet _tokenSet_16 -
_tokenSet_17
public static final antlr.collections.impl.BitSet _tokenSet_17 -
_tokenSet_18
public static final antlr.collections.impl.BitSet _tokenSet_18
-
-
Constructor Details
-
EJBQLParser
protected EJBQLParser(antlr.TokenBuffer tokenBuf, int k) -
EJBQLParser
public EJBQLParser(antlr.TokenBuffer tokenBuf) -
EJBQLParser
protected EJBQLParser(antlr.TokenStream lexer, int k) -
EJBQLParser
public EJBQLParser(antlr.TokenStream lexer)
-
-
Method Details
-
reportError
public void reportError(antlr.RecognitionException ex) ANTLR method called when an error was detected.- Overrides:
reportErrorin classantlr.Parser
-
reportError
ANTLR method called when an error was detected.- Overrides:
reportErrorin classantlr.Parser
-
reportError
-
reportWarning
ANTLR method called when a warning was detected.- Overrides:
reportWarningin classantlr.Parser
-
query
public void query()This method wraps the root rule in order to handle ANTLRExceptions thrown during parsing. -
root
public final void root() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
selectClause
public final void selectClause() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
fromClause
public final void fromClause() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
whereClause
public final void whereClause() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
orderbyClause
public final void orderbyClause() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
projection
public final void projection() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
pathExpr
public final void pathExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
identificationVarDecl
public final void identificationVarDecl() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
collectionMemberDecl
public final void collectionMemberDecl() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
rangeVarDecl
public final void rangeVarDecl() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
conditionalExpr
public final void conditionalExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
conditionalTerm
public final void conditionalTerm() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
conditionalFactor
public final void conditionalFactor() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
conditionalPrimary
public final void conditionalPrimary() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
betweenExpr
public final void betweenExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
likeExpr
public final void likeExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
inExpr
public final void inExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
nullComparisonExpr
public final void nullComparisonExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
emptyCollectionComparisonExpr
public final void emptyCollectionComparisonExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
collectionMemberExpr
public final void collectionMemberExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
comparisonExpr
public final void comparisonExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
arithmeticExpr
public final void arithmeticExpr() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
stringLiteral
public final void stringLiteral() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
parameter
public final void parameter() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
escape
public final void escape() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
inCollectionElement
public final void inCollectionElement() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
arithmeticTerm
public final void arithmeticTerm() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
arithmeticFactor
public final void arithmeticFactor() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
arithmeticPrimary
public final void arithmeticPrimary() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
literal
public final void literal() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
function
public final void function() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
orderbyItem
public final void orderbyItem() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
direction
public final void direction() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionExceptionantlr.TokenStreamException
-
buildTokenTypeASTClassMap
protected void buildTokenTypeASTClassMap()
-