未验证 提交 a832d65f 编写于 作者: L Liang Zhang 提交者: GitHub

Add SQLTypeVisitor and SQLOperationVisitor (#7923)

* Update release guide for diff

* Add SQLTypeVisitor and SQLOperationVisitor
上级 a4a7523e
......@@ -19,7 +19,7 @@ package org.apache.shardingsphere.rdl.parser.sql.parser;
import org.antlr.v4.runtime.TokenStream;
import org.apache.shardingsphere.rdl.parser.autogen.ShardingSphereStatementParser;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.parser.SQLParser;
import org.apache.shardingsphere.sql.parser.core.ParseASTNode;
......
......@@ -31,7 +31,7 @@ import org.apache.shardingsphere.rdl.parser.statement.rdl.CreateDataSourcesState
import org.apache.shardingsphere.rdl.parser.statement.rdl.CreateShardingRuleStatement;
import org.apache.shardingsphere.rdl.parser.statement.rdl.DataSourceConnectionSegment;
import org.apache.shardingsphere.rdl.parser.statement.rdl.TableRuleSegment;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.sql.common.value.collection.CollectionValue;
import java.util.Collection;
......
......@@ -19,7 +19,7 @@ package org.apache.shardingsphere.rdl.parser.statement.rdl;
import lombok.Getter;
import lombok.Setter;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
/**
* Data source connection segment.
......
......@@ -19,7 +19,7 @@ package org.apache.shardingsphere.rdl.parser.statement.rdl;
import lombok.Getter;
import lombok.Setter;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import java.util.Collection;
......
......@@ -18,7 +18,7 @@
package org.apache.shardingsphere.sql.parser.mysql.parser;
import org.antlr.v4.runtime.TokenStream;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.parser.SQLParser;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser;
import org.apache.shardingsphere.sql.parser.core.ParseASTNode;
......
......@@ -18,8 +18,8 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitorFacadeFactory;
import org.apache.shardingsphere.sql.parser.api.visitor.format.facade.FormatSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.facade.StatementSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.format.SQLFormatVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitorFacade;
import org.apache.shardingsphere.sql.parser.mysql.visitor.format.facade.MySQLFormatSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.mysql.visitor.statement.facade.MySQLStatementSQLVisitorFacade;
......@@ -29,12 +29,12 @@ import org.apache.shardingsphere.sql.parser.mysql.visitor.statement.facade.MySQL
public final class MySQLSQLVisitorFacadeFactory implements SQLVisitorFacadeFactory {
@Override
public Class<? extends StatementSQLVisitorFacade> getStatementSQLVisitorFacadeClass() {
public Class<? extends SQLStatementVisitorFacade> getStatementSQLVisitorFacadeClass() {
return MySQLStatementSQLVisitorFacade.class;
}
@Override
public Class<? extends FormatSQLVisitorFacade> getFormatSQLVisitorFacadeClass() {
public Class<? extends SQLFormatVisitorFacade> getFormatSQLVisitorFacadeClass() {
return MySQLFormatSQLVisitorFacade.class;
}
}
......@@ -17,13 +17,13 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.format.facade;
import org.apache.shardingsphere.sql.parser.api.visitor.format.facade.FormatSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DALFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DCLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DDLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DMLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.RLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.TCLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.format.SQLFormatVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.RLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.mysql.visitor.format.impl.MySQLDALFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.mysql.visitor.format.impl.MySQLDCLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.mysql.visitor.format.impl.MySQLDDLFormatSQLVisitor;
......@@ -34,35 +34,35 @@ import org.apache.shardingsphere.sql.parser.mysql.visitor.format.impl.MySQLTCLFo
/**
* Format SQL Visitor facade for MySQL.
*/
public final class MySQLFormatSQLVisitorFacade implements FormatSQLVisitorFacade {
public final class MySQLFormatSQLVisitorFacade implements SQLFormatVisitorFacade {
@Override
public Class<? extends DMLFormatSQLVisitor> getDMLVisitorClass() {
public Class<? extends DMLSQLVisitor> getDMLVisitorClass() {
return MySQLDMLFormatSQLVisitor.class;
}
@Override
public Class<? extends DDLFormatSQLVisitor> getDDLVisitorClass() {
public Class<? extends DDLSQLVisitor> getDDLVisitorClass() {
return MySQLDDLFormatSQLVisitor.class;
}
@Override
public Class<? extends TCLFormatSQLVisitor> getTCLVisitorClass() {
public Class<? extends TCLSQLVisitor> getTCLVisitorClass() {
return MySQLTCLFormatSQLVisitor.class;
}
@Override
public Class<? extends DCLFormatSQLVisitor> getDCLVisitorClass() {
public Class<? extends DCLSQLVisitor> getDCLVisitorClass() {
return MySQLDCLFormatSQLVisitor.class;
}
@Override
public Class<? extends DALFormatSQLVisitor> getDALVisitorClass() {
public Class<? extends DALSQLVisitor> getDALVisitorClass() {
return MySQLDALFormatSQLVisitor.class;
}
@Override
public Class<? extends RLFormatSQLVisitor> getRLVisitorClass() {
public Class<? extends RLSQLVisitor> getRLVisitorClass() {
return MySQLRLFormatSQLVisitor.class;
}
}
......@@ -17,10 +17,11 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.format.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DALFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.format.SQLFormatVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
/**
* DAL Format SQL visitor for MySQL.
*/
public final class MySQLDALFormatSQLVisitor extends MySQLFormatSQLVisitor implements DALFormatSQLVisitor {
public final class MySQLDALFormatSQLVisitor extends MySQLFormatSQLVisitor implements DALSQLVisitor, SQLFormatVisitor {
}
......@@ -17,10 +17,11 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.format.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DCLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.format.SQLFormatVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
/**
* DCL Format SQL visitor for MySQL.
*/
public final class MySQLDCLFormatSQLVisitor extends MySQLFormatSQLVisitor implements DCLFormatSQLVisitor {
public final class MySQLDCLFormatSQLVisitor extends MySQLFormatSQLVisitor implements DCLSQLVisitor, SQLFormatVisitor {
}
......@@ -17,10 +17,11 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.format.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DDLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.format.SQLFormatVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
/**
* DDL Format SQL visitor for MySQL.
*/
public final class MySQLDDLFormatSQLVisitor extends MySQLFormatSQLVisitor implements DDLFormatSQLVisitor {
public final class MySQLDDLFormatSQLVisitor extends MySQLFormatSQLVisitor implements DDLSQLVisitor, SQLFormatVisitor {
}
......@@ -17,10 +17,11 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.format.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DMLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.format.SQLFormatVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
/**
* DML Format SQL visitor for MySQL.
*/
public final class MySQLDMLFormatSQLVisitor extends MySQLFormatSQLVisitor implements DMLFormatSQLVisitor {
public final class MySQLDMLFormatSQLVisitor extends MySQLFormatSQLVisitor implements DMLSQLVisitor, SQLFormatVisitor {
}
......@@ -17,10 +17,11 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.format.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.RLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.format.SQLFormatVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.RLSQLVisitor;
/**
* RL Format SQL visitor for MySQL.
*/
public final class MySQLRLFormatSQLVisitor extends MySQLFormatSQLVisitor implements RLFormatSQLVisitor {
public final class MySQLRLFormatSQLVisitor extends MySQLFormatSQLVisitor implements RLSQLVisitor, SQLFormatVisitor {
}
......@@ -17,10 +17,11 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.format.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.TCLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.format.SQLFormatVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
/**
* TCL Format SQL visitor for MySQL.
*/
public final class MySQLTCLFormatSQLVisitor extends MySQLFormatSQLVisitor implements TCLFormatSQLVisitor {
public final class MySQLTCLFormatSQLVisitor extends MySQLFormatSQLVisitor implements TCLSQLVisitor, SQLFormatVisitor {
}
......@@ -17,13 +17,13 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.statement.facade;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.facade.StatementSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DALStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DDLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DMLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.RLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.TCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.RLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.mysql.visitor.statement.impl.MySQLDALStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.mysql.visitor.statement.impl.MySQLDCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.mysql.visitor.statement.impl.MySQLDDLStatementSQLVisitor;
......@@ -34,35 +34,35 @@ import org.apache.shardingsphere.sql.parser.mysql.visitor.statement.impl.MySQLTC
/**
* Statement SQL Visitor facade for MySQL.
*/
public final class MySQLStatementSQLVisitorFacade implements StatementSQLVisitorFacade {
public final class MySQLStatementSQLVisitorFacade implements SQLStatementVisitorFacade {
@Override
public Class<? extends DMLStatementSQLVisitor> getDMLVisitorClass() {
public Class<? extends DMLSQLVisitor> getDMLVisitorClass() {
return MySQLDMLStatementSQLVisitor.class;
}
@Override
public Class<? extends DDLStatementSQLVisitor> getDDLVisitorClass() {
public Class<? extends DDLSQLVisitor> getDDLVisitorClass() {
return MySQLDDLStatementSQLVisitor.class;
}
@Override
public Class<? extends TCLStatementSQLVisitor> getTCLVisitorClass() {
public Class<? extends TCLSQLVisitor> getTCLVisitorClass() {
return MySQLTCLStatementSQLVisitor.class;
}
@Override
public Class<? extends DCLStatementSQLVisitor> getDCLVisitorClass() {
public Class<? extends DCLSQLVisitor> getDCLVisitorClass() {
return MySQLDCLStatementSQLVisitor.class;
}
@Override
public Class<? extends DALStatementSQLVisitor> getDALVisitorClass() {
public Class<? extends DALSQLVisitor> getDALVisitorClass() {
return MySQLDALStatementSQLVisitor.class;
}
@Override
public Class<? extends RLStatementSQLVisitor> getRLVisitorClass() {
public Class<? extends RLSQLVisitor> getRLVisitorClass() {
return MySQLRLStatementSQLVisitor.class;
}
}
......@@ -17,11 +17,9 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DALStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.SetCharacterContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.SetNameContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.VariableAssignContext;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.AnalyzeTableContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.CacheIndexContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.ChecksumTableContext;
......@@ -36,6 +34,8 @@ import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.Optimiz
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.RepairTableContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.ResetStatementContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.SchemaNameContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.SetCharacterContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.SetNameContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.SetVariableContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.ShowBinaryLogsContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.ShowBinlogEventsContext;
......@@ -56,6 +56,7 @@ import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.ShowTab
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.ShowWarningsContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.UninstallPluginContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.UseContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.VariableAssignContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.VariableContext;
import org.apache.shardingsphere.sql.parser.sql.common.segment.dal.FromSchemaSegment;
import org.apache.shardingsphere.sql.parser.sql.common.segment.dal.FromTableSegment;
......@@ -64,7 +65,8 @@ import org.apache.shardingsphere.sql.parser.sql.common.segment.dal.VariableAssig
import org.apache.shardingsphere.sql.parser.sql.common.segment.dal.VariableSegment;
import org.apache.shardingsphere.sql.parser.sql.common.segment.generic.SchemaSegment;
import org.apache.shardingsphere.sql.parser.sql.common.segment.generic.table.SimpleTableSegment;
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dal.MySQLSetStatement;
import org.apache.shardingsphere.sql.parser.sql.common.value.identifier.IdentifierValue;
import org.apache.shardingsphere.sql.parser.sql.common.value.literal.impl.StringLiteralValue;
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dal.MySQLAnalyzeTableStatement;
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dal.MySQLCacheIndexStatement;
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dal.MySQLChecksumTableStatement;
......@@ -76,6 +78,7 @@ import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dal.MySQ
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dal.MySQLOptimizeTableStatement;
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dal.MySQLRepairTableStatement;
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dal.MySQLResetStatement;
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dal.MySQLSetStatement;
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dal.MySQLShowBinaryLogsStatement;
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dal.MySQLShowBinlogStatement;
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dal.MySQLShowColumnsStatement;
......@@ -94,8 +97,6 @@ import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dal.MySQ
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dal.MySQLShowWarningsStatement;
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dal.MySQLUninstallPluginStatement;
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dal.MySQLUseStatement;
import org.apache.shardingsphere.sql.parser.sql.common.value.identifier.IdentifierValue;
import org.apache.shardingsphere.sql.parser.sql.common.value.literal.impl.StringLiteralValue;
import java.util.Collection;
import java.util.LinkedList;
......@@ -103,7 +104,7 @@ import java.util.LinkedList;
/**
* DAL Statement SQL visitor for MySQL.
*/
public final class MySQLDALStatementSQLVisitor extends MySQLStatementSQLVisitor implements DALStatementSQLVisitor {
public final class MySQLDALStatementSQLVisitor extends MySQLStatementSQLVisitor implements DALSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitUninstallPlugin(final UninstallPluginContext ctx) {
......
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.AlterUserContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.CreateRoleContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.CreateUserContext;
......@@ -50,7 +51,7 @@ import java.util.Optional;
/**
* DCL Statement SQL visitor for MySQL.
*/
public final class MySQLDCLStatementSQLVisitor extends MySQLStatementSQLVisitor implements DCLStatementSQLVisitor {
public final class MySQLDCLStatementSQLVisitor extends MySQLStatementSQLVisitor implements DCLSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitGrant(final GrantContext ctx) {
......
......@@ -19,8 +19,9 @@ package org.apache.shardingsphere.sql.parser.mysql.visitor.statement.impl;
import com.google.common.base.Preconditions;
import org.antlr.v4.runtime.Token;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DDLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.AddColumnSpecificationContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.AlterDatabaseContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.AlterDefinitionClauseContext;
......@@ -150,7 +151,7 @@ import java.util.List;
/**
* DDL Statement SQL visitor for MySQL.
*/
public final class MySQLDDLStatementSQLVisitor extends MySQLStatementSQLVisitor implements DDLStatementSQLVisitor {
public final class MySQLDDLStatementSQLVisitor extends MySQLStatementSQLVisitor implements DDLSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitCreateView(final CreateViewContext ctx) {
......
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DMLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.CallContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.DoStatementContext;
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dml.MySQLCallStatement;
......@@ -27,7 +28,7 @@ import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.dml.MySQ
/**
* DML Statement SQL visitor for MySQL.
*/
public final class MySQLDMLStatementSQLVisitor extends MySQLStatementSQLVisitor implements DMLStatementSQLVisitor {
public final class MySQLDMLStatementSQLVisitor extends MySQLStatementSQLVisitor implements DMLSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitCall(final CallContext ctx) {
......
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.RLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.RLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.ChangeMasterToContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.StartSlaveContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.StopSlaveContext;
......@@ -29,7 +30,7 @@ import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.rl.MySQL
/**
* RL Statement SQL visitor for MySQL.
*/
public final class MySQLRLStatementSQLVisitor extends MySQLStatementSQLVisitor implements RLStatementSQLVisitor {
public final class MySQLRLStatementSQLVisitor extends MySQLStatementSQLVisitor implements RLSQLVisitor, SQLStatementVisitor {
@Override public ASTNode visitChangeMasterTo(final ChangeMasterToContext ctx) {
return new MySQLChangeMasterStatement();
......
......@@ -21,7 +21,7 @@ import lombok.AccessLevel;
import lombok.Getter;
import org.antlr.v4.runtime.misc.Interval;
import org.antlr.v4.runtime.tree.TerminalNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementBaseVisitor;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.AggregationFunctionContext;
......
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.TCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.AutoCommitValueContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.BeginTransactionContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.CommitContext;
......@@ -39,7 +40,7 @@ import org.apache.shardingsphere.sql.parser.sql.dialect.statement.mysql.tcl.MySQ
/**
* TCL Statement SQL visitor for MySQL.
*/
public final class MySQLTCLStatementSQLVisitor extends MySQLStatementSQLVisitor implements TCLStatementSQLVisitor {
public final class MySQLTCLStatementSQLVisitor extends MySQLStatementSQLVisitor implements TCLSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitSetTransaction(final SetTransactionContext ctx) {
......
......@@ -18,7 +18,7 @@
package org.apache.shardingsphere.sql.parser.oracle.parser;
import org.antlr.v4.runtime.TokenStream;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.parser.SQLParser;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser;
import org.apache.shardingsphere.sql.parser.core.ParseASTNode;
......
......@@ -18,8 +18,8 @@
package org.apache.shardingsphere.sql.parser.oracle.visitor;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitorFacadeFactory;
import org.apache.shardingsphere.sql.parser.api.visitor.format.facade.FormatSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.facade.StatementSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.format.SQLFormatVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitorFacade;
import org.apache.shardingsphere.sql.parser.oracle.visitor.format.facade.OracleFormatSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.oracle.visitor.statement.facade.OracleStatementSQLVisitorFacade;
......@@ -29,12 +29,12 @@ import org.apache.shardingsphere.sql.parser.oracle.visitor.statement.facade.Orac
public final class OracleSQLVisitorFacadeFactory implements SQLVisitorFacadeFactory {
@Override
public Class<? extends StatementSQLVisitorFacade> getStatementSQLVisitorFacadeClass() {
public Class<? extends SQLStatementVisitorFacade> getStatementSQLVisitorFacadeClass() {
return OracleStatementSQLVisitorFacade.class;
}
@Override
public Class<? extends FormatSQLVisitorFacade> getFormatSQLVisitorFacadeClass() {
public Class<? extends SQLFormatVisitorFacade> getFormatSQLVisitorFacadeClass() {
return OracleFormatSQLVisitorFacade.class;
}
}
......@@ -17,46 +17,46 @@
package org.apache.shardingsphere.sql.parser.oracle.visitor.format.facade;
import org.apache.shardingsphere.sql.parser.api.visitor.format.facade.FormatSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DALFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DCLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DDLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DMLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.RLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.TCLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.format.SQLFormatVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.RLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
/**
* Format SQL Visitor facade for MySQL.
*/
public final class OracleFormatSQLVisitorFacade implements FormatSQLVisitorFacade {
public final class OracleFormatSQLVisitorFacade implements SQLFormatVisitorFacade {
@Override
public Class<? extends DMLFormatSQLVisitor> getDMLVisitorClass() {
public Class<? extends DMLSQLVisitor> getDMLVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends DDLFormatSQLVisitor> getDDLVisitorClass() {
public Class<? extends DDLSQLVisitor> getDDLVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends TCLFormatSQLVisitor> getTCLVisitorClass() {
public Class<? extends TCLSQLVisitor> getTCLVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends DCLFormatSQLVisitor> getDCLVisitorClass() {
public Class<? extends DCLSQLVisitor> getDCLVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends DALFormatSQLVisitor> getDALVisitorClass() {
public Class<? extends DALSQLVisitor> getDALVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends RLFormatSQLVisitor> getRLVisitorClass() {
public Class<? extends RLSQLVisitor> getRLVisitorClass() {
throw new UnsupportedOperationException();
}
}
......@@ -17,13 +17,13 @@
package org.apache.shardingsphere.sql.parser.oracle.visitor.statement.facade;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.facade.StatementSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DALStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DDLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DMLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.RLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.TCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.RLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.oracle.visitor.statement.impl.OracleDALStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.oracle.visitor.statement.impl.OracleDCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.oracle.visitor.statement.impl.OracleDDLStatementSQLVisitor;
......@@ -33,35 +33,35 @@ import org.apache.shardingsphere.sql.parser.oracle.visitor.statement.impl.Oracle
/**
* Visitor facade for Oracle.
*/
public final class OracleStatementSQLVisitorFacade implements StatementSQLVisitorFacade {
public final class OracleStatementSQLVisitorFacade implements SQLStatementVisitorFacade {
@Override
public Class<? extends DMLStatementSQLVisitor> getDMLVisitorClass() {
public Class<? extends DMLSQLVisitor> getDMLVisitorClass() {
return OracleDMLStatementSQLVisitor.class;
}
@Override
public Class<? extends DDLStatementSQLVisitor> getDDLVisitorClass() {
public Class<? extends DDLSQLVisitor> getDDLVisitorClass() {
return OracleDDLStatementSQLVisitor.class;
}
@Override
public Class<? extends TCLStatementSQLVisitor> getTCLVisitorClass() {
public Class<? extends TCLSQLVisitor> getTCLVisitorClass() {
return OracleTCLStatementSQLVisitor.class;
}
@Override
public Class<? extends DCLStatementSQLVisitor> getDCLVisitorClass() {
public Class<? extends DCLSQLVisitor> getDCLVisitorClass() {
return OracleDCLStatementSQLVisitor.class;
}
@Override
public Class<? extends DALStatementSQLVisitor> getDALVisitorClass() {
public Class<? extends DALSQLVisitor> getDALVisitorClass() {
return OracleDALStatementSQLVisitor.class;
}
@Override
public Class<? extends RLStatementSQLVisitor> getRLVisitorClass() {
public Class<? extends RLSQLVisitor> getRLVisitorClass() {
return null;
}
}
......@@ -17,10 +17,11 @@
package org.apache.shardingsphere.sql.parser.oracle.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DALStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
/**
* DAL Statement SQL visitor for Oracle.
*/
public final class OracleDALStatementSQLVisitor extends OracleStatementSQLVisitor implements DALStatementSQLVisitor {
public final class OracleDALStatementSQLVisitor extends OracleStatementSQLVisitor implements DALSQLVisitor, SQLStatementVisitor {
}
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.oracle.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AlterRoleContext;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AlterUserContext;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.CreateRoleContext;
......@@ -44,7 +45,7 @@ import java.util.Collections;
/**
* DCL Statement SQL visitor for Oracle.
*/
public final class OracleDCLStatementSQLVisitor extends OracleStatementSQLVisitor implements DCLStatementSQLVisitor {
public final class OracleDCLStatementSQLVisitor extends OracleStatementSQLVisitor implements DCLSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitGrant(final GrantContext ctx) {
......
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.oracle.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DDLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AddColumnSpecificationContext;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AlterDefinitionClauseContext;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AlterIndexContext;
......@@ -66,7 +67,7 @@ import java.util.LinkedList;
/**
* DDL Statement SQL visitor for Oracle.
*/
public final class OracleDDLStatementSQLVisitor extends OracleStatementSQLVisitor implements DDLStatementSQLVisitor {
public final class OracleDDLStatementSQLVisitor extends OracleStatementSQLVisitor implements DDLSQLVisitor, SQLStatementVisitor {
@SuppressWarnings("unchecked")
@Override
......
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.oracle.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DMLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AliasContext;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AssignmentContext;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AssignmentValueContext;
......@@ -98,7 +99,7 @@ import java.util.List;
/**
* DML Statement SQL visitor for Oracle.
*/
public final class OracleDMLStatementSQLVisitor extends OracleStatementSQLVisitor implements DMLStatementSQLVisitor {
public final class OracleDMLStatementSQLVisitor extends OracleStatementSQLVisitor implements DMLSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitInsert(final InsertContext ctx) {
......
......@@ -23,7 +23,7 @@ import lombok.Getter;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.misc.Interval;
import org.antlr.v4.runtime.tree.TerminalNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementBaseVisitor;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AggregationFunctionContext;
......
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.oracle.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.TCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.CommitContext;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.RollbackContext;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.SavepointContext;
......@@ -31,7 +32,7 @@ import org.apache.shardingsphere.sql.parser.sql.dialect.statement.oracle.tcl.Ora
/**
* TCL Statement SQL visitor for Oracle.
*/
public final class OracleTCLStatementSQLVisitor extends OracleStatementSQLVisitor implements TCLStatementSQLVisitor {
public final class OracleTCLStatementSQLVisitor extends OracleStatementSQLVisitor implements TCLSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitSetTransaction(final SetTransactionContext ctx) {
......
......@@ -18,7 +18,7 @@
package org.apache.shardingsphere.sql.parser.postgresql.parser;
import org.antlr.v4.runtime.TokenStream;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.parser.SQLParser;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser;
import org.apache.shardingsphere.sql.parser.core.ParseASTNode;
......
......@@ -18,8 +18,8 @@
package org.apache.shardingsphere.sql.parser.postgresql.visitor;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitorFacadeFactory;
import org.apache.shardingsphere.sql.parser.api.visitor.format.facade.FormatSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.facade.StatementSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.format.SQLFormatVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitorFacade;
import org.apache.shardingsphere.sql.parser.postgresql.visitor.format.facade.PostgreSQLFormatSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.facade.PostgreSQLStatementSQLVisitorFacade;
......@@ -29,12 +29,12 @@ import org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.facade.
public final class PostgreSQLSQLVisitorFacadeFactory implements SQLVisitorFacadeFactory {
@Override
public Class<? extends StatementSQLVisitorFacade> getStatementSQLVisitorFacadeClass() {
public Class<? extends SQLStatementVisitorFacade> getStatementSQLVisitorFacadeClass() {
return PostgreSQLStatementSQLVisitorFacade.class;
}
@Override
public Class<? extends FormatSQLVisitorFacade> getFormatSQLVisitorFacadeClass() {
public Class<? extends SQLFormatVisitorFacade> getFormatSQLVisitorFacadeClass() {
return PostgreSQLFormatSQLVisitorFacade.class;
}
}
......@@ -17,46 +17,46 @@
package org.apache.shardingsphere.sql.parser.postgresql.visitor.format.facade;
import org.apache.shardingsphere.sql.parser.api.visitor.format.facade.FormatSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DALFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DCLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DDLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DMLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.RLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.TCLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.format.SQLFormatVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.RLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
/**
* Format SQL Visitor facade for MySQL.
*/
public final class PostgreSQLFormatSQLVisitorFacade implements FormatSQLVisitorFacade {
public final class PostgreSQLFormatSQLVisitorFacade implements SQLFormatVisitorFacade {
@Override
public Class<? extends DMLFormatSQLVisitor> getDMLVisitorClass() {
public Class<? extends DMLSQLVisitor> getDMLVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends DDLFormatSQLVisitor> getDDLVisitorClass() {
public Class<? extends DDLSQLVisitor> getDDLVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends TCLFormatSQLVisitor> getTCLVisitorClass() {
public Class<? extends TCLSQLVisitor> getTCLVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends DCLFormatSQLVisitor> getDCLVisitorClass() {
public Class<? extends DCLSQLVisitor> getDCLVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends DALFormatSQLVisitor> getDALVisitorClass() {
public Class<? extends DALSQLVisitor> getDALVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends RLFormatSQLVisitor> getRLVisitorClass() {
public Class<? extends RLSQLVisitor> getRLVisitorClass() {
throw new UnsupportedOperationException();
}
}
......@@ -17,13 +17,13 @@
package org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.facade;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.facade.StatementSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DALStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DDLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DMLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.RLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.TCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.RLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.impl.PostgreSQLDALStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.impl.PostgreSQLDCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.impl.PostgreSQLDDLStatementSQLVisitor;
......@@ -33,35 +33,35 @@ import org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.impl.Po
/**
* Statement SQL Visitor facade for PostgreSQL.
*/
public final class PostgreSQLStatementSQLVisitorFacade implements StatementSQLVisitorFacade {
public final class PostgreSQLStatementSQLVisitorFacade implements SQLStatementVisitorFacade {
@Override
public Class<? extends DMLStatementSQLVisitor> getDMLVisitorClass() {
public Class<? extends DMLSQLVisitor> getDMLVisitorClass() {
return PostgreSQLDMLStatementSQLVisitor.class;
}
@Override
public Class<? extends DDLStatementSQLVisitor> getDDLVisitorClass() {
public Class<? extends DDLSQLVisitor> getDDLVisitorClass() {
return PostgreSQLDDLStatementSQLVisitor.class;
}
@Override
public Class<? extends TCLStatementSQLVisitor> getTCLVisitorClass() {
public Class<? extends TCLSQLVisitor> getTCLVisitorClass() {
return PostgreSQLTCLStatementSQLVisitor.class;
}
@Override
public Class<? extends DCLStatementSQLVisitor> getDCLVisitorClass() {
public Class<? extends DCLSQLVisitor> getDCLVisitorClass() {
return PostgreSQLDCLStatementSQLVisitor.class;
}
@Override
public Class<? extends DALStatementSQLVisitor> getDALVisitorClass() {
public Class<? extends DALSQLVisitor> getDALVisitorClass() {
return PostgreSQLDALStatementSQLVisitor.class;
}
@Override
public Class<? extends RLStatementSQLVisitor> getRLVisitorClass() {
public Class<? extends RLSQLVisitor> getRLVisitorClass() {
return null;
}
}
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DALStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AnalyzeContext;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.ConfigurationParameterClauseContext;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.ResetParameterContext;
......@@ -37,7 +38,7 @@ import java.util.LinkedList;
/**
* DAL Statement SQL visitor for PostgreSQL.
*/
public final class PostgreSQLDALStatementSQLVisitor extends PostgreSQLStatementSQLVisitor implements DALStatementSQLVisitor {
public final class PostgreSQLDALStatementSQLVisitor extends PostgreSQLStatementSQLVisitor implements DALSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitShow(final ShowContext ctx) {
......
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterRoleContext;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterUserContext;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.CreateRoleContext;
......@@ -45,7 +46,7 @@ import java.util.Optional;
/**
* DCL Statement SQL visitor for PostgreSQL.
*/
public final class PostgreSQLDCLStatementSQLVisitor extends PostgreSQLStatementSQLVisitor implements DCLStatementSQLVisitor {
public final class PostgreSQLDCLStatementSQLVisitor extends PostgreSQLStatementSQLVisitor implements DCLSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitGrant(final GrantContext ctx) {
......
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DDLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AddColumnSpecificationContext;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterDefinitionClauseContext;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterFunctionContext;
......@@ -92,7 +93,7 @@ import java.util.LinkedList;
/**
* DDL Statement SQL visitor for PostgreSQL.
*/
public final class PostgreSQLDDLStatementSQLVisitor extends PostgreSQLStatementSQLVisitor implements DDLStatementSQLVisitor {
public final class PostgreSQLDDLStatementSQLVisitor extends PostgreSQLStatementSQLVisitor implements DDLSQLVisitor, SQLStatementVisitor {
@SuppressWarnings("unchecked")
@Override
......
......@@ -18,8 +18,9 @@
package org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.impl;
import org.antlr.v4.runtime.tree.ParseTree;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DMLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AExprContext;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AliasClauseContext;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AttrNameContext;
......@@ -117,7 +118,7 @@ import java.util.List;
/**
* DML Statement SQL visitor for PostgreSQL.
*/
public final class PostgreSQLDMLStatementSQLVisitor extends PostgreSQLStatementSQLVisitor implements DMLStatementSQLVisitor {
public final class PostgreSQLDMLStatementSQLVisitor extends PostgreSQLStatementSQLVisitor implements DMLSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitInsert(final InsertContext ctx) {
......
......@@ -22,7 +22,7 @@ import lombok.AccessLevel;
import lombok.Getter;
import org.antlr.v4.runtime.misc.Interval;
import org.antlr.v4.runtime.tree.TerminalNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementBaseVisitor;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AExprContext;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AexprConstContext;
......
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.TCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.BeginTransactionContext;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.CommitContext;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.RollbackContext;
......@@ -33,7 +34,7 @@ import org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.tcl
/**
* TCL Statement SQL visitor for PostgreSQL.
*/
public final class PostgreSQLTCLStatementSQLVisitor extends PostgreSQLStatementSQLVisitor implements TCLStatementSQLVisitor {
public final class PostgreSQLTCLStatementSQLVisitor extends PostgreSQLStatementSQLVisitor implements TCLSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitSetTransaction(final SetTransactionContext ctx) {
......
......@@ -18,7 +18,7 @@
package org.apache.shardingsphere.sql.parser.sql92.parser;
import org.antlr.v4.runtime.TokenStream;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.parser.SQLParser;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser;
import org.apache.shardingsphere.sql.parser.core.ParseASTNode;
......
......@@ -18,8 +18,8 @@
package org.apache.shardingsphere.sql.parser.sql92.visitor;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitorFacadeFactory;
import org.apache.shardingsphere.sql.parser.api.visitor.format.facade.FormatSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.facade.StatementSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.format.SQLFormatVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitorFacade;
import org.apache.shardingsphere.sql.parser.sql92.visitor.format.facade.SQL92FormatSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.sql92.visitor.statement.facade.SQL92StatementSQLVisitorFacade;
......@@ -29,12 +29,12 @@ import org.apache.shardingsphere.sql.parser.sql92.visitor.statement.facade.SQL92
public final class SQL92SQLVisitorFacadeFactory implements SQLVisitorFacadeFactory {
@Override
public Class<? extends StatementSQLVisitorFacade> getStatementSQLVisitorFacadeClass() {
public Class<? extends SQLStatementVisitorFacade> getStatementSQLVisitorFacadeClass() {
return SQL92StatementSQLVisitorFacade.class;
}
@Override
public Class<? extends FormatSQLVisitorFacade> getFormatSQLVisitorFacadeClass() {
public Class<? extends SQLFormatVisitorFacade> getFormatSQLVisitorFacadeClass() {
return SQL92FormatSQLVisitorFacade.class;
}
}
......@@ -17,46 +17,46 @@
package org.apache.shardingsphere.sql.parser.sql92.visitor.format.facade;
import org.apache.shardingsphere.sql.parser.api.visitor.format.facade.FormatSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DALFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DCLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DDLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DMLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.RLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.TCLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.format.SQLFormatVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.RLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
/**
* Format SQL Visitor facade for MySQL.
*/
public final class SQL92FormatSQLVisitorFacade implements FormatSQLVisitorFacade {
public final class SQL92FormatSQLVisitorFacade implements SQLFormatVisitorFacade {
@Override
public Class<? extends DMLFormatSQLVisitor> getDMLVisitorClass() {
public Class<? extends DMLSQLVisitor> getDMLVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends DDLFormatSQLVisitor> getDDLVisitorClass() {
public Class<? extends DDLSQLVisitor> getDDLVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends TCLFormatSQLVisitor> getTCLVisitorClass() {
public Class<? extends TCLSQLVisitor> getTCLVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends DCLFormatSQLVisitor> getDCLVisitorClass() {
public Class<? extends DCLSQLVisitor> getDCLVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends DALFormatSQLVisitor> getDALVisitorClass() {
public Class<? extends DALSQLVisitor> getDALVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends RLFormatSQLVisitor> getRLVisitorClass() {
public Class<? extends RLSQLVisitor> getRLVisitorClass() {
throw new UnsupportedOperationException();
}
}
......@@ -17,13 +17,13 @@
package org.apache.shardingsphere.sql.parser.sql92.visitor.statement.facade;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.facade.StatementSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DALStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DDLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DMLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.RLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.TCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.RLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.sql92.visitor.statement.impl.SQL92DALStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.sql92.visitor.statement.impl.SQL92DCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.sql92.visitor.statement.impl.SQL92DDLStatementSQLVisitor;
......@@ -33,35 +33,35 @@ import org.apache.shardingsphere.sql.parser.sql92.visitor.statement.impl.SQL92TC
/**
* Statement SQL Visitor facade for SQL92.
*/
public final class SQL92StatementSQLVisitorFacade implements StatementSQLVisitorFacade {
public final class SQL92StatementSQLVisitorFacade implements SQLStatementVisitorFacade {
@Override
public Class<? extends DMLStatementSQLVisitor> getDMLVisitorClass() {
public Class<? extends DMLSQLVisitor> getDMLVisitorClass() {
return SQL92DMLStatementSQLVisitor.class;
}
@Override
public Class<? extends DDLStatementSQLVisitor> getDDLVisitorClass() {
public Class<? extends DDLSQLVisitor> getDDLVisitorClass() {
return SQL92DDLStatementSQLVisitor.class;
}
@Override
public Class<? extends TCLStatementSQLVisitor> getTCLVisitorClass() {
public Class<? extends TCLSQLVisitor> getTCLVisitorClass() {
return SQL92TCLStatementSQLVisitor.class;
}
@Override
public Class<? extends DCLStatementSQLVisitor> getDCLVisitorClass() {
public Class<? extends DCLSQLVisitor> getDCLVisitorClass() {
return SQL92DCLStatementSQLVisitor.class;
}
@Override
public Class<? extends DALStatementSQLVisitor> getDALVisitorClass() {
public Class<? extends DALSQLVisitor> getDALVisitorClass() {
return SQL92DALStatementSQLVisitor.class;
}
@Override
public Class<? extends RLStatementSQLVisitor> getRLVisitorClass() {
public Class<? extends RLSQLVisitor> getRLVisitorClass() {
return null;
}
}
......@@ -17,10 +17,11 @@
package org.apache.shardingsphere.sql.parser.sql92.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DALStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
/**
* DAL Statement SQL visitor for SQL92.
*/
public final class SQL92DALStatementSQLVisitor extends SQL92StatementSQLVisitor implements DALStatementSQLVisitor {
public final class SQL92DALStatementSQLVisitor extends SQL92StatementSQLVisitor implements DALSQLVisitor, SQLStatementVisitor {
}
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.sql92.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.GrantContext;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.PrivilegeClauseContext;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.RevokeContext;
......@@ -32,7 +33,7 @@ import java.util.Collections;
/**
* DCL Statement SQL visitor for SQL92.
*/
public final class SQL92DCLStatementSQLVisitor extends SQL92StatementSQLVisitor implements DCLStatementSQLVisitor {
public final class SQL92DCLStatementSQLVisitor extends SQL92StatementSQLVisitor implements DCLSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitGrant(final GrantContext ctx) {
......
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.sql92.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DDLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.AddColumnSpecificationContext;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.AlterDefinitionClauseContext;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.AlterTableContext;
......@@ -52,7 +53,7 @@ import java.util.Collections;
/**
* DDL Statement SQL visitor for SQL92.
*/
public final class SQL92DDLStatementSQLVisitor extends SQL92StatementSQLVisitor implements DDLStatementSQLVisitor {
public final class SQL92DDLStatementSQLVisitor extends SQL92StatementSQLVisitor implements DDLSQLVisitor, SQLStatementVisitor {
@SuppressWarnings("unchecked")
@Override
......
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.sql92.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DMLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.AliasContext;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.AssignmentContext;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.AssignmentValueContext;
......@@ -95,7 +96,7 @@ import java.util.List;
/**
* DML Statement SQL visitor for SQL92.
*/
public final class SQL92DMLStatementSQLVisitor extends SQL92StatementSQLVisitor implements DMLStatementSQLVisitor {
public final class SQL92DMLStatementSQLVisitor extends SQL92StatementSQLVisitor implements DMLSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitInsert(final InsertContext ctx) {
......
......@@ -23,7 +23,7 @@ import lombok.Getter;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.misc.Interval;
import org.antlr.v4.runtime.tree.TerminalNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementBaseVisitor;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.AggregationFunctionContext;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.BitExprContext;
......
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.sql92.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.TCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.CommitContext;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.RollbackContext;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.SetTransactionContext;
......@@ -29,7 +30,7 @@ import org.apache.shardingsphere.sql.parser.sql.dialect.statement.sql92.tcl.SQL9
/**
* TCL Statement SQL visitor for SQL92.
*/
public final class SQL92TCLStatementSQLVisitor extends SQL92StatementSQLVisitor implements TCLStatementSQLVisitor {
public final class SQL92TCLStatementSQLVisitor extends SQL92StatementSQLVisitor implements TCLSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitSetTransaction(final SetTransactionContext ctx) {
......
......@@ -18,7 +18,7 @@
package org.apache.shardingsphere.sql.parser.sqlserver.parser;
import org.antlr.v4.runtime.TokenStream;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.parser.SQLParser;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser;
import org.apache.shardingsphere.sql.parser.core.ParseASTNode;
......
......@@ -18,8 +18,8 @@
package org.apache.shardingsphere.sql.parser.sqlserver.visitor;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitorFacadeFactory;
import org.apache.shardingsphere.sql.parser.api.visitor.format.facade.FormatSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.facade.StatementSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.format.SQLFormatVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitorFacade;
import org.apache.shardingsphere.sql.parser.sqlserver.visitor.statement.facade.SQLServerStatementSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.sqlserver.visitor.format.facade.SQLServerFormatSQLVisitorFacade;
......@@ -29,12 +29,12 @@ import org.apache.shardingsphere.sql.parser.sqlserver.visitor.format.facade.SQLS
public final class SQLServerSQLVisitorFacadeFactory implements SQLVisitorFacadeFactory {
@Override
public Class<? extends StatementSQLVisitorFacade> getStatementSQLVisitorFacadeClass() {
public Class<? extends SQLStatementVisitorFacade> getStatementSQLVisitorFacadeClass() {
return SQLServerStatementSQLVisitorFacade.class;
}
@Override
public Class<? extends FormatSQLVisitorFacade> getFormatSQLVisitorFacadeClass() {
public Class<? extends SQLFormatVisitorFacade> getFormatSQLVisitorFacadeClass() {
return SQLServerFormatSQLVisitorFacade.class;
}
}
......@@ -17,46 +17,46 @@
package org.apache.shardingsphere.sql.parser.sqlserver.visitor.format.facade;
import org.apache.shardingsphere.sql.parser.api.visitor.format.facade.FormatSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DALFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DCLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DDLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DMLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.RLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.TCLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.format.SQLFormatVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.RLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
/**
* Format SQL Visitor facade for MySQL.
*/
public final class SQLServerFormatSQLVisitorFacade implements FormatSQLVisitorFacade {
public final class SQLServerFormatSQLVisitorFacade implements SQLFormatVisitorFacade {
@Override
public Class<? extends DMLFormatSQLVisitor> getDMLVisitorClass() {
public Class<? extends DMLSQLVisitor> getDMLVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends DDLFormatSQLVisitor> getDDLVisitorClass() {
public Class<? extends DDLSQLVisitor> getDDLVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends TCLFormatSQLVisitor> getTCLVisitorClass() {
public Class<? extends TCLSQLVisitor> getTCLVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends DCLFormatSQLVisitor> getDCLVisitorClass() {
public Class<? extends DCLSQLVisitor> getDCLVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends DALFormatSQLVisitor> getDALVisitorClass() {
public Class<? extends DALSQLVisitor> getDALVisitorClass() {
throw new UnsupportedOperationException();
}
@Override
public Class<? extends RLFormatSQLVisitor> getRLVisitorClass() {
public Class<? extends RLSQLVisitor> getRLVisitorClass() {
throw new UnsupportedOperationException();
}
}
......@@ -17,13 +17,13 @@
package org.apache.shardingsphere.sql.parser.sqlserver.visitor.statement.facade;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.facade.StatementSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DALStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DDLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DMLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.RLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.TCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.RLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.sqlserver.visitor.statement.impl.SQLServerDALStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.sqlserver.visitor.statement.impl.SQLServerDCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.sqlserver.visitor.statement.impl.SQLServerDDLStatementSQLVisitor;
......@@ -33,35 +33,35 @@ import org.apache.shardingsphere.sql.parser.sqlserver.visitor.statement.impl.SQL
/**
* Statement SQL Visitor facade for SQLServer.
*/
public final class SQLServerStatementSQLVisitorFacade implements StatementSQLVisitorFacade {
public final class SQLServerStatementSQLVisitorFacade implements SQLStatementVisitorFacade {
@Override
public Class<? extends DMLStatementSQLVisitor> getDMLVisitorClass() {
public Class<? extends DMLSQLVisitor> getDMLVisitorClass() {
return SQLServerDMLStatementSQLVisitor.class;
}
@Override
public Class<? extends DDLStatementSQLVisitor> getDDLVisitorClass() {
public Class<? extends DDLSQLVisitor> getDDLVisitorClass() {
return SQLServerDDLStatementSQLVisitor.class;
}
@Override
public Class<? extends TCLStatementSQLVisitor> getTCLVisitorClass() {
public Class<? extends TCLSQLVisitor> getTCLVisitorClass() {
return SQLServerTCLStatementSQLVisitor.class;
}
@Override
public Class<? extends DCLStatementSQLVisitor> getDCLVisitorClass() {
public Class<? extends DCLSQLVisitor> getDCLVisitorClass() {
return SQLServerDCLStatementSQLVisitor.class;
}
@Override
public Class<? extends DALStatementSQLVisitor> getDALVisitorClass() {
public Class<? extends DALSQLVisitor> getDALVisitorClass() {
return SQLServerDALStatementSQLVisitor.class;
}
@Override
public Class<? extends RLStatementSQLVisitor> getRLVisitorClass() {
public Class<? extends RLSQLVisitor> getRLVisitorClass() {
return null;
}
}
......@@ -17,10 +17,11 @@
package org.apache.shardingsphere.sql.parser.sqlserver.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DALStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
/**
* DAL Statement SQL visitor for SQLServer.
*/
public final class SQLServerDALStatementSQLVisitor extends SQLServerStatementSQLVisitor implements DALStatementSQLVisitor {
public final class SQLServerDALStatementSQLVisitor extends SQLServerStatementSQLVisitor implements DALSQLVisitor, SQLStatementVisitor {
}
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.sqlserver.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.AlterLoginContext;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.AlterRoleContext;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.AlterUserContext;
......@@ -53,7 +54,7 @@ import java.util.Collections;
/**
* DCL Statement SQL visitor for SQLServer.
*/
public final class SQLServerDCLStatementSQLVisitor extends SQLServerStatementSQLVisitor implements DCLStatementSQLVisitor {
public final class SQLServerDCLStatementSQLVisitor extends SQLServerStatementSQLVisitor implements DCLSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitGrant(final GrantContext ctx) {
......
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.sqlserver.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DDLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.AddColumnSpecificationContext;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.AlterColumnAddOptionContext;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.AlterDefinitionClauseContext;
......@@ -65,7 +66,7 @@ import java.util.LinkedList;
/**
* DDL Statement SQL visitor for SQLServer.
*/
public final class SQLServerDDLStatementSQLVisitor extends SQLServerStatementSQLVisitor implements DDLStatementSQLVisitor {
public final class SQLServerDDLStatementSQLVisitor extends SQLServerStatementSQLVisitor implements DDLSQLVisitor, SQLStatementVisitor {
@SuppressWarnings("unchecked")
@Override
......
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.sqlserver.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DMLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.AggregationClauseContext;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.AliasContext;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.AssignmentContext;
......@@ -122,7 +123,7 @@ import java.util.List;
/**
* DML Statement SQL visitor for SQLServer.
*/
public final class SQLServerDMLStatementSQLVisitor extends SQLServerStatementSQLVisitor implements DMLStatementSQLVisitor {
public final class SQLServerDMLStatementSQLVisitor extends SQLServerStatementSQLVisitor implements DMLSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitInsert(final InsertContext ctx) {
......
......@@ -22,7 +22,7 @@ import lombok.Getter;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.misc.Interval;
import org.antlr.v4.runtime.tree.TerminalNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementBaseVisitor;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.AggregationFunctionContext;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.BitExprContext;
......
......@@ -17,8 +17,9 @@
package org.apache.shardingsphere.sql.parser.sqlserver.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.TCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.BeginTransactionContext;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.CommitContext;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.RollbackContext;
......@@ -35,7 +36,7 @@ import org.apache.shardingsphere.sql.parser.sql.dialect.statement.sqlserver.tcl.
/**
* TCL Statement SQL visitor for SQLServer.
*/
public final class SQLServerTCLStatementSQLVisitor extends SQLServerStatementSQLVisitor implements TCLStatementSQLVisitor {
public final class SQLServerTCLStatementSQLVisitor extends SQLServerStatementSQLVisitor implements TCLSQLVisitor, SQLStatementVisitor {
@Override
public ASTNode visitSetTransaction(final SetTransactionContext ctx) {
......
......@@ -19,7 +19,7 @@ package org.apache.shardingsphere.sql.parser.core;
import lombok.RequiredArgsConstructor;
import org.antlr.v4.runtime.tree.ParseTree;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
/**
* Parse AST node.
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.api.parser;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
/**
* SQL parser.
......
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.statement;
package org.apache.shardingsphere.sql.parser.api.visitor;
/**
* AST node.
......
......@@ -17,8 +17,8 @@
package org.apache.shardingsphere.sql.parser.api.visitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.facade.FormatSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.facade.StatementSQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.format.SQLFormatVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.statement.SQLStatementVisitorFacade;
/**
* SQL visitor facade engine.
......@@ -30,12 +30,12 @@ public interface SQLVisitorFacadeFactory {
*
* @return DML visitor class
*/
Class<? extends StatementSQLVisitorFacade> getStatementSQLVisitorFacadeClass();
Class<? extends SQLStatementVisitorFacade> getStatementSQLVisitorFacadeClass();
/**
* Get format visitor facade class.
*
* @return DDL visitor class
*/
Class<? extends FormatSQLVisitorFacade> getFormatSQLVisitorFacadeClass();
Class<? extends SQLFormatVisitorFacade> getFormatSQLVisitorFacadeClass();
}
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.format.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitor;
/**
* TCL format SQL visitor.
*/
public interface TCLFormatSQLVisitor extends SQLVisitor {
}
......@@ -15,12 +15,12 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.format.impl;
package org.apache.shardingsphere.sql.parser.api.visitor.operation;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitor;
/**
* RL format SQL visitor.
* SQL operation visitor.
*/
public interface RLFormatSQLVisitor extends SQLVisitor {
public interface SQLOperationVisitor extends SQLVisitor {
}
......@@ -15,12 +15,12 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.format.impl;
package org.apache.shardingsphere.sql.parser.api.visitor.operation.format;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.SQLOperationVisitor;
/**
* DML format SQL visitor.
* SQL format visitor.
*/
public interface DMLFormatSQLVisitor extends SQLVisitor {
public interface SQLFormatVisitor extends SQLOperationVisitor {
}
......@@ -15,60 +15,60 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.format.facade;
package org.apache.shardingsphere.sql.parser.api.visitor.operation.format;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DALFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DCLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DDLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.DMLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.RLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.TCLFormatSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.RLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
/**
* Format SQL visitor facade.
* SQL format visitor facade.
*/
public interface FormatSQLVisitorFacade extends SQLVisitorFacade {
public interface SQLFormatVisitorFacade extends SQLVisitorFacade {
/**
* Get DML visitor class.
*
* @return DML visitor class
*/
Class<? extends DMLFormatSQLVisitor> getDMLVisitorClass();
Class<? extends DMLSQLVisitor> getDMLVisitorClass();
/**
* Get DDL visitor class.
*
* @return DDL visitor class
*/
Class<? extends DDLFormatSQLVisitor> getDDLVisitorClass();
Class<? extends DDLSQLVisitor> getDDLVisitorClass();
/**
* Get TCL visitor class.
*
* @return TCL visitor class
*/
Class<? extends TCLFormatSQLVisitor> getTCLVisitorClass();
Class<? extends TCLSQLVisitor> getTCLVisitorClass();
/**
* Get DCL visitor class.
*
* @return DCL visitor class
*/
Class<? extends DCLFormatSQLVisitor> getDCLVisitorClass();
Class<? extends DCLSQLVisitor> getDCLVisitorClass();
/**
* Get DAL visitor class.
*
* @return DAL visitor class
*/
Class<? extends DALFormatSQLVisitor> getDALVisitorClass();
Class<? extends DALSQLVisitor> getDALVisitorClass();
/**
* Get RL visitor class.
*
* @return RL visitor class
*/
Class<? extends RLFormatSQLVisitor> getRLVisitorClass();
Class<? extends RLSQLVisitor> getRLVisitorClass();
}
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.operation.statement;
import org.apache.shardingsphere.sql.parser.api.visitor.operation.SQLOperationVisitor;
/**
* SQL statement visitor.
*/
public interface SQLStatementVisitor extends SQLOperationVisitor {
}
......@@ -15,60 +15,60 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.statement.facade;
package org.apache.shardingsphere.sql.parser.api.visitor.operation.statement;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitorFacade;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DALStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DDLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.DMLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.RLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.TCLStatementSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DALSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DCLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DDLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.DMLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.RLSQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.impl.TCLSQLVisitor;
/**
* Statement SQL visitor facade.
* SQL statement visitor facade.
*/
public interface StatementSQLVisitorFacade extends SQLVisitorFacade {
public interface SQLStatementVisitorFacade extends SQLVisitorFacade {
/**
* Get DML visitor class.
*
* @return DML visitor class
*/
Class<? extends DMLStatementSQLVisitor> getDMLVisitorClass();
Class<? extends DMLSQLVisitor> getDMLVisitorClass();
/**
* Get DDL visitor class.
*
* @return DDL visitor class
*/
Class<? extends DDLStatementSQLVisitor> getDDLVisitorClass();
Class<? extends DDLSQLVisitor> getDDLVisitorClass();
/**
* Get TCL visitor class.
*
* @return TCL visitor class
*/
Class<? extends TCLStatementSQLVisitor> getTCLVisitorClass();
Class<? extends TCLSQLVisitor> getTCLVisitorClass();
/**
* Get DCL visitor class.
*
* @return DCL visitor class
*/
Class<? extends DCLStatementSQLVisitor> getDCLVisitorClass();
Class<? extends DCLSQLVisitor> getDCLVisitorClass();
/**
* Get DAL visitor class.
*
* @return DAL visitor class
*/
Class<? extends DALStatementSQLVisitor> getDALVisitorClass();
Class<? extends DALSQLVisitor> getDALVisitorClass();
/**
* Get RL visitor class.
*
* @return RL visitor class
*/
Class<? extends RLStatementSQLVisitor> getRLVisitorClass();
Class<? extends RLSQLVisitor> getRLVisitorClass();
}
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitor;
/**
* DAL statement SQL visitor.
*/
public interface DALStatementSQLVisitor extends SQLVisitor {
}
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitor;
/**
* DCL statement SQL visitor.
*/
public interface DCLStatementSQLVisitor extends SQLVisitor {
}
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitor;
/**
* DDL statement SQL visitor.
*/
public interface DDLStatementSQLVisitor extends SQLVisitor {
}
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitor;
/**
* DML statement SQL visitor.
*/
public interface DMLStatementSQLVisitor extends SQLVisitor {
}
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitor;
/**
* RL statement SQL visitor.
*/
public interface RLStatementSQLVisitor extends SQLVisitor {
}
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitor;
/**
* TCL statement SQL visitor.
*/
public interface TCLStatementSQLVisitor extends SQLVisitor {
}
......@@ -15,12 +15,12 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.format.impl;
package org.apache.shardingsphere.sql.parser.api.visitor.type;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitor;
/**
* DAL format SQL visitor.
* SQL type visitor.
*/
public interface DALFormatSQLVisitor extends SQLVisitor {
public interface SQLTypeVisitor extends SQLVisitor {
}
......@@ -15,12 +15,12 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.format.impl;
package org.apache.shardingsphere.sql.parser.api.visitor.type.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.SQLTypeVisitor;
/**
* DCL format SQL visitor.
* DAL SQL visitor.
*/
public interface DCLFormatSQLVisitor extends SQLVisitor {
public interface DALSQLVisitor extends SQLTypeVisitor {
}
......@@ -15,12 +15,12 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.format.impl;
package org.apache.shardingsphere.sql.parser.api.visitor.type.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitor;
import org.apache.shardingsphere.sql.parser.api.visitor.type.SQLTypeVisitor;
/**
* DDL format SQL visitor.
* DCL SQL visitor.
*/
public interface DDLFormatSQLVisitor extends SQLVisitor {
public interface DCLSQLVisitor extends SQLTypeVisitor {
}
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.type.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.type.SQLTypeVisitor;
/**
* DDL SQL visitor.
*/
public interface DDLSQLVisitor extends SQLTypeVisitor {
}
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.type.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.type.SQLTypeVisitor;
/**
* DML SQL visitor.
*/
public interface DMLSQLVisitor extends SQLTypeVisitor {
}
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.type.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.type.SQLTypeVisitor;
/**
* RL SQL visitor.
*/
public interface RLSQLVisitor extends SQLTypeVisitor {
}
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.type.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.type.SQLTypeVisitor;
/**
* TCL SQL visitor.
*/
public interface TCLSQLVisitor extends SQLTypeVisitor {
}
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.sql.common.segment;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
/**
* SQL segment.
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.sql.common.statement;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
/**
* SQL statement.
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.sql.common.value;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
/**
* Value AST node.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册