Class Protobuf2ParserBaseVisitor<T>
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<T>,Protobuf2ParserVisitor<T>
- Direct Known Subclasses:
ProtoParserVisitor
Protobuf2ParserVisitor,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced byProtobuf2Parser.constant().Visit a parse tree produced byProtobuf2Parser.emptyStatement().Visit a parse tree produced byProtobuf2Parser.enumBody().Visit a parse tree produced byProtobuf2Parser.enumDefinition().Visit a parse tree produced byProtobuf2Parser.enumField().Visit a parse tree produced byProtobuf2Parser.extend().Visit a parse tree produced byProtobuf2Parser.field().Visit a parse tree produced byProtobuf2Parser.fieldNames().Visit a parse tree produced byProtobuf2Parser.fullIdent().Visit a parse tree produced by theFullyQualifiedTypelabeled alternative inProtobuf2Parser.type().Visit a parse tree produced byProtobuf2Parser.ident().Visit a parse tree produced byProtobuf2Parser.identOrReserved().Visit a parse tree produced byProtobuf2Parser.importStatement().Visit a parse tree produced byProtobuf2Parser.keyType().Visit a parse tree produced byProtobuf2Parser.mapField().Visit a parse tree produced byProtobuf2Parser.message().Visit a parse tree produced byProtobuf2Parser.messageBody().Visit a parse tree produced byProtobuf2Parser.messageField().Visit a parse tree produced byProtobuf2Parser.oneOf().Visit a parse tree produced byProtobuf2Parser.option().Visit a parse tree produced byProtobuf2Parser.optionDef().Visit a parse tree produced byProtobuf2Parser.optionList().Visit a parse tree produced byProtobuf2Parser.optionName().Visit a parse tree produced byProtobuf2Parser.packageStatement().Visit a parse tree produced by thePrimitiveTypelabeled alternative inProtobuf2Parser.type().Visit a parse tree produced byProtobuf2Parser.proto().Visit a parse tree produced byProtobuf2Parser.range().Visit a parse tree produced byProtobuf2Parser.ranges().Visit a parse tree produced byProtobuf2Parser.reserved().Visit a parse tree produced byProtobuf2Parser.reservedWord().Visit a parse tree produced byProtobuf2Parser.rpc().Visit a parse tree produced byProtobuf2Parser.rpcBody().Visit a parse tree produced byProtobuf2Parser.rpcInOut().Visit a parse tree produced byProtobuf2Parser.service().Visit a parse tree produced byProtobuf2Parser.serviceBody().Visit a parse tree produced byProtobuf2Parser.stringLiteral().Visit a parse tree produced byProtobuf2Parser.syntax().Visit a parse tree produced byProtobuf2Parser.topLevelDef().Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
Protobuf2ParserBaseVisitor
public Protobuf2ParserBaseVisitor()
-
-
Method Details
-
visitProto
Visit a parse tree produced byProtobuf2Parser.proto().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitProtoin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringLiteral
Visit a parse tree produced byProtobuf2Parser.stringLiteral().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStringLiteralin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdentOrReserved
Visit a parse tree produced byProtobuf2Parser.identOrReserved().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIdentOrReservedin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSyntax
Visit a parse tree produced byProtobuf2Parser.syntax().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSyntaxin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImportStatement
Visit a parse tree produced byProtobuf2Parser.importStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitImportStatementin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPackageStatement
Visit a parse tree produced byProtobuf2Parser.packageStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPackageStatementin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOptionName
Visit a parse tree produced byProtobuf2Parser.optionName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOptionNamein interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOption
Visit a parse tree produced byProtobuf2Parser.option().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOptionin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOptionDef
Visit a parse tree produced byProtobuf2Parser.optionDef().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOptionDefin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOptionList
Visit a parse tree produced byProtobuf2Parser.optionList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOptionListin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTopLevelDef
Visit a parse tree produced byProtobuf2Parser.topLevelDef().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTopLevelDefin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdent
Visit a parse tree produced byProtobuf2Parser.ident().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIdentin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMessage
Visit a parse tree produced byProtobuf2Parser.message().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMessagein interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMessageField
Visit a parse tree produced byProtobuf2Parser.messageField().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMessageFieldin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMessageBody
Visit a parse tree produced byProtobuf2Parser.messageBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMessageBodyin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExtend
Visit a parse tree produced byProtobuf2Parser.extend().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExtendin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumDefinition
Visit a parse tree produced byProtobuf2Parser.enumDefinition().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumDefinitionin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumBody
Visit a parse tree produced byProtobuf2Parser.enumBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumBodyin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumField
Visit a parse tree produced byProtobuf2Parser.enumField().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumFieldin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitService
Visit a parse tree produced byProtobuf2Parser.service().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitServicein interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitServiceBody
Visit a parse tree produced byProtobuf2Parser.serviceBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitServiceBodyin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRpc
Visit a parse tree produced byProtobuf2Parser.rpc().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRpcin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRpcInOut
Visit a parse tree produced byProtobuf2Parser.rpcInOut().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRpcInOutin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRpcBody
Visit a parse tree produced byProtobuf2Parser.rpcBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRpcBodyin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReserved
Visit a parse tree produced byProtobuf2Parser.reserved().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitReservedin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRanges
Visit a parse tree produced byProtobuf2Parser.ranges().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRangesin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRange
Visit a parse tree produced byProtobuf2Parser.range().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRangein interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFieldNames
Visit a parse tree produced byProtobuf2Parser.fieldNames().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFieldNamesin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimitiveType
Visit a parse tree produced by thePrimitiveTypelabeled alternative inProtobuf2Parser.type().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimitiveTypein interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFullyQualifiedType
Visit a parse tree produced by theFullyQualifiedTypelabeled alternative inProtobuf2Parser.type().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFullyQualifiedTypein interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitField
Visit a parse tree produced byProtobuf2Parser.field().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFieldin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOneOf
Visit a parse tree produced byProtobuf2Parser.oneOf().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOneOfin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMapField
Visit a parse tree produced byProtobuf2Parser.mapField().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMapFieldin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitKeyType
Visit a parse tree produced byProtobuf2Parser.keyType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitKeyTypein interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReservedWord
Visit a parse tree produced byProtobuf2Parser.reservedWord().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitReservedWordin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFullIdent
Visit a parse tree produced byProtobuf2Parser.fullIdent().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFullIdentin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEmptyStatement
Visit a parse tree produced byProtobuf2Parser.emptyStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEmptyStatementin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstant
Visit a parse tree produced byProtobuf2Parser.constant().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConstantin interfaceProtobuf2ParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-