public final class HqlParser extends HqlBaseParser
_tokenNames, _tokenSet_0, _tokenSet_1, _tokenSet_10, _tokenSet_11, _tokenSet_12, _tokenSet_13, _tokenSet_14, _tokenSet_15, _tokenSet_16, _tokenSet_17, _tokenSet_18, _tokenSet_19, _tokenSet_2, _tokenSet_20, _tokenSet_21, _tokenSet_22, _tokenSet_23, _tokenSet_24, _tokenSet_25, _tokenSet_26, _tokenSet_27, _tokenSet_28, _tokenSet_29, _tokenSet_3, _tokenSet_30, _tokenSet_31, _tokenSet_32, _tokenSet_33, _tokenSet_34, _tokenSet_35, _tokenSet_36, _tokenSet_37, _tokenSet_38, _tokenSet_39, _tokenSet_4, _tokenSet_40, _tokenSet_41, _tokenSet_5, _tokenSet_6, _tokenSet_7, _tokenSet_8, _tokenSet_9astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMapAGGREGATE, ALIAS, ALL, AND, ANY, AS, ASCENDING, AVG, BETWEEN, BOTH, CASE, CASE2, CAST, CLASS, CLOSE, CLOSE_BRACKET, COLON, COMMA, CONCAT, CONSTANT, CONSTRUCTOR, COUNT, DELETE, DESCENDING, DISTINCT, DIV, DOT, ELEMENTS, ELSE, EMPTY, END, ENTRY, EOF, EQ, ESCAPE, ESCqs, EXISTS, EXPONENT, EXPR_LIST, FALSE, FETCH, FILTER_ENTITY, FIRST, FLOAT_SUFFIX, FROM, FULL, GE, GROUP, GT, HAVING, HEX_DIGIT, ID_LETTER, ID_START_LETTER, IDENT, IN, IN_LIST, INDEX_OP, INDICES, INNER, INSERT, INTO, IS, IS_NOT_NULL, IS_NULL, JAVA_CONSTANT, JOIN, KEY, LAST, LE, LEADING, LEFT, LIKE, LITERAL_ascending, LITERAL_by, LITERAL_descending, LT, MAX, MEMBER, METHOD_CALL, MIN, MINUS, MOD, NE, NEW, NOT, NOT_BETWEEN, NOT_IN, NOT_LIKE, NULL, NULL_TREE_LOOKAHEAD, NULLS, NUM_BIG_DECIMAL, NUM_BIG_INTEGER, NUM_DOUBLE, NUM_FLOAT, NUM_INT, NUM_LONG, OBJECT, OF, ON, OPEN, OPEN_BRACKET, OR, ORDER, ORDER_ELEMENT, OUTER, PARAM, PLUS, PROPERTIES, QUERY, QUOTED_STRING, RANGE, RIGHT, ROW_STAR, SELECT, SELECT_FROM, SET, SOME, SQL_NE, STAR, SUM, THEN, TRAILING, TRUE, UNARY_MINUS, UNARY_PLUS, UNION, UPDATE, VALUE, VECTOR_EXPR, VERSIONED, WEIRD_IDENT, WHEN, WHERE, WITH, WS| Modifier and Type | Method and Description |
|---|---|
void |
expectNamedParameterName()
Called after we have recognized ':'.
|
static HqlParser |
getInstance(String hql) |
ParseErrorHandler |
getParseErrorHandler() |
void |
handleDotIdent()
This method looks ahead and converts .
|
antlr.collections.AST |
handleIdentifierError(antlr.Token token,
antlr.RecognitionException ex)
Overrides the base behavior to retry keywords as identifiers.
|
antlr.collections.AST |
negateNode(antlr.collections.AST x)
Returns an equivalent tree for (NOT (a relop b) ), for example:
|
static void |
panic() |
antlr.collections.AST |
processEqualityExpression(antlr.collections.AST x)
Post process equality expressions, clean up the subtree.
|
void |
processMemberOf(antlr.Token n,
antlr.collections.AST p,
antlr.ASTPair currentAST) |
void |
reportError(antlr.RecognitionException e) |
void |
reportError(String s) |
void |
reportWarning(String s) |
void |
showAst(antlr.collections.AST ast,
PrintStream out) |
void |
traceIn(String ruleName) |
void |
traceOut(String ruleName) |
void |
weakKeywords() |
additiveExpression, aggregate, alias, aliasedExpression, altWhenClause, asAlias, ascendingOrDescending, assignment, atom, betweenList, buildTokenTypeASTClassMap, caseExpression, castFunction, castTargetType, collectionExpr, compoundExpr, concatenation, constant, deleteStatement, elseClause, equalityExpression, expression, expressionOrVector, exprList, fromClassOrOuterQueryPath, fromClause, fromJoin, fromRange, groupByClause, havingClause, identifier, identPrimary, inClassDeclaration, inCollectionDeclaration, inCollectionElementsDeclaration, inList, insertablePropertySpec, insertStatement, intoClause, isFilter, likeEscape, logicalAndExpression, logicalExpression, logicalOrExpression, multiplyExpression, negatedExpression, newExpression, newValue, nullOrdering, nullPrecedence, optionalFromTokenFromClause, orderByClause, orderElement, parameter, path, primaryExpression, propertyFetch, quantifiedExpression, queryRule, relationalExpression, retrieveLookAheadText, selectClause, selectedPropertiesList, selectFrom, selectObject, selectStatement, setClause, setFilter, stateField, statement, subQuery, unaryExpression, union, updateStatement, validateLookAheadText, validateSoftKeyword, vectorExpr, whenClause, whereClause, withClauseaddMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndentpublic void traceIn(String ruleName)
traceIn in class antlr.LLkParserpublic void traceOut(String ruleName)
traceOut in class antlr.LLkParserpublic void reportError(antlr.RecognitionException e)
reportError in class antlr.Parserpublic void reportError(String s)
reportError in class antlr.Parserpublic void reportWarning(String s)
reportWarning in class antlr.Parserpublic ParseErrorHandler getParseErrorHandler()
public antlr.collections.AST handleIdentifierError(antlr.Token token,
antlr.RecognitionException ex)
throws antlr.RecognitionException,
antlr.TokenStreamException
handleIdentifierError in class HqlBaseParsertoken - The token.ex - The recognition exception.antlr.RecognitionException - if the substitution was not possible.antlr.TokenStreamException - if the substitution was not possible.public antlr.collections.AST negateNode(antlr.collections.AST x)
(NOT (GT a b) ) => (LE a b)
negateNode in class HqlBaseParserx - The sub tree to transform, the parent is assumed to be NOT.public antlr.collections.AST processEqualityExpression(antlr.collections.AST x)
processEqualityExpression in class HqlBaseParserx - The equality expression.public void showAst(antlr.collections.AST ast,
PrintStream out)
public void weakKeywords()
throws antlr.TokenStreamException
weakKeywords in class HqlBaseParserantlr.TokenStreamExceptionpublic void expectNamedParameterName()
throws antlr.TokenStreamException
HqlBaseParserexpectNamedParameterName in class HqlBaseParserantlr.TokenStreamExceptionpublic void handleDotIdent()
throws antlr.TokenStreamException
HqlBaseParserhandleDotIdent in class HqlBaseParserantlr.TokenStreamExceptionpublic void processMemberOf(antlr.Token n,
antlr.collections.AST p,
antlr.ASTPair currentAST)
processMemberOf in class HqlBaseParserpublic static void panic()
Copyright © 2018 JBoss by Red Hat. All rights reserved.