Class MySQLFormatVisitor
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- org.apache.shardingsphere.sql.parser.autogen.MySQLStatementBaseVisitor<String>
-
- org.apache.shardingsphere.sql.parser.mysql.visitor.format.MySQLFormatVisitor
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<String>,org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI,org.apache.shardingsphere.sql.parser.api.visitor.format.SQLFormatVisitor,org.apache.shardingsphere.sql.parser.api.visitor.SQLVisitor<String>,MySQLStatementVisitor<String>
public final class MySQLFormatVisitor extends MySQLStatementBaseVisitor<String> implements org.apache.shardingsphere.sql.parser.api.visitor.format.SQLFormatVisitor
SQL format visitor for MySQL.
-
-
Constructor Summary
Constructors Constructor Description MySQLFormatVisitor()
-
Method Summary
-
Methods inherited from class org.apache.shardingsphere.sql.parser.autogen.MySQLStatementBaseVisitor
visitAccountLockPasswordExpireOption, visitAccountLockPasswordExpireOptions, visitAclType, visitAddColumn, visitAddTableConstraint, visitAggregationFunction, visitAggregationFunctionName, visitAlgorithmOptionAndLockOption, visitAllOrPartitionNameList, visitAlterAlgorithmOption, visitAlterCheck, visitAlterColumn, visitAlterCommandsModifier, visitAlterCommandsModifierList, visitAlterConstraint, visitAlterConvert, visitAlterDatabase, visitAlterDatabaseSpecification_, visitAlterEvent, visitAlterFunction, visitAlterIndex, visitAlterInstance, visitAlterLockOption, visitAlterLogfileGroup, visitAlterOrderList, visitAlterPartition, visitAlterProcedure, visitAlterRenameTable, visitAlterResourceGroup, visitAlterServer, visitAlterStatement, visitAlterTableDrop, visitAlterTableForce, visitAlterTableOrder, visitAlterTablePartitionOptions, visitAlterTablespace, visitAlterTablespaceInnodb, visitAlterTablespaceNdb, visitAlterUser, visitAlterUserEntry, visitAlterUserList, visitAlterView, visitAnalyzeTable, visitAndOperator, visitAscii, visitAssignGtidsToAnonymousTransactionsDef, visitAssignment, visitAssignmentOperator, visitAssignmentValue, visitAuthOption, visitBegin, visitBeginStatement, visitBeginTransaction, visitBinaryLogFileIndexNumber, visitBinlog, visitBitExpr, visitBitValueLiterals, visitBlobValue, visitBooleanLiterals, visitBooleanPrimary, visitCacheIndex, visitCacheTableIndexList, visitCall, visitCaseElse, visitCaseExpression, visitCaseStatement, visitCaseWhen, visitCastFunction, visitCastType, visitChange, visitChangeColumn, visitChangeMasterTo, visitChangeReplicationFilter, visitChangeReplicationSourceOption, visitChangeReplicationSourceOptionDefs, visitChangeReplicationSourceTo, visitChannel, visitChannelName, visitChannelOption, visitCharacterSet, visitCharFunction, visitCharset, visitCharsetName, visitCharsetWithOptBinary, visitCheckConstraint, visitChecksumTable, visitCheckTable, visitCheckTableOption, visitCheckType, visitClone, visitCloneAction, visitCloneDir, visitCloneInstance, visitCollateClause, visitCollationName, visitColumnAttribute, visitColumnDefinition, visitColumnFormat, visitColumnName, visitColumnRef, visitColumnRefList, visitCombineOption, visitCommit, visitCommonIndexOption, visitComparisonOperator, visitCompleteRegularFunction, visitComponentName, visitCompoundStatement, visitConditionHandlingStatement, visitConditionInformationItem, visitConditionInformationItemName, visitConditionName, visitConditionNumber, visitConditionValue, visitConnectionId, visitConnectionOptions, visitConnectOption, visitConnectOptions, visitConstraintClause, visitConstraintEnforcement, visitConstraintName, visitConvertFunction, visitCreateDatabase, visitCreateDatabaseSpecification_, visitCreateEvent, visitCreateFunction, visitCreateIndex, visitCreateIndexSpecification, visitCreateLikeClause, visitCreateLoadableFunction, visitCreateLogfileGroup, visitCreateProcedure, visitCreateResourceGroup, visitCreateRole, visitCreateServer, visitCreateSRSStatement, visitCreateTable, visitCreateTableOption, visitCreateTableOptions, visitCreateTablespace, visitCreateTablespaceInnodb, visitCreateTablespaceNdb, visitCreateTrigger, visitCreateUser, visitCreateUserEntryIdentifiedBy, visitCreateUserEntryIdentifiedWith, visitCreateUserEntryNoOption, visitCreateUserList, visitCreateView, visitCurrentUserFunction, visitCursorCloseStatement, visitCursorDeclareStatement, visitCursorFetchStatement, visitCursorName, visitCursorOpenStatement, visitCursorStatement, visitCustomKeyword, visitDatetimeExpr, visitDeallocate, visitDeclareConditionStatement, visitDeclareHandlerStatement, visitDeclareStatement, visitDefaultCharset, visitDefaultCollation, visitDefaultEncryption, visitDefaultRoleClause, visitDelete, visitDeleteSpecification, visitDelimiter, visitDelimiterName, visitDirection, visitDisableKeys, visitDistinct, visitDoStatement, visitDropDatabase, visitDropEvent, visitDropFunction, visitDropIndex, visitDropLogfileGroup, visitDropProcedure, visitDropResourceGroup, visitDropRole, visitDropServer, visitDropSRSStatement, visitDropTable, visitDropTablespace, visitDropTrigger, visitDropUser, visitDropView, visitDuplicateAsQueryExpression, visitDuplicateSpecification, visitEnableKeys, visitEngineRef, visitEqual, visitEscapedTableReference, visitEventName, visitExecute, visitExecuteStmt, visitExecuteVarList, visitExplain, visitExplainableStatement, visitExplainType, visitExtractFunction, visitFieldDefinition, visitFieldOptions, visitFieldOrVarSpec, visitFields, visitFileSizeLiteral, visitFilterDef, visitFilterDefs, visitFlowControlStatement, visitFlush, visitFlushOption, visitFormatName, visitFrameBetween, visitFrameClause, visitFrameEnd, visitFrameStart, visitFromClause, visitFromSchema, visitFromTable, visitFulltextIndexOption, visitFunctionCall, visitFunctionName, visitGeneratedOption, visitGetDiagnosticsStatement, visitGrantAs, visitGrantLevelGlobal, visitGrantLevelSchemaGlobal, visitGrantLevelTable, visitGrantProxy, visitGrantRoleOrPrivilegeOnTo, visitGrantRoleOrPrivilegeTo, visitGroupByClause, visitGroupConcatFunction, visitGroupName, visitGroupReplication, visitHandlerAction, visitHandlerCloseStatement, visitHandlerOpenStatement, visitHandlerReadIndexStatement, visitHandlerReadStatement, visitHandlerStatement, visitHavingClause, visitHelp, visitHexadecimalLiterals, visitHistogram, visitHostname, visitIdentifiedBy, visitIdentifiedWith, visitIdentifierKeywordsAmbiguous1RolesAndLabels, visitIdentifierKeywordsAmbiguous2Labels, visitIdentifierKeywordsAmbiguous3Roles, visitIdentifierKeywordsAmbiguous4SystemVariables, visitIdentifierKeywordsUnambiguous, visitIdentifierList, visitIfExists, visitIfNotExists, visitIfStatement, visitIgnoreServerId, visitIgnoreServerIds, visitImportStatement, visitIndexHint, visitIndexHintList, visitIndexName, visitIndexOption, visitIndexType, visitIndexTypeClause, visitInnerJoinType, visitInsertIdentifier, visitInsertSpecification, visitInstall, visitInstallComponent, visitInstallPlugin, visitInstanceAction, visitInternalVariableName, visitIntervalExpression, visitIntervalUnit, visitIntervalValue, visitIpAddress, visitIsolationLevel, visitIsolationTypes, visitIterateStatement, visitJoinedTable, visitJoinSpecification, visitJsonFunction, visitJsonFunctionName, visitKeyListWithExpression, visitKeyOrIndex, visitKeyPart, visitKeyParts, visitKeyPartWithExpression, visitKill, visitLabelName, visitLeadLagInfo, visitLeaveStatement, visitLevelClause, visitLevelInWeightListElement, visitLimitClause, visitLimitOffset, visitLimitRowCount, visitLoadDataStatement, visitLoadIndexInfo, visitLoadStatement, visitLoadTableIndexList, visitLoadXmlStatement, visitLock, visitLockClause, visitLockClauseList, visitLockedRowAction, visitLockOption, visitLockStrength, visitLogName, visitLoopStatement, visitMasterDef, visitMasterDefs, visitMatchExpression, visitMatchSearchModifier, visitModifyColumn, visitMultipleTablesClause, visitName, visitNaturalJoinType, visitNewColumn, visitNotOperator, visitNow, visitNoWriteToBinLog, visitNullTreatment, visitNullValueLiterals, visitOldColumn, visitOnEmptyError, visitOnUpdateDelete, visitOptimizeTable, visitOptionChain, visitOptionRelease, visitOptionType, visitOptionValue, visitOptionValueList, visitOptionValueNoOptionType, visitOrderByClause, visitOrderByItem, visitOrOperator, visitOuterJoinType, visitOverClause, visitOwner, visitOwnerStatement, visitParameterMarker, visitPartitionClause, visitPartitionDefinition, visitPartitionDefinitionOption, visitPartitionDefinitions, visitPartitionKeyAlgorithm, visitPartitionLessThanValue, visitPartitionList, visitPartitionName, visitPartitionTypeDef, visitPartitionValueList, visitPath, visitPlace, visitPluginName, visitPort, visitPositionFunction, visitPredicate, visitPrepare, visitProcedureName, visitProcedureParameter, visitPurgeBinaryLog, visitQualifiedShorthand, visitQueryPrimary, visitReferenceDefinition, visitReferenceOption, visitRegularFunction, visitRegularFunctionName, visitReleaseSavepoint, visitRenameColumn, visitRenameIndex, visitRenameTable, visitRenameUser, visitRepairTable, visitRepairType, visitRepeatStatement, visitReplace, visitReplaceSelectClause, visitReplaceSpecification, visitReplaceValuesClause, visitRequireClause, visitResetOption, visitResetPersist, visitResetStatement, visitResignalStatement, visitRestart, visitRestrict, visitReturnStatement, visitRevokeFrom, visitRevokeOnFrom, visitRoleAtHost, visitRoleIdentifierOrText, visitRoleName, visitRoleOrDynamicPrivilege, visitRoleOrPrivileges, visitRoles, visitRollback, visitRoutineBody, visitRoutineName, visitRoutineOption, visitRvalueSystemVariable, visitSavepoint, visitScheduleExpression, visitSchemaName, visitSchemaNames, visitSchemaPair, visitSchemaPairs, visitSelectFieldsInto, visitSelectIntoExpression, visitSelectLinesInto, visitSelectSpecification, visitSelectWithInto, visitServerName, visitServerOption, visitSetAutoCommit, visitSetCharacter, visitSetDefaultRole, visitSetExprOrDefault, visitSetPassword, visitSetResourceGroup, visitSetRole, visitSetSystemVariable, visitSetTransaction, visitSetVariable, visitShardLibraryName, visitShorthandRegularFunction, visitShow, visitShowBinaryLogs, visitShowBinlogEvents, visitShowCharacterSet, visitShowCharset, visitShowCollation, visitShowColumns, visitShowCreateDatabase, visitShowCreateEvent, visitShowCreateFunction, visitShowCreateProcedure, visitShowCreateTable, visitShowCreateTrigger, visitShowCreateUser, visitShowCreateView, visitShowDatabases, visitShowEngine, visitShowEngines, visitShowErrors, visitShowEvents, visitShowFilter, visitShowFunctionCode, visitShowFunctionStatus, visitShowGrants, visitShowIndex, visitShowLike, visitShowMasterStatus, visitShowOpenTables, visitShowPlugins, visitShowPrivileges, visitShowProcedureCode, visitShowProcedureStatus, visitShowProcesslist, visitShowProfile, visitShowProfiles, visitShowProfileType, visitShowRelaylogEvent, visitShowReplicas, visitShowReplicaStatus, visitShowSlaveHosts, visitShowSlaveStatus, visitShowStatus, visitShowTables, visitShowTableStatus, visitShowTriggers, visitShowVariables, visitShowWarnings, visitShowWhereClause, visitShutdown, visitSignalInformationItem, visitSignalStatement, visitSimpleExpr, visitSimpleStatement, visitSingleTableClause, visitSpecialFunction, visitSrsAttribute, visitStandaloneAlterCommands, visitStartGroupReplication, visitStartSlave, visitStartTransaction, visitStatementInformationItem, visitStatementInformationItemName, visitStaticPrivilegeAlter, visitStaticPrivilegeAlterRoutine, visitStaticPrivilegeCreate, visitStaticPrivilegeCreateRole, visitStaticPrivilegeCreateRoutine, visitStaticPrivilegeCreateTablespace, visitStaticPrivilegeCreateTemporaryTables, visitStaticPrivilegeCreateUser, visitStaticPrivilegeCreateView, visitStaticPrivilegeDelete, visitStaticPrivilegeDrop, visitStaticPrivilegeDropRole, visitStaticPrivilegeEvent, visitStaticPrivilegeExecute, visitStaticPrivilegeFile, visitStaticPrivilegeGrant, visitStaticPrivilegeIndex, visitStaticPrivilegeInsert, visitStaticPrivilegeLockTables, visitStaticPrivilegeProcess, visitStaticPrivilegeReferences, visitStaticPrivilegeReload, visitStaticPrivilegeReplicationClient, visitStaticPrivilegeReplicationSlave, visitStaticPrivilegeSelect, visitStaticPrivilegeShowDatabases, visitStaticPrivilegeShowView, visitStaticPrivilegeShutdown, visitStaticPrivilegeSuper, visitStaticPrivilegeTrigger, visitStaticPrivilegeUpdate, visitStaticPrivilegeUsage, visitStopGroupReplication, visitStopSlave, visitStorageMedia, visitSubpartitionDefinition, visitSubPartitions, visitSubquery, visitSubstringFunction, visitTableAliasRefList, visitTableConstraintDef, visitTableElement, visitTableFactor, visitTableIdentOptWild, visitTableList, visitTableLock, visitTableLockingList, visitTableOrTables, visitTablePrimaryKeyCheckDef, visitTableReference, visitTableReferences, visitTablesOption, visitTableWild, visitTextOrIdentifier, visitTextString, visitTextStringHash, visitThreadType, visitThreadTypes, visitTimestampValue, visitTlsOption, visitTransactionAccessMode, visitTransactionCharacteristic, visitTransactionCharacteristics, visitTriggerEvent, visitTriggerName, visitTriggerOrder, visitTriggerTime, visitTrimFunction, visitTruncateTable, visitUdfFunction, visitUnicode, visitUninstall, visitUninstallComponent, visitUninstallPlugin, visitUnlock, visitUnqualifiedShorthand, visitUpdate, visitUpdateSpecification_, visitUse, visitUserAuthOption, visitUserFuncAuthOption, visitUserIdentifierOrText, visitUserList, visitUsername, visitUserOrRole, visitUserOrRoles, visitUtilOption, visitValidStatement, visitValueReference, visitValuesFunction, visitVariable, visitVcpuSpec, visitViewName, visitViewNames, visitVisibility, visitWeightStringFunction, visitWhileStatement, visitWildTable, visitWildTables, visitWindowClause, visitWindowFunction, visitWindowingClause, visitWindowItem, visitWindowSpecification, visitWithGrantOption, visitWithRoles, visitWithValidation, visitWrapperName, visitXaBegin, visitXaCommit, visitXaEnd, visitXaPrepare, visitXaRecovery, visitXaRollback, visitXid
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitErrorNode
-
-
-
-
Method Detail
-
init
public void init(Properties props)
- Specified by:
initin interfaceorg.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
-
visitSelect
public String visitSelect(MySQLStatementParser.SelectContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.select().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSelectin interfaceMySQLStatementVisitor<String>- Overrides:
visitSelectin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQueryExpression
public String visitQueryExpression(MySQLStatementParser.QueryExpressionContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.queryExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQueryExpressionin interfaceMySQLStatementVisitor<String>- Overrides:
visitQueryExpressionin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQueryExpressionParens
public String visitQueryExpressionParens(MySQLStatementParser.QueryExpressionParensContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.queryExpressionParens().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQueryExpressionParensin interfaceMySQLStatementVisitor<String>- Overrides:
visitQueryExpressionParensin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQueryExpressionBody
public String visitQueryExpressionBody(MySQLStatementParser.QueryExpressionBodyContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.queryExpressionBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQueryExpressionBodyin interfaceMySQLStatementVisitor<String>- Overrides:
visitQueryExpressionBodyin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCombineClause
public String visitCombineClause(MySQLStatementParser.CombineClauseContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.combineClause().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCombineClausein interfaceMySQLStatementVisitor<String>- Overrides:
visitCombineClausein classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQuerySpecification
public String visitQuerySpecification(MySQLStatementParser.QuerySpecificationContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.querySpecification().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQuerySpecificationin interfaceMySQLStatementVisitor<String>- Overrides:
visitQuerySpecificationin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTableStatement
public String visitTableStatement(MySQLStatementParser.TableStatementContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.tableStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTableStatementin interfaceMySQLStatementVisitor<String>- Overrides:
visitTableStatementin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInsert
public String visitInsert(MySQLStatementParser.InsertContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.insert().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInsertin interfaceMySQLStatementVisitor<String>- Overrides:
visitInsertin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPartitionNames
public String visitPartitionNames(MySQLStatementParser.PartitionNamesContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.partitionNames().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPartitionNamesin interfaceMySQLStatementVisitor<String>- Overrides:
visitPartitionNamesin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInsertValuesClause
public String visitInsertValuesClause(MySQLStatementParser.InsertValuesClauseContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.insertValuesClause().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInsertValuesClausein interfaceMySQLStatementVisitor<String>- Overrides:
visitInsertValuesClausein classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInsertSelectClause
public String visitInsertSelectClause(MySQLStatementParser.InsertSelectClauseContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.insertSelectClause().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInsertSelectClausein interfaceMySQLStatementVisitor<String>- Overrides:
visitInsertSelectClausein classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSetAssignmentsClause
public String visitSetAssignmentsClause(MySQLStatementParser.SetAssignmentsClauseContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.setAssignmentsClause().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSetAssignmentsClausein interfaceMySQLStatementVisitor<String>- Overrides:
visitSetAssignmentsClausein classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDerivedColumns
public String visitDerivedColumns(MySQLStatementParser.DerivedColumnsContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.derivedColumns().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDerivedColumnsin interfaceMySQLStatementVisitor<String>- Overrides:
visitDerivedColumnsin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOnDuplicateKeyClause
public String visitOnDuplicateKeyClause(MySQLStatementParser.OnDuplicateKeyClauseContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.onDuplicateKeyClause().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOnDuplicateKeyClausein interfaceMySQLStatementVisitor<String>- Overrides:
visitOnDuplicateKeyClausein classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTableName
public String visitTableName(MySQLStatementParser.TableNameContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.tableName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTableNamein interfaceMySQLStatementVisitor<String>- Overrides:
visitTableNamein classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTableValueConstructor
public String visitTableValueConstructor(MySQLStatementParser.TableValueConstructorContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.tableValueConstructor().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTableValueConstructorin interfaceMySQLStatementVisitor<String>- Overrides:
visitTableValueConstructorin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAlterTable
public String visitAlterTable(MySQLStatementParser.AlterTableContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.alterTable().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAlterTablein interfaceMySQLStatementVisitor<String>- Overrides:
visitAlterTablein classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAlterTableActions
public String visitAlterTableActions(MySQLStatementParser.AlterTableActionsContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.alterTableActions().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAlterTableActionsin interfaceMySQLStatementVisitor<String>- Overrides:
visitAlterTableActionsin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAlterCommandList
public String visitAlterCommandList(MySQLStatementParser.AlterCommandListContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.alterCommandList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAlterCommandListin interfaceMySQLStatementVisitor<String>- Overrides:
visitAlterCommandListin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAlterList
public String visitAlterList(MySQLStatementParser.AlterListContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.alterList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAlterListin interfaceMySQLStatementVisitor<String>- Overrides:
visitAlterListin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreateTableOptionsSpaceSeparated
public String visitCreateTableOptionsSpaceSeparated(MySQLStatementParser.CreateTableOptionsSpaceSeparatedContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.createTableOptionsSpaceSeparated().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreateTableOptionsSpaceSeparatedin interfaceMySQLStatementVisitor<String>- Overrides:
visitCreateTableOptionsSpaceSeparatedin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStandaloneAlterTableAction
public String visitStandaloneAlterTableAction(MySQLStatementParser.StandaloneAlterTableActionContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.standaloneAlterTableAction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStandaloneAlterTableActionin interfaceMySQLStatementVisitor<String>- Overrides:
visitStandaloneAlterTableActionin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRowConstructorList
public String visitRowConstructorList(MySQLStatementParser.RowConstructorListContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.rowConstructorList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRowConstructorListin interfaceMySQLStatementVisitor<String>- Overrides:
visitRowConstructorListin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAssignmentValues
public String visitAssignmentValues(MySQLStatementParser.AssignmentValuesContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.assignmentValues().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAssignmentValuesin interfaceMySQLStatementVisitor<String>- Overrides:
visitAssignmentValuesin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWhereClause
public String visitWhereClause(MySQLStatementParser.WhereClauseContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.whereClause().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitWhereClausein interfaceMySQLStatementVisitor<String>- Overrides:
visitWhereClausein classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpr
public String visitExpr(MySQLStatementParser.ExprContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExprin interfaceMySQLStatementVisitor<String>- Overrides:
visitExprin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAlias
public String visitAlias(MySQLStatementParser.AliasContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.alias().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAliasin interfaceMySQLStatementVisitor<String>- Overrides:
visitAliasin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitProjections
public String visitProjections(MySQLStatementParser.ProjectionsContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.projections().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitProjectionsin interfaceMySQLStatementVisitor<String>- Overrides:
visitProjectionsin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitProjection
public String visitProjection(MySQLStatementParser.ProjectionContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.projection().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitProjectionin interfaceMySQLStatementVisitor<String>- Overrides:
visitProjectionin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreateDefinitionClause
public String visitCreateDefinitionClause(MySQLStatementParser.CreateDefinitionClauseContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.createDefinitionClause().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreateDefinitionClausein interfaceMySQLStatementVisitor<String>- Overrides:
visitCreateDefinitionClausein classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTableElementList
public String visitTableElementList(MySQLStatementParser.TableElementListContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.tableElementList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTableElementListin interfaceMySQLStatementVisitor<String>- Overrides:
visitTableElementListin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFieldLength
public String visitFieldLength(MySQLStatementParser.FieldLengthContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.fieldLength().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFieldLengthin interfaceMySQLStatementVisitor<String>- Overrides:
visitFieldLengthin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrecision
public String visitPrecision(MySQLStatementParser.PrecisionContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.precision().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrecisionin interfaceMySQLStatementVisitor<String>- Overrides:
visitPrecisionin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeDatetimePrecision
public String visitTypeDatetimePrecision(MySQLStatementParser.TypeDatetimePrecisionContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.typeDatetimePrecision().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeDatetimePrecisionin interfaceMySQLStatementVisitor<String>- Overrides:
visitTypeDatetimePrecisionin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDataType
public String visitDataType(MySQLStatementParser.DataTypeContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.dataType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDataTypein interfaceMySQLStatementVisitor<String>- Overrides:
visitDataTypein classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringList
public String visitStringList(MySQLStatementParser.StringListContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.stringList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStringListin interfaceMySQLStatementVisitor<String>- Overrides:
visitStringListin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUserVariable
public String visitUserVariable(MySQLStatementParser.UserVariableContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.userVariable().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUserVariablein interfaceMySQLStatementVisitor<String>- Overrides:
visitUserVariablein classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSystemVariable
public String visitSystemVariable(MySQLStatementParser.SystemVariableContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.systemVariable().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSystemVariablein interfaceMySQLStatementVisitor<String>- Overrides:
visitSystemVariablein classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTerminal
public String visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node)
-
visitIdentifier
public String visitIdentifier(MySQLStatementParser.IdentifierContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.identifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIdentifierin interfaceMySQLStatementVisitor<String>- Overrides:
visitIdentifierin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLiterals
public String visitLiterals(MySQLStatementParser.LiteralsContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.literals().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLiteralsin interfaceMySQLStatementVisitor<String>- Overrides:
visitLiteralsin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTemporalLiterals
public String visitTemporalLiterals(MySQLStatementParser.TemporalLiteralsContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.temporalLiterals().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTemporalLiteralsin interfaceMySQLStatementVisitor<String>- Overrides:
visitTemporalLiteralsin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringLiterals
public String visitStringLiterals(MySQLStatementParser.StringLiteralsContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.stringLiterals().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStringLiteralsin interfaceMySQLStatementVisitor<String>- Overrides:
visitStringLiteralsin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitString_
public String visitString_(MySQLStatementParser.String_Context ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.string_().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitString_in interfaceMySQLStatementVisitor<String>- Overrides:
visitString_in classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumberLiterals
public String visitNumberLiterals(MySQLStatementParser.NumberLiteralsContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.numberLiterals().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNumberLiteralsin interfaceMySQLStatementVisitor<String>- Overrides:
visitNumberLiteralsin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWithClause
public String visitWithClause(MySQLStatementParser.WithClauseContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.withClause().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitWithClausein interfaceMySQLStatementVisitor<String>- Overrides:
visitWithClausein classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCteClause
public String visitCteClause(MySQLStatementParser.CteClauseContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.cteClause().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCteClausein interfaceMySQLStatementVisitor<String>- Overrides:
visitCteClausein classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitColumnNames
public String visitColumnNames(MySQLStatementParser.ColumnNamesContext ctx)
Description copied from class:MySQLStatementBaseVisitorVisit a parse tree produced byMySQLStatementParser.columnNames().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitColumnNamesin interfaceMySQLStatementVisitor<String>- Overrides:
visitColumnNamesin classMySQLStatementBaseVisitor<String>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitChildren
public String visitChildren(org.antlr.v4.runtime.tree.RuleNode node)
-
getType
public String getType()
- Specified by:
getTypein interfaceorg.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
-
-