Class ProtoParserVisitor
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Proto>,Protobuf2ParserVisitor<Proto>
-
Constructor Summary
ConstructorsConstructorDescriptionProtoParserVisitor(Path path, @Nullable org.openrewrite.FileAttributes fileAttributes, String source, Charset charset, boolean charsetBomMarked) -
Method Summary
Modifier and TypeMethodDescriptionvisitBlock(List<org.antlr.v4.runtime.tree.ParseTree> statementTrees) Visit a parse tree produced byProtobuf2Parser.constant().Visit a parse tree produced byProtobuf2Parser.emptyStatement().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.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.mapField().Visit a parse tree produced byProtobuf2Parser.message().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.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.reserved().Visit a parse tree produced byProtobuf2Parser.reservedWord().Visit a parse tree produced byProtobuf2Parser.rpc().Visit a parse tree produced byProtobuf2Parser.rpcInOut().Visit a parse tree produced byProtobuf2Parser.service().Visit a parse tree produced byProtobuf2Parser.syntax().Methods inherited from class org.openrewrite.protobuf.internal.grammar.Protobuf2ParserBaseVisitor
visitEnumBody, visitFieldNames, visitKeyType, visitMessageBody, visitOptionList, visitRanges, visitRpcBody, visitServiceBody, visitStringLiteral, visitTopLevelDefMethods 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
-
ProtoParserVisitor
-
-
Method Details
-
visitBlock
-
visitConstant
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitConstantin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEmptyStatement
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitEmptyStatementin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumDefinition
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitEnumDefinitionin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumField
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitEnumFieldin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExtend
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitExtendin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitField
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitFieldin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFullyQualifiedType
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitFullyQualifiedTypein classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImportStatement
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitImportStatementin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimitiveType
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitPrimitiveTypein classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFullIdent
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitFullIdentin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdentOrReserved
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitIdentOrReservedin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdent
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitIdentin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMapField
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitMapFieldin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMessage
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitMessagein classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMessageField
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitMessageFieldin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOneOf
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitOneOfin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOptionDef
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitOptionDefin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOption
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitOptionin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOptionName
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitOptionNamein classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPackageStatement
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitPackageStatementin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitProto
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitProtoin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRange
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitRangein classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReserved
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitReservedin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReservedWord
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitReservedWordin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRpc
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitRpcin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRpcInOut
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitRpcInOutin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitService
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitServicein classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSyntax
Description copied from class:Protobuf2ParserBaseVisitorVisit 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<Proto>- Overrides:
visitSyntaxin classProtobuf2ParserBaseVisitor<Proto>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-