From 7a8f54ee8416e0d26f98d47a34114a4ea3795ac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E9=93=81?= Date: Tue, 6 Oct 2020 18:52:01 +0800 Subject: [PATCH] refactor for jdk8 default method --- .../sql/repository/SchemaResolveVisitor.java | 151 ++- .../SchemaResolveVisitorFactory.java | 923 +----------------- 2 files changed, 151 insertions(+), 923 deletions(-) diff --git a/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitor.java b/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitor.java index 5d7a2b97b5..1f8725e916 100644 --- a/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitor.java +++ b/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitor.java @@ -17,9 +17,16 @@ package com.alibaba.druid.sql.repository; import com.alibaba.druid.sql.ast.SQLDeclareItem; import com.alibaba.druid.sql.ast.SQLObject; -import com.alibaba.druid.sql.ast.statement.SQLTableSource; +import com.alibaba.druid.sql.ast.SQLOver; +import com.alibaba.druid.sql.ast.SQLParameter; +import com.alibaba.druid.sql.ast.expr.*; +import com.alibaba.druid.sql.ast.statement.*; import com.alibaba.druid.sql.visitor.SQLASTVisitor; +import static com.alibaba.druid.sql.repository.SchemaResolveVisitorFactory.resolve; +import static com.alibaba.druid.sql.repository.SchemaResolveVisitorFactory.resolveIdent; +import static com.alibaba.druid.sql.repository.SchemaResolveVisitorFactory.resolveUnion; + import java.util.HashMap; import java.util.Map; @@ -140,4 +147,146 @@ public interface SchemaResolveVisitor extends SQLASTVisitor { return null; } } + + default boolean visit(SQLSelectStatement x) { + resolve(this, x.getSelect()); + return false; + } + + default boolean visit(SQLSelect x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLWithSubqueryClause x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLIfStatement x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLCreateFunctionStatement x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLExprTableSource x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLSelectQueryBlock x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLForeignKeyImpl x) { + resolve(this, x); + return false; + } + + + default boolean visit(SQLIdentifierExpr x) { + resolveIdent(this, x); + return true; + } + + default boolean visit(SQLPropertyExpr x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLBinaryOpExpr x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLAllColumnExpr x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLCreateTableStatement x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLUpdateStatement x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLDeleteStatement x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLAlterTableStatement x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLInsertStatement x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLParameter x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLDeclareItem x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLOver x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLMethodInvokeExpr x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLUnionQuery x) { + resolveUnion(this, x); + return false; + } + + default boolean visit(SQLMergeStatement x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLCreateProcedureStatement x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLBlockStatement x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLReplaceStatement x) { + resolve(this, x); + return false; + } + + default boolean visit(SQLCastExpr x) { + x.getExpr() + .accept(this); + return true; + } + + default boolean visit(SQLFetchStatement x) { + resolve(this, x); + return false; + } } diff --git a/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java b/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java index a67ce711dc..87bd584131 100644 --- a/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java +++ b/src/main/java/com/alibaba/druid/sql/repository/SchemaResolveVisitorFactory.java @@ -62,11 +62,6 @@ class SchemaResolveVisitorFactory { this.options = options; } - public boolean visit(SQLSelectStatement x) { - resolve(this, x.getSelect()); - return false; - } - public boolean visit(MySqlRepeatStatement x) { return true; } @@ -87,21 +82,11 @@ class SchemaResolveVisitorFactory { return false; } - public boolean visit(SQLExprTableSource x) { - resolve(this, x); - return false; - } - public boolean visit(MySqlSelectQueryBlock x) { resolve(this, x); return false; } - public boolean visit(SQLSelectQueryBlock x) { - resolve(this, x); - return false; - } - public boolean visit(SQLSelectItem x) { SQLExpr expr = x.getExpr(); if (expr instanceof SQLIdentifierExpr) { @@ -117,26 +102,6 @@ class SchemaResolveVisitorFactory { return true; } - public boolean visit(SQLIdentifierExpr x) { - resolveIdent(this, x); - return true; - } - - public boolean visit(SQLPropertyExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLBinaryOpExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLAllColumnExpr x) { - resolve(this, x); - return false; - } - public boolean visit(MySqlCreateTableStatement x) { resolve(this, x); SQLExprTableSource like = x.getLike(); @@ -156,87 +121,11 @@ class SchemaResolveVisitorFactory { return false; } - public boolean visit(SQLSelect x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLWithSubqueryClause x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLAlterTableStatement x) { - resolve(this, x); - return false; - } - public boolean visit(MySqlInsertStatement x) { resolve(this, x); return false; } - public boolean visit(SQLInsertStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLReplaceStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLMergeStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLCreateProcedureStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLCreateViewStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLBlockStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLParameter x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLDeclareItem x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLOver x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLMethodInvokeExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLUnionQuery x) { - resolveUnion(this, x); - return false; - } - - public boolean visit(SQLCastExpr x) { - x.getExpr() - .accept(this); - return true; - } - @Override public boolean isEnabled(Option option) { return (options & option.mask) != 0; @@ -277,26 +166,6 @@ class SchemaResolveVisitorFactory { this.options = options; } - public boolean visit(SQLForeignKeyImpl x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelectStatement x) { - resolve(this, x.getSelect()); - return false; - } - - public boolean visit(SQLExprTableSource x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelectQueryBlock x) { - resolve(this, x); - return false; - } - public boolean visit(DB2SelectQueryBlock x) { resolve(this, x); return false; @@ -327,96 +196,6 @@ class SchemaResolveVisitorFactory { return true; } - public boolean visit(SQLPropertyExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLBinaryOpExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLAllColumnExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLCreateTableStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLUpdateStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLDeleteStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelect x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLWithSubqueryClause x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLAlterTableStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLInsertStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLMergeStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLCreateProcedureStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLBlockStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLParameter x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLDeclareItem x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLOver x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLMethodInvokeExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLUnionQuery x) { - resolveUnion(this, x); - return false; - } - @Override public boolean isEnabled(Option option) { return (options & option.mask) != 0; @@ -458,11 +237,6 @@ class SchemaResolveVisitorFactory { this.options = options; } - public boolean visit(SQLSelectStatement x) { - resolve(this, x.getSelect()); - return false; - } - public boolean visit(OracleCreatePackageStatement x) { Context ctx = createContext(x); @@ -516,31 +290,11 @@ class SchemaResolveVisitorFactory { return false; } - public boolean visit(SQLIfStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLCreateFunctionStatement x) { - resolve(this, x); - return false; - } - public boolean visit(OracleSelectTableReference x) { resolve(this, x); return false; } - public boolean visit(SQLExprTableSource x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelectQueryBlock x) { - resolve(this, x); - return false; - } - public boolean visit(OracleSelectQueryBlock x) { resolve(this, x); return false; @@ -570,66 +324,21 @@ class SchemaResolveVisitorFactory { return true; } - public boolean visit(SQLPropertyExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLBinaryOpExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLAllColumnExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLCreateTableStatement x) { - resolve(this, x); - return false; - } - public boolean visit(OracleCreateTableStatement x) { resolve(this, x); return false; } - public boolean visit(SQLUpdateStatement x) { - resolve(this, x); - return false; - } - public boolean visit(OracleUpdateStatement x) { resolve(this, x); return false; } - public boolean visit(SQLDeleteStatement x) { - resolve(this, x); - return false; - } - public boolean visit(OracleDeleteStatement x) { resolve(this, x); return false; } - public boolean visit(SQLSelect x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLWithSubqueryClause x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLInsertStatement x) { - resolve(this, x); - return false; - } - public boolean visit(OracleMultiInsertStatement x) { Context ctx = createContext(x); @@ -663,56 +372,6 @@ class SchemaResolveVisitorFactory { return false; } - public boolean visit(SQLAlterTableStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLMergeStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLCreateProcedureStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLBlockStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLParameter x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLDeclareItem x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLOver x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLMethodInvokeExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLUnionQuery x) { - resolveUnion(this, x); - return false; - } - - public boolean visit(SQLFetchStatement x) { - resolve(this, x); - return false; - } - @Override public boolean isEnabled(Option option) { return (options & option.mask) != 0; @@ -753,26 +412,6 @@ class SchemaResolveVisitorFactory { this.options = options; } - public boolean visit(SQLForeignKeyImpl x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelectStatement x) { - resolve(this, x.getSelect()); - return false; - } - - public boolean visit(SQLExprTableSource x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelectQueryBlock x) { - resolve(this, x); - return false; - } - public boolean visit(OdpsSelectQueryBlock x) { resolve(this, x); return false; @@ -793,56 +432,11 @@ class SchemaResolveVisitorFactory { return true; } - public boolean visit(SQLIdentifierExpr x) { - resolveIdent(this, x); - return true; - } - - public boolean visit(SQLPropertyExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLBinaryOpExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLAllColumnExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLCreateTableStatement x) { - resolve(this, x); - return false; - } - public boolean visit(OdpsCreateTableStatement x) { resolve(this, x); return false; } - public boolean visit(SQLUpdateStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLDeleteStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelect x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLWithSubqueryClause x) { - resolve(this, x); - return false; - } - public boolean visit(HiveInsert x) { Context ctx = createContext(x); @@ -868,61 +462,11 @@ class SchemaResolveVisitorFactory { return false; } - public boolean visit(SQLInsertStatement x) { - resolve(this, x); - return false; - } - public boolean visit(HiveInsertStatement x) { resolve(this, x); return false; } - public boolean visit(SQLAlterTableStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLMergeStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLCreateProcedureStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLBlockStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLParameter x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLDeclareItem x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLOver x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLMethodInvokeExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLUnionQuery x) { - resolveUnion(this, x); - return false; - } - @Override public boolean isEnabled(Option option) { return (options & option.mask) != 0; @@ -963,26 +507,6 @@ class SchemaResolveVisitorFactory { this.options = options; } - public boolean visit(SQLForeignKeyImpl x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelectStatement x) { - resolve(this, x.getSelect()); - return false; - } - - public boolean visit(SQLExprTableSource x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelectQueryBlock x) { - resolve(this, x); - return false; - } - public boolean visit(OdpsSelectQueryBlock x) { resolve(this, x); return false; @@ -1003,56 +527,11 @@ class SchemaResolveVisitorFactory { return true; } - public boolean visit(SQLIdentifierExpr x) { - resolveIdent(this, x); - return true; - } - - public boolean visit(SQLPropertyExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLBinaryOpExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLAllColumnExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLCreateTableStatement x) { - resolve(this, x); - return false; - } - public boolean visit(HiveCreateTableStatement x) { resolve(this, x); return false; } - public boolean visit(SQLUpdateStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLDeleteStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelect x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLWithSubqueryClause x) { - resolve(this, x); - return false; - } - public boolean visit(HiveInsert x) { Context ctx = createContext(x); @@ -1078,61 +557,6 @@ class SchemaResolveVisitorFactory { return false; } - public boolean visit(SQLInsertStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(HiveInsertStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLAlterTableStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLMergeStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLCreateProcedureStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLBlockStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLParameter x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLDeclareItem x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLOver x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLMethodInvokeExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLUnionQuery x) { - resolveUnion(this, x); - return false; - } - @Override public boolean isEnabled(Option option) { return (options & option.mask) != 0; @@ -1173,26 +597,6 @@ class SchemaResolveVisitorFactory { this.options = options; } - public boolean visit(SQLForeignKeyImpl x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelectStatement x) { - resolve(this, x.getSelect()); - return false; - } - - public boolean visit(SQLExprTableSource x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelectQueryBlock x) { - resolve(this, x); - return false; - } - public boolean visit(PGSelectQueryBlock x) { resolve(this, x); return false; @@ -1234,41 +638,11 @@ class SchemaResolveVisitorFactory { return true; } - public boolean visit(SQLPropertyExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLBinaryOpExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLAllColumnExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLCreateTableStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLUpdateStatement x) { - resolve(this, x); - return false; - } - public boolean visit(PGUpdateStatement x) { resolve(this, x); return false; } - public boolean visit(SQLDeleteStatement x) { - resolve(this, x); - return false; - } - public boolean visit(PGDeleteStatement x) { resolve(this, x); return false; @@ -1281,71 +655,11 @@ class SchemaResolveVisitorFactory { return false; } - public boolean visit(SQLSelect x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLWithSubqueryClause x) { - resolve(this, x); - return false; - } - public boolean visit(PGInsertStatement x) { resolve(this, x); return false; } - public boolean visit(SQLInsertStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLAlterTableStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLMergeStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLCreateProcedureStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLBlockStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLParameter x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLDeclareItem x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLOver x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLMethodInvokeExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLUnionQuery x) { - resolveUnion(this, x); - return false; - } - @Override public boolean isEnabled(Option option) { return (options & option.mask) != 0; @@ -1386,26 +700,6 @@ class SchemaResolveVisitorFactory { this.options = options; } - public boolean visit(SQLForeignKeyImpl x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelectStatement x) { - resolve(this, x.getSelect()); - return false; - } - - public boolean visit(SQLExprTableSource x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelectQueryBlock x) { - resolve(this, x); - return false; - } - public boolean visit(SQLServerSelectQueryBlock x) { resolve(this, x); return false; @@ -1426,111 +720,16 @@ class SchemaResolveVisitorFactory { return true; } - public boolean visit(SQLIdentifierExpr x) { - resolveIdent(this, x); - return true; - } - - public boolean visit(SQLPropertyExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLBinaryOpExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLAllColumnExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLCreateTableStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLUpdateStatement x) { - resolve(this, x); - return false; - } - public boolean visit(SQLServerUpdateStatement x) { resolve(this, x); return false; } - public boolean visit(SQLDeleteStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelect x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLWithSubqueryClause x) { - resolve(this, x); - return false; - } - public boolean visit(SQLServerInsertStatement x) { resolve(this, x); return false; } - public boolean visit(SQLInsertStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLAlterTableStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLMergeStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLCreateProcedureStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLBlockStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLParameter x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLDeclareItem x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLOver x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLMethodInvokeExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLUnionQuery x) { - resolveUnion(this, x); - return false; - } - @Override public boolean isEnabled(Option option) { return (options & option.mask) != 0; @@ -1571,26 +770,6 @@ class SchemaResolveVisitorFactory { this.options = options; } - public boolean visit(SQLForeignKeyImpl x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelectStatement x) { - resolve(this, x.getSelect()); - return false; - } - - public boolean visit(SQLExprTableSource x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelectQueryBlock x) { - resolve(this, x); - return false; - } - public boolean visit(SQLSelectItem x) { SQLExpr expr = x.getExpr(); if (expr instanceof SQLIdentifierExpr) { @@ -1606,106 +785,6 @@ class SchemaResolveVisitorFactory { return true; } - public boolean visit(SQLIdentifierExpr x) { - resolveIdent(this, x); - return true; - } - - public boolean visit(SQLPropertyExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLBinaryOpExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLAllColumnExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLCreateTableStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLUpdateStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLDeleteStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLSelect x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLWithSubqueryClause x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLInsertStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLAlterTableStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLMergeStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLCreateProcedureStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLBlockStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLParameter x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLDeclareItem x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLOver x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLReplaceStatement x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLMethodInvokeExpr x) { - resolve(this, x); - return false; - } - - public boolean visit(SQLUnionQuery x) { - resolveUnion(this, x); - return false; - } - @Override public boolean isEnabled(Option option) { return (options & option.mask) != 0; @@ -2272,7 +1351,7 @@ class SchemaResolveVisitorFactory { } } - private static SQLTableSource unwrapAlias(SchemaResolveVisitor.Context ctx, SQLTableSource tableSource, long identHash) { + static SQLTableSource unwrapAlias(SchemaResolveVisitor.Context ctx, SQLTableSource tableSource, long identHash) { if (ctx == null) { return tableSource; }