public class HqlSqlBaseWalker extends antlr.TreeParser implements HqlSqlTokenTypes
Modifier and Type | Field and Description |
---|---|
static String[] |
_tokenNames |
static antlr.collections.impl.BitSet |
_tokenSet_0 |
static antlr.collections.impl.BitSet |
_tokenSet_1 |
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, traceDepth
AGGREGATE, ALIAS, ALIAS_REF, ALL, AND, ANY, AS, ASCENDING, AVG, BETWEEN, BOGUS, 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, FILTERS, FIRST, FLOAT_SUFFIX, FROM, FROM_FRAGMENT, FULL, GE, GROUP, GT, HAVING, HEX_DIGIT, ID_LETTER, ID_START_LETTER, IDENT, IMPLIED_FROM, IN, IN_LIST, INDEX_OP, INDICES, INNER, INSERT, INTO, IS, IS_NOT_NULL, IS_NULL, JAVA_CONSTANT, JOIN, JOIN_FRAGMENT, KEY, LAST, LE, LEADING, LEFT, LEFT_OUTER, LIKE, LITERAL_ascending, LITERAL_by, LITERAL_descending, LT, MAX, MEMBER, METHOD_CALL, METHOD_NAME, MIN, MINUS, MOD, NAMED_PARAM, 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, PROPERTY_REF, QUERY, QUOTED_STRING, RANGE, RESULT_VARIABLE_REF, RIGHT, RIGHT_OUTER, ROW_STAR, SELECT, SELECT_CLAUSE, SELECT_COLUMNS, SELECT_EXPR, SELECT_FROM, SET, SOME, SQL_NE, SQL_TOKEN, STAR, SUM, THEN, THETA_JOINS, TRAILING, TRUE, UNARY_MINUS, UNARY_PLUS, UPDATE, VALUE, VECTOR_EXPR, VERSIONED, WEIRD_IDENT, WHEN, WHERE, WITH, WS
Constructor and Description |
---|
HqlSqlBaseWalker() |
Modifier and Type | Method and Description |
---|---|
void |
addrExpr(antlr.collections.AST _t,
boolean root) |
void |
addrExprLhs(antlr.collections.AST _t) |
void |
aggregateExpr(antlr.collections.AST _t) |
void |
aliasedSelectExpr(antlr.collections.AST _t) |
void |
aliasRef(antlr.collections.AST _t) |
void |
arithmeticExpr(antlr.collections.AST _t) |
void |
assignment(antlr.collections.AST _t) |
protected void |
beforeSelectClause() |
void |
caseExpr(antlr.collections.AST _t) |
void |
collectionFunction(antlr.collections.AST _t) |
void |
collectionFunctionOrSubselect(antlr.collections.AST _t) |
void |
comparisonExpr(antlr.collections.AST _t) |
void |
constant(antlr.collections.AST _t) |
void |
constructor(antlr.collections.AST _t) |
void |
count(antlr.collections.AST _t) |
protected antlr.collections.AST |
createFromElement(String path,
antlr.collections.AST alias,
antlr.collections.AST propertyFetch) |
protected antlr.collections.AST |
createFromFilterElement(antlr.collections.AST filterEntity,
antlr.collections.AST alias) |
protected void |
createFromJoinElement(antlr.collections.AST path,
antlr.collections.AST alias,
int joinType,
antlr.collections.AST fetch,
antlr.collections.AST propertyFetch,
antlr.collections.AST with) |
protected antlr.collections.AST |
createIntoClause(String path,
antlr.collections.AST propertySpec) |
void |
deleteStatement(antlr.collections.AST _t) |
void |
elseClause(antlr.collections.AST _t) |
protected void |
evaluateAssignment(antlr.collections.AST eq) |
void |
expr(antlr.collections.AST _t) |
void |
expressionOrSubQuery(antlr.collections.AST _t) |
void |
exprOrSubquery(antlr.collections.AST _t) |
void |
fromClause(antlr.collections.AST _t) |
void |
fromElement(antlr.collections.AST _t) |
void |
fromElementList(antlr.collections.AST _t) |
void |
functionCall(antlr.collections.AST _t) |
protected antlr.collections.AST |
generateNamedParameter(antlr.collections.AST delimiterNode,
antlr.collections.AST nameNode) |
protected antlr.collections.AST |
generatePositionalParameter(antlr.collections.AST inputNode) |
int |
getCurrentClauseType() |
int |
getCurrentStatementType() |
int |
getCurrentTopLevelClauseType() |
int |
getStatementType() |
void |
groupClause(antlr.collections.AST _t) |
protected void |
handleResultVariableRef(antlr.collections.AST resultVariableRef) |
void |
identifier(antlr.collections.AST _t) |
void |
inRhs(antlr.collections.AST _t) |
void |
insertablePropertySpec(antlr.collections.AST _t) |
void |
insertStatement(antlr.collections.AST _t) |
void |
intoClause(antlr.collections.AST _t) |
boolean |
isComparativeExpressionClause() |
boolean |
isInCase() |
boolean |
isInCount() |
boolean |
isInCountDistinct() |
boolean |
isInFrom() |
boolean |
isInFunctionCall() |
boolean |
isInSelect() |
protected boolean |
isNonQualifiedPropertyRef(antlr.collections.AST ident) |
protected boolean |
isOrderExpressionResultVariableRef(antlr.collections.AST ident) |
boolean |
isSelectStatement() |
boolean |
isSubQuery() |
void |
joinElement(antlr.collections.AST _t) |
int |
joinType(antlr.collections.AST _t) |
void |
literal(antlr.collections.AST _t) |
void |
logicalExpr(antlr.collections.AST _t) |
protected void |
lookupAlias(antlr.collections.AST ident) |
protected antlr.collections.AST |
lookupNonQualifiedProperty(antlr.collections.AST property) |
protected antlr.collections.AST |
lookupProperty(antlr.collections.AST dot,
boolean root,
boolean inSelect) |
void |
mapComponentReference(antlr.collections.AST _t) |
void |
mapPropertyExpression(antlr.collections.AST _t) |
void |
newValue(antlr.collections.AST _t) |
void |
nullOrdering(antlr.collections.AST _t) |
void |
nullPrecedence(antlr.collections.AST _t) |
void |
numericInteger(antlr.collections.AST _t) |
void |
orderClause(antlr.collections.AST _t) |
void |
orderExpr(antlr.collections.AST _t) |
void |
orderExprs(antlr.collections.AST _t) |
void |
parameter(antlr.collections.AST _t) |
String |
path(antlr.collections.AST _t) |
void |
pathAsIdent(antlr.collections.AST _t) |
protected void |
postProcessDelete(antlr.collections.AST delete) |
protected void |
postProcessInsert(antlr.collections.AST insert) |
protected void |
postProcessUpdate(antlr.collections.AST update) |
protected void |
prepareArithmeticOperator(antlr.collections.AST operator) |
protected void |
prepareFromClauseInputTree(antlr.collections.AST fromClauseInput)
Pre-process the from clause input tree.
|
protected void |
prepareLogicOperator(antlr.collections.AST operator) |
protected void |
prepareVersioned(antlr.collections.AST updateNode,
antlr.collections.AST versionedNode) |
protected void |
processAggregation(antlr.collections.AST node,
boolean inSelect) |
protected void |
processBoolean(antlr.collections.AST constant) |
protected void |
processCastFunction(antlr.collections.AST functionCall,
boolean inSelect) |
protected void |
processConstant(antlr.collections.AST constant) |
protected void |
processConstructor(antlr.collections.AST constructor) |
protected void |
processFunction(antlr.collections.AST functionCall,
boolean inSelect) |
protected void |
processIndex(antlr.collections.AST indexOp) |
protected void |
processMapComponentReference(antlr.collections.AST node) |
protected void |
processNumericLiteral(antlr.collections.AST literal) |
protected void |
processQuery(antlr.collections.AST select,
antlr.collections.AST query) |
void |
propertyName(antlr.collections.AST _t) |
void |
propertyRef(antlr.collections.AST _t) |
void |
propertyRefLhs(antlr.collections.AST _t) |
protected void |
pushFromClause(antlr.collections.AST fromClause,
antlr.collections.AST inputFromNode)
Sets the current 'FROM' context.
|
void |
query(antlr.collections.AST _t) |
protected void |
resolve(antlr.collections.AST node) |
protected void |
resolveSelectExpression(antlr.collections.AST dotNode) |
void |
resultVariableRef(antlr.collections.AST _t) |
void |
searchedCaseExpression(antlr.collections.AST _t) |
void |
searchedCaseWhenClause(antlr.collections.AST _t) |
void |
selectClause(antlr.collections.AST _t) |
void |
selectExpr(antlr.collections.AST _t) |
void |
selectExprList(antlr.collections.AST _t) |
void |
selectStatement(antlr.collections.AST _t) |
protected void |
setAlias(antlr.collections.AST selectExpr,
antlr.collections.AST ident) |
void |
setClause(antlr.collections.AST _t) |
protected void |
setImpliedJoinType(int joinType) |
void |
simpleCaseExpression(antlr.collections.AST _t) |
void |
simpleCaseWhenClause(antlr.collections.AST _t) |
void |
statement(antlr.collections.AST _t) |
void |
updateStatement(antlr.collections.AST _t) |
protected void |
validateMapPropertyExpression(antlr.collections.AST node) |
void |
whereClause(antlr.collections.AST _t) |
void |
withClause(antlr.collections.AST _t) |
public static final String[] _tokenNames
public static final antlr.collections.impl.BitSet _tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_1
public final boolean isSubQuery()
public final boolean isInFrom()
public final boolean isInFunctionCall()
public final boolean isInSelect()
public final boolean isInCase()
public final boolean isInCount()
public final boolean isInCountDistinct()
public final int getStatementType()
public final int getCurrentClauseType()
public final int getCurrentTopLevelClauseType()
public final int getCurrentStatementType()
public final boolean isComparativeExpressionClause()
public final boolean isSelectStatement()
protected void evaluateAssignment(antlr.collections.AST eq) throws antlr.SemanticException
antlr.SemanticException
protected void prepareFromClauseInputTree(antlr.collections.AST fromClauseInput)
protected void pushFromClause(antlr.collections.AST fromClause, antlr.collections.AST inputFromNode)
protected antlr.collections.AST createFromElement(String path, antlr.collections.AST alias, antlr.collections.AST propertyFetch) throws antlr.SemanticException
antlr.SemanticException
protected void createFromJoinElement(antlr.collections.AST path, antlr.collections.AST alias, int joinType, antlr.collections.AST fetch, antlr.collections.AST propertyFetch, antlr.collections.AST with) throws antlr.SemanticException
antlr.SemanticException
protected antlr.collections.AST createFromFilterElement(antlr.collections.AST filterEntity, antlr.collections.AST alias) throws antlr.SemanticException
antlr.SemanticException
protected void processQuery(antlr.collections.AST select, antlr.collections.AST query) throws antlr.SemanticException
antlr.SemanticException
protected void postProcessUpdate(antlr.collections.AST update) throws antlr.SemanticException
antlr.SemanticException
protected void postProcessDelete(antlr.collections.AST delete) throws antlr.SemanticException
antlr.SemanticException
protected void postProcessInsert(antlr.collections.AST insert) throws antlr.SemanticException
antlr.SemanticException
protected void beforeSelectClause() throws antlr.SemanticException
antlr.SemanticException
protected void processIndex(antlr.collections.AST indexOp) throws antlr.SemanticException
antlr.SemanticException
protected void processConstant(antlr.collections.AST constant) throws antlr.SemanticException
antlr.SemanticException
protected void processBoolean(antlr.collections.AST constant) throws antlr.SemanticException
antlr.SemanticException
protected void processNumericLiteral(antlr.collections.AST literal) throws antlr.SemanticException
antlr.SemanticException
protected void resolve(antlr.collections.AST node) throws antlr.SemanticException
antlr.SemanticException
protected void resolveSelectExpression(antlr.collections.AST dotNode) throws antlr.SemanticException
antlr.SemanticException
protected void processFunction(antlr.collections.AST functionCall, boolean inSelect) throws antlr.SemanticException
antlr.SemanticException
protected void processCastFunction(antlr.collections.AST functionCall, boolean inSelect) throws antlr.SemanticException
antlr.SemanticException
protected void processAggregation(antlr.collections.AST node, boolean inSelect) throws antlr.SemanticException
antlr.SemanticException
protected void processConstructor(antlr.collections.AST constructor) throws antlr.SemanticException
antlr.SemanticException
protected antlr.collections.AST generateNamedParameter(antlr.collections.AST delimiterNode, antlr.collections.AST nameNode) throws antlr.SemanticException
antlr.SemanticException
protected antlr.collections.AST generatePositionalParameter(antlr.collections.AST inputNode) throws antlr.SemanticException
antlr.SemanticException
protected void lookupAlias(antlr.collections.AST ident) throws antlr.SemanticException
antlr.SemanticException
protected void setAlias(antlr.collections.AST selectExpr, antlr.collections.AST ident)
protected boolean isOrderExpressionResultVariableRef(antlr.collections.AST ident) throws antlr.SemanticException
antlr.SemanticException
protected void handleResultVariableRef(antlr.collections.AST resultVariableRef) throws antlr.SemanticException
antlr.SemanticException
protected antlr.collections.AST lookupProperty(antlr.collections.AST dot, boolean root, boolean inSelect) throws antlr.SemanticException
antlr.SemanticException
protected boolean isNonQualifiedPropertyRef(antlr.collections.AST ident)
protected antlr.collections.AST lookupNonQualifiedProperty(antlr.collections.AST property) throws antlr.SemanticException
antlr.SemanticException
protected void setImpliedJoinType(int joinType)
protected antlr.collections.AST createIntoClause(String path, antlr.collections.AST propertySpec) throws antlr.SemanticException
antlr.SemanticException
protected void prepareVersioned(antlr.collections.AST updateNode, antlr.collections.AST versionedNode) throws antlr.SemanticException
antlr.SemanticException
protected void prepareLogicOperator(antlr.collections.AST operator) throws antlr.SemanticException
antlr.SemanticException
protected void prepareArithmeticOperator(antlr.collections.AST operator) throws antlr.SemanticException
antlr.SemanticException
protected void processMapComponentReference(antlr.collections.AST node) throws antlr.SemanticException
antlr.SemanticException
protected void validateMapPropertyExpression(antlr.collections.AST node) throws antlr.SemanticException
antlr.SemanticException
public final void statement(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void selectStatement(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void updateStatement(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void deleteStatement(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void insertStatement(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void query(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void fromClause(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void setClause(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void whereClause(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void intoClause(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final String path(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void insertablePropertySpec(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void assignment(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void propertyRef(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void newValue(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void expr(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void selectClause(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void groupClause(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void orderClause(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void orderExprs(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void orderExpr(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void nullOrdering(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void nullPrecedence(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void resultVariableRef(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void identifier(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void logicalExpr(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void selectExprList(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void selectExpr(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void aliasedSelectExpr(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void aliasRef(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void constructor(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void functionCall(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void count(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void collectionFunction(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void literal(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void arithmeticExpr(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void parameter(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void aggregateExpr(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void fromElementList(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void fromElement(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void joinElement(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final int joinType(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void pathAsIdent(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void withClause(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void comparisonExpr(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void exprOrSubquery(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void inRhs(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void collectionFunctionOrSubselect(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void addrExpr(antlr.collections.AST _t, boolean root) throws antlr.RecognitionException
antlr.RecognitionException
public final void constant(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void caseExpr(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void simpleCaseExpression(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void searchedCaseExpression(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void expressionOrSubQuery(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void simpleCaseWhenClause(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void elseClause(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void searchedCaseWhenClause(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void addrExprLhs(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void propertyName(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void mapComponentReference(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void propertyRefLhs(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void mapPropertyExpression(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
public final void numericInteger(antlr.collections.AST _t) throws antlr.RecognitionException
antlr.RecognitionException
Copyright © 2016 JBoss by Red Hat. All rights reserved.