类 HqlSqlBaseWalker

  • 所有已实现的接口:
    HqlSqlTokenTypes
    直接已知子类:
    HqlSqlWalker

    public class HqlSqlBaseWalker
    extends antlr.TreeParser
    implements HqlSqlTokenTypes
    Hibernate Query Language to SQL Tree Transform.
    This is a tree grammar that transforms an HQL AST into a intermediate SQL AST with bindings to Hibernate interfaces (Queryable, etc.). The Hibernate specific methods are all implemented in the HqlSqlWalker subclass, allowing the ANTLR-generated class to have only the minimum dependencies on the Hibernate code base. This will also allow the sub-class to be easily edited using an IDE (most IDE's don't support ANTLR).
    NOTE: The java class is generated from hql-sql.g by ANTLR. DO NOT EDIT THE GENERATED JAVA SOURCE CODE.
    作者:
    Joshua Davis (joshua@hibernate.org)
    • 字段详细资料

      • _tokenNames

        public static final String[] _tokenNames
      • _tokenSet_0

        public static final antlr.collections.impl.BitSet _tokenSet_0
      • _tokenSet_1

        public static final antlr.collections.impl.BitSet _tokenSet_1
    • 构造器详细资料

      • HqlSqlBaseWalker

        public HqlSqlBaseWalker()
    • 方法详细资料

      • isSubQuery

        public final boolean isSubQuery()
      • isInFrom

        public final boolean isInFrom()
      • isInFunctionCall

        public final boolean isInFunctionCall()
      • isInSelect

        public final boolean isInSelect()
      • isInCase

        public final boolean isInCase()
      • isInCount

        public final boolean isInCount()
      • isInCountDistinct

        public final boolean isInCountDistinct()
      • getStatementType

        public final int getStatementType()
      • getCurrentClauseType

        public final int getCurrentClauseType()
      • getCurrentTopLevelClauseType

        public final int getCurrentTopLevelClauseType()
      • getCurrentStatementType

        public final int getCurrentStatementType()
      • isComparativeExpressionClause

        public final boolean isComparativeExpressionClause()
      • isSelectStatement

        public final boolean isSelectStatement()
      • evaluateAssignment

        protected void evaluateAssignment​(antlr.collections.AST eq)
                                   throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • prepareFromClauseInputTree

        protected void prepareFromClauseInputTree​(antlr.collections.AST fromClauseInput)
        Pre-process the from clause input tree.
      • pushFromClause

        protected void pushFromClause​(antlr.collections.AST fromClause,
                                      antlr.collections.AST inputFromNode)
        Sets the current 'FROM' context.
      • createFromElement

        protected antlr.collections.AST createFromElement​(String path,
                                                          antlr.collections.AST alias,
                                                          antlr.collections.AST propertyFetch)
                                                   throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • createFromJoinElement

        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
      • createFromFilterElement

        protected antlr.collections.AST createFromFilterElement​(antlr.collections.AST filterEntity,
                                                                antlr.collections.AST alias)
                                                         throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • processQuery

        protected void processQuery​(antlr.collections.AST select,
                                    antlr.collections.AST query)
                             throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • postProcessUpdate

        protected void postProcessUpdate​(antlr.collections.AST update)
                                  throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • postProcessDelete

        protected void postProcessDelete​(antlr.collections.AST delete)
                                  throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • postProcessInsert

        protected void postProcessInsert​(antlr.collections.AST insert)
                                  throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • beforeSelectClause

        protected void beforeSelectClause()
                                   throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • processIndex

        protected void processIndex​(antlr.collections.AST indexOp)
                             throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • processConstant

        protected void processConstant​(antlr.collections.AST constant)
                                throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • processBoolean

        protected void processBoolean​(antlr.collections.AST constant)
                               throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • processNumericLiteral

        protected void processNumericLiteral​(antlr.collections.AST literal)
                                      throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • resolve

        protected void resolve​(antlr.collections.AST node)
                        throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • resolve

        protected void resolve​(antlr.collections.AST node,
                               antlr.collections.AST predicateNode)
                        throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • resolveSelectExpression

        protected void resolveSelectExpression​(antlr.collections.AST dotNode)
                                        throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • processFunction

        protected void processFunction​(antlr.collections.AST functionCall,
                                       boolean inSelect)
                                throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • processCastFunction

        protected void processCastFunction​(antlr.collections.AST functionCall,
                                           boolean inSelect)
                                    throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • processAggregation

        protected void processAggregation​(antlr.collections.AST node,
                                          boolean inSelect)
                                   throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • processConstructor

        protected void processConstructor​(antlr.collections.AST constructor)
                                   throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • generateNamedParameter

        protected antlr.collections.AST generateNamedParameter​(antlr.collections.AST delimiterNode,
                                                               antlr.collections.AST nameNode)
                                                        throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • generatePositionalParameter

        protected antlr.collections.AST generatePositionalParameter​(antlr.collections.AST delimiterNode,
                                                                    antlr.collections.AST numberNode)
                                                             throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • lookupAlias

        protected void lookupAlias​(antlr.collections.AST ident)
                            throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • setAlias

        protected void setAlias​(antlr.collections.AST selectExpr,
                                antlr.collections.AST ident)
      • isOrderExpressionResultVariableRef

        protected boolean isOrderExpressionResultVariableRef​(antlr.collections.AST ident)
                                                      throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • isGroupExpressionResultVariableRef

        protected boolean isGroupExpressionResultVariableRef​(antlr.collections.AST ident)
                                                      throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • handleResultVariableRef

        protected void handleResultVariableRef​(antlr.collections.AST resultVariableRef)
                                        throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • lookupProperty

        protected antlr.collections.AST lookupProperty​(antlr.collections.AST dot,
                                                       boolean root,
                                                       boolean inSelect)
                                                throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • isNonQualifiedPropertyRef

        protected boolean isNonQualifiedPropertyRef​(antlr.collections.AST ident)
      • lookupNonQualifiedProperty

        protected antlr.collections.AST lookupNonQualifiedProperty​(antlr.collections.AST property)
                                                            throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • setImpliedJoinType

        protected void setImpliedJoinType​(int joinType)
      • createIntoClause

        protected antlr.collections.AST createIntoClause​(String path,
                                                         antlr.collections.AST propertySpec)
                                                  throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • prepareVersioned

        protected void prepareVersioned​(antlr.collections.AST updateNode,
                                        antlr.collections.AST versionedNode)
                                 throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • prepareLogicOperator

        protected void prepareLogicOperator​(antlr.collections.AST operator)
                                     throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • prepareArithmeticOperator

        protected void prepareArithmeticOperator​(antlr.collections.AST operator)
                                          throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • processMapComponentReference

        protected void processMapComponentReference​(antlr.collections.AST node)
                                             throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • validateMapPropertyExpression

        protected void validateMapPropertyExpression​(antlr.collections.AST node)
                                              throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • finishFromClause

        protected void finishFromClause​(antlr.collections.AST fromClause)
                                 throws antlr.SemanticException
        抛出:
        antlr.SemanticException
      • statement

        public final void statement​(antlr.collections.AST _t)
                             throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • selectStatement

        public final void selectStatement​(antlr.collections.AST _t)
                                   throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • updateStatement

        public final void updateStatement​(antlr.collections.AST _t)
                                   throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • deleteStatement

        public final void deleteStatement​(antlr.collections.AST _t)
                                   throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • insertStatement

        public final void insertStatement​(antlr.collections.AST _t)
                                   throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • query

        public final void query​(antlr.collections.AST _t)
                         throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • fromClause

        public final void fromClause​(antlr.collections.AST _t)
                              throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • setClause

        public final void setClause​(antlr.collections.AST _t)
                             throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • whereClause

        public final void whereClause​(antlr.collections.AST _t)
                               throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • intoClause

        public final void intoClause​(antlr.collections.AST _t)
                              throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • path

        public final String path​(antlr.collections.AST _t)
                          throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • insertablePropertySpec

        public final void insertablePropertySpec​(antlr.collections.AST _t)
                                          throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • assignment

        public final void assignment​(antlr.collections.AST _t)
                              throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • propertyRef

        public final void propertyRef​(antlr.collections.AST _t)
                               throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • newValue

        public final void newValue​(antlr.collections.AST _t)
                            throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • expr

        public final void expr​(antlr.collections.AST _t,
                               antlr.collections.AST predicateNode)
                        throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • selectClause

        public final void selectClause​(antlr.collections.AST _t)
                                throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • groupClause

        public final void groupClause​(antlr.collections.AST _t)
                               throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • orderClause

        public final void orderClause​(antlr.collections.AST _t)
                               throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • orderExprs

        public final void orderExprs​(antlr.collections.AST _t)
                              throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • orderExpr

        public final void orderExpr​(antlr.collections.AST _t)
                             throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • nullOrdering

        public final void nullOrdering​(antlr.collections.AST _t)
                                throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • nullPrecedence

        public final void nullPrecedence​(antlr.collections.AST _t)
                                  throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • resultVariableRef

        public final void resultVariableRef​(antlr.collections.AST _t)
                                     throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • identifier

        public final void identifier​(antlr.collections.AST _t)
                              throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • logicalExpr

        public final void logicalExpr​(antlr.collections.AST _t)
                               throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • selectExprList

        public final void selectExprList​(antlr.collections.AST _t)
                                  throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • selectExpr

        public final void selectExpr​(antlr.collections.AST _t)
                              throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • aliasedSelectExpr

        public final void aliasedSelectExpr​(antlr.collections.AST _t)
                                     throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • aliasRef

        public final void aliasRef​(antlr.collections.AST _t)
                            throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • constructor

        public final void constructor​(antlr.collections.AST _t)
                               throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • functionCall

        public final void functionCall​(antlr.collections.AST _t)
                                throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • count

        public final void count​(antlr.collections.AST _t)
                         throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • collectionFunction

        public final void collectionFunction​(antlr.collections.AST _t)
                                      throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • constant

        public final void constant​(antlr.collections.AST _t)
                            throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • arithmeticExpr

        public final void arithmeticExpr​(antlr.collections.AST _t,
                                         antlr.collections.AST predicateNode)
                                  throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • parameter

        public final void parameter​(antlr.collections.AST _t)
                             throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • aggregateExpr

        public final void aggregateExpr​(antlr.collections.AST _t)
                                 throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • fromElementList

        public final void fromElementList​(antlr.collections.AST _t)
                                   throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • fromElement

        public final void fromElement​(antlr.collections.AST _t)
                               throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • joinElement

        public final void joinElement​(antlr.collections.AST _t)
                               throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • joinType

        public final int joinType​(antlr.collections.AST _t)
                           throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • pathAsIdent

        public final void pathAsIdent​(antlr.collections.AST _t)
                               throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • withClause

        public final void withClause​(antlr.collections.AST _t)
                              throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • comparisonExpr

        public final void comparisonExpr​(antlr.collections.AST _t)
                                  throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • exprOrSubquery

        public final void exprOrSubquery​(antlr.collections.AST _t,
                                         antlr.collections.AST predicateNode)
                                  throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • inRhs

        public final void inRhs​(antlr.collections.AST _t,
                                antlr.collections.AST predicateNode)
                         throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • collectionFunctionOrSubselect

        public final void collectionFunctionOrSubselect​(antlr.collections.AST _t)
                                                 throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • addrExpr

        public final void addrExpr​(antlr.collections.AST _t,
                                   boolean root)
                            throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • caseExpr

        public final void caseExpr​(antlr.collections.AST _t,
                                   antlr.collections.AST predicateNode)
                            throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • simpleCaseExpression

        public final void simpleCaseExpression​(antlr.collections.AST _t,
                                               antlr.collections.AST predicateNode)
                                        throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • searchedCaseExpression

        public final void searchedCaseExpression​(antlr.collections.AST _t,
                                                 antlr.collections.AST predicateNode)
                                          throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • expressionOrSubQuery

        public final void expressionOrSubQuery​(antlr.collections.AST _t,
                                               antlr.collections.AST predicateNode)
                                        throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • simpleCaseWhenClause

        public final void simpleCaseWhenClause​(antlr.collections.AST _t,
                                               antlr.collections.AST predicateNode,
                                               antlr.collections.AST superPredicateNode)
                                        throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • elseClause

        public final void elseClause​(antlr.collections.AST _t,
                                     antlr.collections.AST predicateNode)
                              throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • searchedCaseWhenClause

        public final void searchedCaseWhenClause​(antlr.collections.AST _t,
                                                 antlr.collections.AST predicateNode)
                                          throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • literal

        public final void literal​(antlr.collections.AST _t)
                           throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • addrExprLhs

        public final void addrExprLhs​(antlr.collections.AST _t)
                               throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • propertyName

        public final void propertyName​(antlr.collections.AST _t)
                                throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • mapComponentReference

        public final void mapComponentReference​(antlr.collections.AST _t)
                                         throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • propertyRefLhs

        public final void propertyRefLhs​(antlr.collections.AST _t)
                                  throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • mapPropertyExpression

        public final void mapPropertyExpression​(antlr.collections.AST _t)
                                         throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException
      • numericInteger

        public final void numericInteger​(antlr.collections.AST _t)
                                  throws antlr.RecognitionException
        抛出:
        antlr.RecognitionException