类 SqlASTFactory

  • 所有已实现的接口:
    HqlSqlTokenTypes

    public class SqlASTFactory
    extends antlr.ASTFactory
    implements HqlSqlTokenTypes
    Custom AST factory the intermediate tree that causes ANTLR to create specialized AST nodes, given the AST node type (from HqlSqlTokenTypes). HqlSqlWalker registers this factory with itself when it is initialized.
    作者:
    Joshua
    • 构造器详细资料

      • SqlASTFactory

        public SqlASTFactory​(HqlSqlWalker walker)
        Create factory with a specific mapping from token type to Java AST node type. Your subclasses of ASTFactory can override and reuse the map stuff.
    • 方法详细资料

      • getASTNodeType

        public Class getASTNodeType​(int tokenType)
        Returns the class for a given token type (a.k.a. AST node type).
        覆盖:
        getASTNodeType 在类中 antlr.ASTFactory
        参数:
        tokenType - The token type.
        返回:
        Class - The AST node class to instantiate.
      • createUsingCtor

        protected antlr.collections.AST createUsingCtor​(antlr.Token token,
                                                        String className)
        覆盖:
        createUsingCtor 在类中 antlr.ASTFactory
      • create

        protected antlr.collections.AST create​(Class c)
        Actually instantiate the AST node.
        覆盖:
        create 在类中 antlr.ASTFactory
        参数:
        c - The class to instantiate.
        返回:
        The instantiated and initialized node.