Package io.protostuff.compiler.parser
Class OptionParseListener
- java.lang.Object
-
- io.protostuff.compiler.parser.ProtoParserBaseListener
-
- io.protostuff.compiler.parser.AbstractProtoParserListener
-
- io.protostuff.compiler.parser.OptionParseListener
-
- All Implemented Interfaces:
ProtoParserListener,org.antlr.v4.runtime.tree.ParseTreeListener
public class OptionParseListener extends AbstractProtoParserListener
Parse listener that is responsible for parsing options.- Author:
- Kostiantyn Shchepanovskyi
-
-
Field Summary
Fields Modifier and Type Field Description static intDECIMALstatic intHEXstatic intOCT-
Fields inherited from class io.protostuff.compiler.parser.AbstractProtoParserListener
context
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOptionParseListener(org.antlr.v4.runtime.BufferedTokenStream tokens, ProtoContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenterTextFormat(ProtoParser.TextFormatContext ctx)Enter a parse tree produced byProtoParser.textFormat().voidexitOption(ProtoParser.OptionContext ctx)Exit a parse tree produced byProtoParser.option().voidexitTextFormat(ProtoParser.TextFormatContext ctx)Exit a parse tree produced byProtoParser.textFormat().voidexitTextFormatEntry(ProtoParser.TextFormatEntryContext ctx)Exit a parse tree produced byProtoParser.textFormatEntry().-
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, enterExtendBlock, enterExtendBlockEntry, enterExtensions, enterField, enterFieldModifier, enterFieldName, enterFieldOptions, enterFieldRerefence, enterFileReference, enterFullIdent, enterGroupBlock, enterGroupName, enterIdent, enterImportStatement, enterMap, enterMapKey, enterMapValue, enterMessageBlock, enterMessageName, enterOneof, enterOneofName, enterOption, enterOptionEntry, enterOptionValue, enterPackageName, enterPackageStatement, enterProto, enterRange, enterRangeFrom, enterRangeTo, enterReservedFieldName, enterReservedFieldNames, enterReservedFieldRanges, enterRpcMethod, enterRpcName, enterRpcType, enterServiceBlock, enterServiceName, enterStandardFieldRerefence, enterSyntaxName, enterSyntaxStatement, enterTag, enterTextFormatEntry, enterTextFormatOptionName, enterTextFormatOptionValue, enterTypeReference, exitCustomFieldReference, exitEnumBlock, exitEnumField, exitEnumFieldName, exitEnumFieldValue, exitEnumName, exitEveryRule, exitExtendBlock, exitExtendBlockEntry, exitExtensions, exitField, exitFieldModifier, exitFieldName, exitFieldOptions, exitFieldRerefence, exitFileReference, exitFullIdent, exitGroupBlock, exitGroupName, exitIdent, exitImportStatement, exitMap, exitMapKey, exitMapValue, exitMessageBlock, exitMessageName, exitOneof, exitOneofName, exitOptionEntry, exitOptionValue, exitPackageName, exitPackageStatement, exitProto, exitRange, exitRangeFrom, exitRangeTo, exitReservedFieldName, exitReservedFieldNames, exitReservedFieldRanges, exitRpcMethod, exitRpcName, exitRpcType, exitServiceBlock, exitServiceName, exitStandardFieldRerefence, exitSyntaxName, exitSyntaxStatement, exitTag, exitTextFormatOptionName, exitTextFormatOptionValue, exitTypeReference, visitErrorNode, visitTerminal
-
-
-
-
Field Detail
-
HEX
public static final int HEX
- See Also:
- Constant Field Values
-
OCT
public static final int OCT
- See Also:
- Constant Field Values
-
DECIMAL
public static final int DECIMAL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OptionParseListener
protected OptionParseListener(org.antlr.v4.runtime.BufferedTokenStream tokens, ProtoContext context)
-
-
Method Detail
-
exitOption
public void exitOption(ProtoParser.OptionContext ctx)
Description copied from class:ProtoParserBaseListenerExit a parse tree produced byProtoParser.option().The default implementation does nothing.
- Specified by:
exitOptionin interfaceProtoParserListener- Overrides:
exitOptionin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
enterTextFormat
public void enterTextFormat(ProtoParser.TextFormatContext ctx)
Description copied from class:ProtoParserBaseListenerEnter a parse tree produced byProtoParser.textFormat().The default implementation does nothing.
- Specified by:
enterTextFormatin interfaceProtoParserListener- Overrides:
enterTextFormatin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
exitTextFormat
public void exitTextFormat(ProtoParser.TextFormatContext ctx)
Description copied from class:ProtoParserBaseListenerExit a parse tree produced byProtoParser.textFormat().The default implementation does nothing.
- Specified by:
exitTextFormatin interfaceProtoParserListener- Overrides:
exitTextFormatin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
exitTextFormatEntry
public void exitTextFormatEntry(ProtoParser.TextFormatEntryContext ctx)
Description copied from class:ProtoParserBaseListenerExit a parse tree produced byProtoParser.textFormatEntry().The default implementation does nothing.
- Specified by:
exitTextFormatEntryin interfaceProtoParserListener- Overrides:
exitTextFormatEntryin classProtoParserBaseListener- Parameters:
ctx- the parse tree
-
-