Class MysqlParserListener
- java.lang.Object
-
- com.zendesk.maxwell.schema.ddl.mysqlBaseListener
-
- com.zendesk.maxwell.schema.ddl.MysqlParserListener
-
- All Implemented Interfaces:
mysqlListener
,org.antlr.v4.runtime.tree.ParseTreeListener
public class MysqlParserListener extends mysqlBaseListener
-
-
Method Summary
-
Methods inherited from class com.zendesk.maxwell.schema.ddl.mysqlBaseListener
enterAdd_column, enterAdd_column_parens, enterAlgorithm_type, enterAll_tokens, enterAlter_database, enterAlter_database_definition, enterAlter_encryption, enterAlter_flags, enterAlter_ordering, enterAlter_ordering_column, enterAlter_partition_specification, enterAlter_post_flag, enterAlter_post_flags, enterAlter_rename_table, enterAlter_specification, enterAlter_specifications, enterAlter_table, enterAlter_table_preamble, enterBroken_float_literal, enterByte_literal, enterChange_column, enterCharacter_set, enterCharset_def, enterCharset_name, enterCharset_token, enterCol_position, enterCollation, enterColumn_definition, enterColumn_options, enterConstraint_name, enterConvert_to_character_set, enterCreate_database, enterCreate_like_tbl, enterCreate_option, enterCreate_specification, enterCreate_specifications, enterCreate_table, enterCreate_table_preamble, enterCreation_auto_increment, enterCreation_avg_row_length, enterCreation_character_set, enterCreation_checksum, enterCreation_collation, enterCreation_comment, enterCreation_compression, enterCreation_connection, enterCreation_data_directory, enterCreation_delay_key_write, enterCreation_encryption, enterCreation_engine, enterCreation_index_directory, enterCreation_insert_method, enterCreation_key_block_size, enterCreation_max_rows, enterCreation_min_rows, enterCreation_pack_keys, enterCreation_password, enterCreation_row_format, enterCreation_start_transaction, enterCreation_stats_auto_recalc, enterCreation_stats_persistent, enterCreation_stats_sample_pages, enterCreation_storage_option, enterCreation_tablespace, enterCreation_union, enterCurrent_timestamp_length, enterData_type, enterDb_name, enterDecimal_length, enterDefault_character_set, enterDefault_collation, enterDefault_value, enterDrop_column, enterDrop_database, enterDrop_key, enterDrop_primary_key, enterDrop_table, enterDrop_table_options, enterDrop_view, enterEnum_value, enterEnumerated_type, enterEnumerated_values, enterEveryRule, enterFloat_literal, enterFull_column_name, enterGeneric_type, enterId, enterIf_exists, enterIf_not_exists, enterIgnored_alter_specifications, enterIndex_column, enterIndex_column_asc_or_desc, enterIndex_column_list, enterIndex_column_partial_def, enterIndex_column_partial_length, enterIndex_columns, enterIndex_constraint, enterIndex_definition, enterIndex_name, enterIndex_options, enterIndex_or_key, enterIndex_type, enterIndex_type_1, enterIndex_type_3, enterIndex_type_4, enterIndex_type_5, enterIndex_type_check, enterIndex_type_pk, enterInt_flags, enterInteger, enterInteger_literal, enterLength, enterLiteral, enterLiteral_with_weirdo_multistring, enterLocaltime_function, enterLock_type, enterLong_flag, enterModify_column, enterName, enterName_all_tokens, enterNow_function, enterNow_function_length, enterNullability, enterParse, enterPartition_by, enterPartition_by_what, enterPartition_count, enterPartition_definitions, enterPartition_names, enterPrimary_key, enterReference_definition, enterReference_definition_match, enterReference_definition_on_delete, enterReference_definition_on_update, enterReference_option, enterRename_column, enterRename_table, enterRename_table_spec, enterSigned_type, enterStatement, enterString, enterString_literal, enterString_type, enterSubpartition_by, enterTable_creation_option, enterTable_name, enterTablespace, enterTokens_available_for_names, enterUser, enterUser_token, enterView_options, enterVisibility, enterWait_flag, exitAlgorithm_type, exitAll_tokens, exitAlter_database_definition, exitAlter_encryption, exitAlter_flags, exitAlter_ordering, exitAlter_ordering_column, exitAlter_partition_specification, exitAlter_post_flag, exitAlter_post_flags, exitAlter_specification, exitAlter_specifications, exitAlter_view, exitBroken_float_literal, exitByte_literal, exitCharacter_set, exitCharset_def, exitCharset_name, exitCharset_token, exitCollation, exitColumn_options, exitConstraint_name, exitCreate_option, exitCreate_specification, exitCreate_table, exitCreate_view, exitCreation_auto_increment, exitCreation_avg_row_length, exitCreation_checksum, exitCreation_collation, exitCreation_comment, exitCreation_compression, exitCreation_connection, exitCreation_data_directory, exitCreation_delay_key_write, exitCreation_encryption, exitCreation_engine, exitCreation_index_directory, exitCreation_insert_method, exitCreation_key_block_size, exitCreation_max_rows, exitCreation_min_rows, exitCreation_pack_keys, exitCreation_password, exitCreation_row_format, exitCreation_start_transaction, exitCreation_stats_auto_recalc, exitCreation_stats_persistent, exitCreation_stats_sample_pages, exitCreation_storage_option, exitCreation_tablespace, exitCreation_union, exitCurrent_timestamp_length, exitData_type, exitDb_name, exitDecimal_length, exitDefault_collation, exitDefault_value, exitDrop_key, exitDrop_table_options, exitDrop_view, exitEnum_value, exitEnumerated_type, exitEnumerated_values, exitEveryRule, exitFloat_literal, exitFull_column_name, exitGeneric_type, exitId, exitIf_exists, exitIf_not_exists, exitIgnored_alter_specifications, exitIndex_column, exitIndex_column_asc_or_desc, exitIndex_column_list, exitIndex_column_partial_def, exitIndex_column_partial_length, exitIndex_columns, exitIndex_constraint, exitIndex_definition, exitIndex_name, exitIndex_options, exitIndex_or_key, exitIndex_type, exitIndex_type_1, exitIndex_type_3, exitIndex_type_4, exitIndex_type_5, exitIndex_type_check, exitInt_flags, exitInteger, exitInteger_literal, exitLength, exitLiteral, exitLiteral_with_weirdo_multistring, exitLocaltime_function, exitLock_type, exitLong_flag, exitName, exitName_all_tokens, exitNow_function, exitNow_function_length, exitNullability, exitParse, exitPartition_by, exitPartition_by_what, exitPartition_count, exitPartition_definitions, exitPartition_names, exitPrimary_key, exitReference_definition, exitReference_definition_match, exitReference_definition_on_delete, exitReference_definition_on_update, exitReference_option, exitRename_table, exitSigned_type, exitSkip_parens, exitSkip_parens_inside_partition_definitions, exitStatement, exitString, exitString_literal, exitString_type, exitSubpartition_by, exitTable_creation_option, exitTable_name, exitTablespace, exitTokens_available_for_names, exitUser, exitUser_token, exitView_options, exitVisibility, exitWait_flag, visitTerminal
-
-
-
-
Method Detail
-
getSchemaChanges
public List<SchemaChange> getSchemaChanges()
-
visitErrorNode
public void visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)
Description copied from class:mysqlBaseListener
The default implementation does nothing.
- Specified by:
visitErrorNode
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
- Overrides:
visitErrorNode
in classmysqlBaseListener
-
exitAlter_database
public void exitAlter_database(mysqlParser.Alter_databaseContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.alter_database()
.The default implementation does nothing.
- Specified by:
exitAlter_database
in interfacemysqlListener
- Overrides:
exitAlter_database
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitAlter_table_preamble
public void exitAlter_table_preamble(mysqlParser.Alter_table_preambleContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.alter_table_preamble()
.The default implementation does nothing.
- Specified by:
exitAlter_table_preamble
in interfacemysqlListener
- Overrides:
exitAlter_table_preamble
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitAlter_table
public void exitAlter_table(mysqlParser.Alter_tableContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.alter_table()
.The default implementation does nothing.
- Specified by:
exitAlter_table
in interfacemysqlListener
- Overrides:
exitAlter_table
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
enterAlter_view
public void enterAlter_view(mysqlParser.Alter_viewContext ctx)
Description copied from class:mysqlBaseListener
Enter a parse tree produced bymysqlParser.alter_view()
.The default implementation does nothing.
- Specified by:
enterAlter_view
in interfacemysqlListener
- Overrides:
enterAlter_view
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
enterCreate_view
public void enterCreate_view(mysqlParser.Create_viewContext ctx)
Description copied from class:mysqlBaseListener
Enter a parse tree produced bymysqlParser.create_view()
.The default implementation does nothing.
- Specified by:
enterCreate_view
in interfacemysqlListener
- Overrides:
enterCreate_view
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitAdd_column
public void exitAdd_column(mysqlParser.Add_columnContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.add_column()
.The default implementation does nothing.
- Specified by:
exitAdd_column
in interfacemysqlListener
- Overrides:
exitAdd_column
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitAdd_column_parens
public void exitAdd_column_parens(mysqlParser.Add_column_parensContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.add_column_parens()
.The default implementation does nothing.
- Specified by:
exitAdd_column_parens
in interfacemysqlListener
- Overrides:
exitAdd_column_parens
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitChange_column
public void exitChange_column(mysqlParser.Change_columnContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.change_column()
.The default implementation does nothing.
- Specified by:
exitChange_column
in interfacemysqlListener
- Overrides:
exitChange_column
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitModify_column
public void exitModify_column(mysqlParser.Modify_columnContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.modify_column()
.The default implementation does nothing.
- Specified by:
exitModify_column
in interfacemysqlListener
- Overrides:
exitModify_column
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitRename_column
public void exitRename_column(mysqlParser.Rename_columnContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.rename_column()
.The default implementation does nothing.
- Specified by:
exitRename_column
in interfacemysqlListener
- Overrides:
exitRename_column
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitDrop_column
public void exitDrop_column(mysqlParser.Drop_columnContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.drop_column()
.The default implementation does nothing.
- Specified by:
exitDrop_column
in interfacemysqlListener
- Overrides:
exitDrop_column
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitCol_position
public void exitCol_position(mysqlParser.Col_positionContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.col_position()
.The default implementation does nothing.
- Specified by:
exitCol_position
in interfacemysqlListener
- Overrides:
exitCol_position
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitAlter_rename_table
public void exitAlter_rename_table(mysqlParser.Alter_rename_tableContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.alter_rename_table()
.The default implementation does nothing.
- Specified by:
exitAlter_rename_table
in interfacemysqlListener
- Overrides:
exitAlter_rename_table
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitConvert_to_character_set
public void exitConvert_to_character_set(mysqlParser.Convert_to_character_setContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.convert_to_character_set()
.The default implementation does nothing.
- Specified by:
exitConvert_to_character_set
in interfacemysqlListener
- Overrides:
exitConvert_to_character_set
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitDefault_character_set
public void exitDefault_character_set(mysqlParser.Default_character_setContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.default_character_set()
.The default implementation does nothing.
- Specified by:
exitDefault_character_set
in interfacemysqlListener
- Overrides:
exitDefault_character_set
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitCreate_table_preamble
public void exitCreate_table_preamble(mysqlParser.Create_table_preambleContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.create_table_preamble()
.The default implementation does nothing.
- Specified by:
exitCreate_table_preamble
in interfacemysqlListener
- Overrides:
exitCreate_table_preamble
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitCreate_like_tbl
public void exitCreate_like_tbl(mysqlParser.Create_like_tblContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.create_like_tbl()
.The default implementation does nothing.
- Specified by:
exitCreate_like_tbl
in interfacemysqlListener
- Overrides:
exitCreate_like_tbl
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitCreate_specifications
public void exitCreate_specifications(mysqlParser.Create_specificationsContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.create_specifications()
.The default implementation does nothing.
- Specified by:
exitCreate_specifications
in interfacemysqlListener
- Overrides:
exitCreate_specifications
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitCreation_character_set
public void exitCreation_character_set(mysqlParser.Creation_character_setContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.creation_character_set()
.The default implementation does nothing.
- Specified by:
exitCreation_character_set
in interfacemysqlListener
- Overrides:
exitCreation_character_set
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitDrop_table
public void exitDrop_table(mysqlParser.Drop_tableContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.drop_table()
.The default implementation does nothing.
- Specified by:
exitDrop_table
in interfacemysqlListener
- Overrides:
exitDrop_table
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitDrop_database
public void exitDrop_database(mysqlParser.Drop_databaseContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.drop_database()
.The default implementation does nothing.
- Specified by:
exitDrop_database
in interfacemysqlListener
- Overrides:
exitDrop_database
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
enterSkip_parens
public void enterSkip_parens(mysqlParser.Skip_parensContext ctx)
Description copied from class:mysqlBaseListener
Enter a parse tree produced bymysqlParser.skip_parens()
.The default implementation does nothing.
- Specified by:
enterSkip_parens
in interfacemysqlListener
- Overrides:
enterSkip_parens
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
enterSkip_parens_inside_partition_definitions
public void enterSkip_parens_inside_partition_definitions(mysqlParser.Skip_parens_inside_partition_definitionsContext ctx)
Description copied from class:mysqlBaseListener
Enter a parse tree produced bymysqlParser.skip_parens_inside_partition_definitions()
.The default implementation does nothing.
- Specified by:
enterSkip_parens_inside_partition_definitions
in interfacemysqlListener
- Overrides:
enterSkip_parens_inside_partition_definitions
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitIndex_type_pk
public void exitIndex_type_pk(mysqlParser.Index_type_pkContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.index_type_pk()
.The default implementation does nothing.
- Specified by:
exitIndex_type_pk
in interfacemysqlListener
- Overrides:
exitIndex_type_pk
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitDrop_primary_key
public void exitDrop_primary_key(mysqlParser.Drop_primary_keyContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.drop_primary_key()
.The default implementation does nothing.
- Specified by:
exitDrop_primary_key
in interfacemysqlListener
- Overrides:
exitDrop_primary_key
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitColumn_definition
public void exitColumn_definition(mysqlParser.Column_definitionContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.column_definition()
.The default implementation does nothing.
- Specified by:
exitColumn_definition
in interfacemysqlListener
- Overrides:
exitColumn_definition
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitRename_table_spec
public void exitRename_table_spec(mysqlParser.Rename_table_specContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.rename_table_spec()
.The default implementation does nothing.
- Specified by:
exitRename_table_spec
in interfacemysqlListener
- Overrides:
exitRename_table_spec
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
exitCreate_database
public void exitCreate_database(mysqlParser.Create_databaseContext ctx)
Description copied from class:mysqlBaseListener
Exit a parse tree produced bymysqlParser.create_database()
.The default implementation does nothing.
- Specified by:
exitCreate_database
in interfacemysqlListener
- Overrides:
exitCreate_database
in classmysqlBaseListener
- Parameters:
ctx
- the parse tree
-
-