Package io.protostuff.compiler.parser
Class MessageParseListener
- java.lang.Object
-
- io.protostuff.compiler.parser.ProtoParserBaseListener
-
- io.protostuff.compiler.parser.AbstractProtoParserListener
-
- io.protostuff.compiler.parser.MessageParseListener
-
- All Implemented Interfaces:
ProtoParserListener,org.antlr.v4.runtime.tree.ParseTreeListener
public class MessageParseListener extends AbstractProtoParserListener
Parse listener responsible for processing messages.- Author:
- Kostiantyn Shchepanovskyi
-
-
Field Summary
Fields Modifier and Type Field Description static StringMAP_ENTRY_KEYstatic StringMAP_ENTRY_VALUEstatic StringOPTION_MAP_ENTRY-
Fields inherited from class io.protostuff.compiler.parser.AbstractProtoParserListener
context
-
-
Constructor Summary
Constructors Constructor Description MessageParseListener(org.antlr.v4.runtime.BufferedTokenStream tokens, ProtoContext context)
-
Method Summary
-
Methods inherited from class io.protostuff.compiler.parser.AbstractProtoParserListener
attachComments, getSourceCodeLocation, getTextFromLineCommentToken, trim
-
Methods inherited from class io.protostuff.compiler.parser.ProtoParserBaseListener
enterCustomFieldReference, enterEnumBlock, enterEnumField, enterEnumFieldName, enterEnumFieldValue, enterEnumName, enterEveryRule, enterExtendBlockEntry, enterExtensions, enterFieldModifier, enterFieldName, enterFieldOptions, enterFieldRerefence, enterFileReference, enterFullIdent, enterGroupName, enterIdent, enterImportStatement, enterMapKey, enterMapValue, enterMessageName, enterOneofName, enterOption, enterOptionEntry, enterOptionValue, enterPackageName, enterPackageStatement, enterProto, enterRange, enterRangeFrom, enterRangeTo, enterReservedFieldName, enterReservedFieldNames, enterReservedFieldRanges, enterRpcMethod, enterRpcName, enterRpcType, enterServiceBlock, enterServiceName, enterStandardFieldRerefence, enterSyntaxName, enterSyntaxStatement, enterTag, enterTextFormat, enterTextFormatEntry, enterTextFormatOptionName, enterTextFormatOptionValue, enterTypeReference, exitCustomFieldReference, exitEnumBlock, exitEnumField, exitEnumFieldName, exitEnumFieldValue, exitEnumName, exitEveryRule, exitExtendBlockEntry, exitFieldModifier, exitFieldName, exitFieldOptions, exitFieldRerefence, exitFileReference, exitFullIdent, exitGroupName, exitIdent, exitImportStatement, exitMapKey, exitMapValue, exitMessageName, exitOneofName, exitOption, exitOptionEntry, exitOptionValue, exitPackageName, exitPackageStatement, exitProto, exitRange, exitRangeFrom, exitRangeTo, exitReservedFieldName, exitRpcMethod, exitRpcName, exitRpcType, exitServiceBlock, exitServiceName, exitStandardFieldRerefence, exitSyntaxName, exitSyntaxStatement, exitTag, exitTextFormat, exitTextFormatEntry, exitTextFormatOptionName, exitTextFormatOptionValue, exitTypeReference, visitErrorNode, visitTerminal
-
-
-
-
Field Detail
-
OPTION_MAP_ENTRY
public static final String OPTION_MAP_ENTRY
- See Also:
- Constant Field Values
-
MAP_ENTRY_KEY
public static final String MAP_ENTRY_KEY
- See Also:
- Constant Field Values
-
MAP_ENTRY_VALUE
public static final String MAP_ENTRY_VALUE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MessageParseListener
public MessageParseListener(org.antlr.v4.runtime.BufferedTokenStream tokens, ProtoContext context)
-
-
Method Detail
-
enterMessageBlock
public void enterMessageBlock(ProtoParser.MessageBlockContext ctx)
Description copied from class:ProtoParserBaseListenerEnter a parse tree produced byProtoParser.messageBlock().The default implementation does nothing.
- Specified by:
enterMessageBlockin interfaceProtoParserListener- Overrides:
enterMessageBlockin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
exitMessageBlock
public void exitMessageBlock(ProtoParser.MessageBlockContext ctx)
Description copied from class:ProtoParserBaseListenerExit a parse tree produced byProtoParser.messageBlock().The default implementation does nothing.
- Specified by:
exitMessageBlockin interfaceProtoParserListener- Overrides:
exitMessageBlockin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
exitReservedFieldRanges
public void exitReservedFieldRanges(ProtoParser.ReservedFieldRangesContext ctx)
Description copied from class:ProtoParserBaseListenerExit a parse tree produced byProtoParser.reservedFieldRanges().The default implementation does nothing.
- Specified by:
exitReservedFieldRangesin interfaceProtoParserListener- Overrides:
exitReservedFieldRangesin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
exitReservedFieldNames
public void exitReservedFieldNames(ProtoParser.ReservedFieldNamesContext ctx)
Description copied from class:ProtoParserBaseListenerExit a parse tree produced byProtoParser.reservedFieldNames().The default implementation does nothing.
- Specified by:
exitReservedFieldNamesin interfaceProtoParserListener- Overrides:
exitReservedFieldNamesin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
enterField
public void enterField(ProtoParser.FieldContext ctx)
Description copied from class:ProtoParserBaseListenerEnter a parse tree produced byProtoParser.field().The default implementation does nothing.
- Specified by:
enterFieldin interfaceProtoParserListener- Overrides:
enterFieldin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
exitField
public void exitField(ProtoParser.FieldContext ctx)
Description copied from class:ProtoParserBaseListenerExit a parse tree produced byProtoParser.field().The default implementation does nothing.
- Specified by:
exitFieldin interfaceProtoParserListener- Overrides:
exitFieldin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
enterExtendBlock
public void enterExtendBlock(ProtoParser.ExtendBlockContext ctx)
Description copied from class:ProtoParserBaseListenerEnter a parse tree produced byProtoParser.extendBlock().The default implementation does nothing.
- Specified by:
enterExtendBlockin interfaceProtoParserListener- Overrides:
enterExtendBlockin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
exitExtendBlock
public void exitExtendBlock(ProtoParser.ExtendBlockContext ctx)
Description copied from class:ProtoParserBaseListenerExit a parse tree produced byProtoParser.extendBlock().The default implementation does nothing.
- Specified by:
exitExtendBlockin interfaceProtoParserListener- Overrides:
exitExtendBlockin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
enterGroupBlock
public void enterGroupBlock(ProtoParser.GroupBlockContext ctx)
Description copied from class:ProtoParserBaseListenerEnter a parse tree produced byProtoParser.groupBlock().The default implementation does nothing.
- Specified by:
enterGroupBlockin interfaceProtoParserListener- Overrides:
enterGroupBlockin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
exitGroupBlock
public void exitGroupBlock(ProtoParser.GroupBlockContext ctx)
Description copied from class:ProtoParserBaseListenerExit a parse tree produced byProtoParser.groupBlock().The default implementation does nothing.
- Specified by:
exitGroupBlockin interfaceProtoParserListener- Overrides:
exitGroupBlockin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
enterOneof
public void enterOneof(ProtoParser.OneofContext ctx)
Description copied from class:ProtoParserBaseListenerEnter a parse tree produced byProtoParser.oneof().The default implementation does nothing.
- Specified by:
enterOneofin interfaceProtoParserListener- Overrides:
enterOneofin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
exitOneof
public void exitOneof(ProtoParser.OneofContext ctx)
Description copied from class:ProtoParserBaseListenerExit a parse tree produced byProtoParser.oneof().The default implementation does nothing.
- Specified by:
exitOneofin interfaceProtoParserListener- Overrides:
exitOneofin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
enterMap
public void enterMap(ProtoParser.MapContext ctx)
Description copied from class:ProtoParserBaseListenerEnter a parse tree produced byProtoParser.map().The default implementation does nothing.
- Specified by:
enterMapin interfaceProtoParserListener- Overrides:
enterMapin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
exitMap
public void exitMap(ProtoParser.MapContext ctx)
Description copied from class:ProtoParserBaseListenerExit a parse tree produced byProtoParser.map().The default implementation does nothing.
- Specified by:
exitMapin interfaceProtoParserListener- Overrides:
exitMapin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
exitExtensions
public void exitExtensions(ProtoParser.ExtensionsContext ctx)
Description copied from class:ProtoParserBaseListenerExit a parse tree produced byProtoParser.extensions().The default implementation does nothing.
- Specified by:
exitExtensionsin interfaceProtoParserListener- Overrides:
exitExtensionsin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
-