未验证 提交 3bbb1422 编写于 作者: J Juan Pan(Trista) 提交者: GitHub

optimize package dirs for sq parser (#7909)

上级 8267a304
......@@ -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.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.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.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.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.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.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.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.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.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.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;
......
......@@ -17,10 +17,13 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.format.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.format.impl.TCLFormatSQLVisitor;
import lombok.AccessLevel;
import lombok.Getter;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementBaseVisitor;
/**
* TCL Format SQL visitor for MySQL.
* MySQL Format SQL visitor for MySQL.
*/
public class MySQLFormatSQLVisitor implements TCLFormatSQLVisitor {
@Getter(AccessLevel.PROTECTED)
public abstract class MySQLFormatSQLVisitor extends MySQLStatementBaseVisitor<String> {
}
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.MySQLStatementParser.AlterUserContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.CreateRoleContext;
......
......@@ -19,7 +19,7 @@ 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.impl.ASTNode;
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.autogen.MySQLStatementParser.AddColumnSpecificationContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.AlterDatabaseContext;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.MySQLStatementParser.CallContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.DoStatementContext;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.MySQLStatementParser.ChangeMasterToContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.StartSlaveContext;
......
......@@ -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.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.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,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.mysql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.MySQLStatementParser.AutoCommitValueContext;
import org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser.BeginTransactionContext;
......
......@@ -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.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.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;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.oracle.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.OracleStatementParser.AlterRoleContext;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AlterUserContext;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.oracle.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.OracleStatementParser.AddColumnSpecificationContext;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AlterDefinitionClauseContext;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.oracle.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.OracleStatementParser.AliasContext;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.AssignmentContext;
......
......@@ -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.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.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,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.oracle.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.OracleStatementParser.CommitContext;
import org.apache.shardingsphere.sql.parser.autogen.OracleStatementParser.RollbackContext;
......
......@@ -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.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.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;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.PostgreSQLStatementParser.AnalyzeContext;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.ConfigurationParameterClauseContext;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.PostgreSQLStatementParser.AlterRoleContext;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterUserContext;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.PostgreSQLStatementParser.AddColumnSpecificationContext;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterDefinitionClauseContext;
......
......@@ -18,7 +18,7 @@
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.impl.ASTNode;
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.autogen.PostgreSQLStatementParser.AExprContext;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AliasClauseContext;
......
......@@ -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.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.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,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.postgresql.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.PostgreSQLStatementParser.BeginTransactionContext;
import org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.CommitContext;
......
......@@ -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.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.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;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.sql92.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.SQL92StatementParser.GrantContext;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.PrivilegeClauseContext;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.sql92.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.SQL92StatementParser.AddColumnSpecificationContext;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.AlterDefinitionClauseContext;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.sql92.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.SQL92StatementParser.AliasContext;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.AssignmentContext;
......
......@@ -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.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.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,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.sql92.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.SQL92StatementParser.CommitContext;
import org.apache.shardingsphere.sql.parser.autogen.SQL92StatementParser.RollbackContext;
......
......@@ -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.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.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;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.sqlserver.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.SQLServerStatementParser.AlterLoginContext;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.AlterRoleContext;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.sqlserver.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.SQLServerStatementParser.AddColumnSpecificationContext;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.AlterColumnAddOptionContext;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.sqlserver.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.SQLServerStatementParser.AggregationClauseContext;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.AliasContext;
......
......@@ -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.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.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,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.sqlserver.visitor.statement.impl;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
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.autogen.SQLServerStatementParser.BeginTransactionContext;
import org.apache.shardingsphere.sql.parser.autogen.SQLServerStatementParser.CommitContext;
......
......@@ -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.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
/**
* Parse AST node.
......
......@@ -19,9 +19,9 @@ package org.apache.shardingsphere.sql.parser.engine.ast;
import lombok.RequiredArgsConstructor;
import org.antlr.v4.runtime.tree.ParseTree;
import org.apache.shardingsphere.sql.parser.engine.SQLParsedResultCache;
import org.apache.shardingsphere.sql.parser.core.parser.SQLParserExecutor;
import org.apache.shardingsphere.sql.parser.engine.SQLParserEngine;
import org.apache.shardingsphere.sql.parser.engine.SQLParsedResultCache;
import java.util.Optional;
......
......@@ -20,10 +20,10 @@ package org.apache.shardingsphere.sql.parser.engine.statement.standard;
import lombok.RequiredArgsConstructor;
import org.antlr.v4.runtime.tree.ParseTree;
import org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitorType;
import org.apache.shardingsphere.sql.parser.engine.SQLParsedResultCache;
import org.apache.shardingsphere.sql.parser.core.parser.SQLParserExecutor;
import org.apache.shardingsphere.sql.parser.core.visitor.SQLVisitorFactory;
import org.apache.shardingsphere.sql.parser.core.visitor.SQLVisitorRule;
import org.apache.shardingsphere.sql.parser.engine.SQLParsedResultCache;
import org.apache.shardingsphere.sql.parser.engine.statement.StatementSQLParserEngine;
import org.apache.shardingsphere.sql.parser.hook.ParsingHookRegistry;
import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement;
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.api.parser;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
/**
* SQL parser.
......
......@@ -17,13 +17,10 @@
package org.apache.shardingsphere.sql.parser.api.visitor;
import lombok.RequiredArgsConstructor;
/**
* SQL Visitor type.
*/
@RequiredArgsConstructor
public enum SQLVisitorType {
STATEMENT, FORMAT
STATEMENT, FORMAT;
}
......@@ -15,7 +15,7 @@
* limitations under the License.
*/
package org.apache.shardingsphere.sql.parser.api.visitor.statement.impl;
package org.apache.shardingsphere.sql.parser.api.visitor.statement;
/**
* AST node.
......
......@@ -17,7 +17,7 @@
package org.apache.shardingsphere.sql.parser.sql.common.segment;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.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.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.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.impl.ASTNode;
import org.apache.shardingsphere.sql.parser.api.visitor.statement.ASTNode;
/**
* Value AST node.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册