Class ThriftBaseBaseVisitor<T>
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- org.reploop.parser.thrift.base.ThriftBaseBaseVisitor<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>,ThriftBaseVisitor<T>
- Direct Known Subclasses:
ThriftAstBuilder
public class ThriftBaseBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements ThriftBaseVisitor<T>
This class provides an empty implementation ofThriftBaseVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description ThriftBaseBaseVisitor()
-
Method Summary
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Method Detail
-
visitProgram
public T visitProgram(ThriftBaseParser.ProgramContext ctx)
Visit a parse tree produced byThriftBaseParser.program().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitProgramin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIncludeDefinition
public T visitIncludeDefinition(ThriftBaseParser.IncludeDefinitionContext ctx)
Visit a parse tree produced by theincludeDefinitionlabeled alternative inThriftBaseParser.header().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIncludeDefinitionin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCppIncludeDefinition
public T visitCppIncludeDefinition(ThriftBaseParser.CppIncludeDefinitionContext ctx)
Visit a parse tree produced by thecppIncludeDefinitionlabeled alternative inThriftBaseParser.header().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCppIncludeDefinitionin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNamespaceDefinition
public T visitNamespaceDefinition(ThriftBaseParser.NamespaceDefinitionContext ctx)
Visit a parse tree produced by thenamespaceDefinitionlabeled alternative inThriftBaseParser.header().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNamespaceDefinitionin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInclude
public T visitInclude(ThriftBaseParser.IncludeContext ctx)
Visit a parse tree produced byThriftBaseParser.include().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIncludein interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCppInclude
public T visitCppInclude(ThriftBaseParser.CppIncludeContext ctx)
Visit a parse tree produced byThriftBaseParser.cppInclude().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCppIncludein interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNamespace
public T visitNamespace(ThriftBaseParser.NamespaceContext ctx)
Visit a parse tree produced byThriftBaseParser.namespace().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNamespacein interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNamespaceScope
public T visitNamespaceScope(ThriftBaseParser.NamespaceScopeContext ctx)
Visit a parse tree produced byThriftBaseParser.namespaceScope().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNamespaceScopein interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstantDefinition
public T visitConstantDefinition(ThriftBaseParser.ConstantDefinitionContext ctx)
Visit a parse tree produced by theconstantDefinitionlabeled alternative inThriftBaseParser.definition().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConstantDefinitionin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeDefinitionDefinition
public T visitTypeDefinitionDefinition(ThriftBaseParser.TypeDefinitionDefinitionContext ctx)
Visit a parse tree produced by thetypeDefinitionDefinitionlabeled alternative inThriftBaseParser.definition().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeDefinitionDefinitionin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitServiceDefinition
public T visitServiceDefinition(ThriftBaseParser.ServiceDefinitionContext ctx)
Visit a parse tree produced by theserviceDefinitionlabeled alternative inThriftBaseParser.definition().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitServiceDefinitionin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypedefDefinition
public T visitTypedefDefinition(ThriftBaseParser.TypedefDefinitionContext ctx)
Visit a parse tree produced by thetypedefDefinitionlabeled alternative inThriftBaseParser.typeDefinition().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypedefDefinitionin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumerationDefinition
public T visitEnumerationDefinition(ThriftBaseParser.EnumerationDefinitionContext ctx)
Visit a parse tree produced by theenumerationDefinitionlabeled alternative inThriftBaseParser.typeDefinition().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumerationDefinitionin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSenumDefinition
public T visitSenumDefinition(ThriftBaseParser.SenumDefinitionContext ctx)
Visit a parse tree produced by thesenumDefinitionlabeled alternative inThriftBaseParser.typeDefinition().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSenumDefinitionin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStructDefinition
public T visitStructDefinition(ThriftBaseParser.StructDefinitionContext ctx)
Visit a parse tree produced by thestructDefinitionlabeled alternative inThriftBaseParser.typeDefinition().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStructDefinitionin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExceptionDefinition
public T visitExceptionDefinition(ThriftBaseParser.ExceptionDefinitionContext ctx)
Visit a parse tree produced by theexceptionDefinitionlabeled alternative inThriftBaseParser.typeDefinition().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExceptionDefinitionin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypedef
public T visitTypedef(ThriftBaseParser.TypedefContext ctx)
Visit a parse tree produced byThriftBaseParser.typedef().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypedefin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumeration
public T visitEnumeration(ThriftBaseParser.EnumerationContext ctx)
Visit a parse tree produced byThriftBaseParser.enumeration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumerationin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumDef
public T visitEnumDef(ThriftBaseParser.EnumDefContext ctx)
Visit a parse tree produced byThriftBaseParser.enumDef().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumDefin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSenum
public T visitSenum(ThriftBaseParser.SenumContext ctx)
Visit a parse tree produced byThriftBaseParser.senum().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSenumin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSenumDef
public T visitSenumDef(ThriftBaseParser.SenumDefContext ctx)
Visit a parse tree produced byThriftBaseParser.senumDef().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSenumDefin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstant
public T visitConstant(ThriftBaseParser.ConstantContext ctx)
Visit a parse tree produced byThriftBaseParser.constant().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConstantin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstValue
public T visitConstValue(ThriftBaseParser.ConstValueContext ctx)
Visit a parse tree produced byThriftBaseParser.constValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConstValuein interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStructHead
public T visitStructHead(ThriftBaseParser.StructHeadContext ctx)
Visit a parse tree produced byThriftBaseParser.structHead().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStructHeadin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStruct
public T visitStruct(ThriftBaseParser.StructContext ctx)
Visit a parse tree produced byThriftBaseParser.struct().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStructin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitXsdAttributes
public T visitXsdAttributes(ThriftBaseParser.XsdAttributesContext ctx)
Visit a parse tree produced byThriftBaseParser.xsdAttributes().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitXsdAttributesin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitXception
public T visitXception(ThriftBaseParser.XceptionContext ctx)
Visit a parse tree produced byThriftBaseParser.xception().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitXceptionin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitService
public T visitService(ThriftBaseParser.ServiceContext ctx)
Visit a parse tree produced byThriftBaseParser.service().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitServicein interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunction
public T visitFunction(ThriftBaseParser.FunctionContext ctx)
Visit a parse tree produced byThriftBaseParser.function().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunctionin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRaise
public T visitRaise(ThriftBaseParser.RaiseContext ctx)
Visit a parse tree produced byThriftBaseParser.raise().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRaisein interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitField
public T visitField(ThriftBaseParser.FieldContext ctx)
Visit a parse tree produced byThriftBaseParser.field().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFieldin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFieldID
public T visitFieldID(ThriftBaseParser.FieldIDContext ctx)
Visit a parse tree produced byThriftBaseParser.fieldID().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFieldIDin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFieldValue
public T visitFieldValue(ThriftBaseParser.FieldValueContext ctx)
Visit a parse tree produced byThriftBaseParser.fieldValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFieldValuein interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReturnType
public T visitReturnType(ThriftBaseParser.ReturnTypeContext ctx)
Visit a parse tree produced by thereturnTypelabeled alternative inThriftBaseParser.functionType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitReturnTypein interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVoidType
public T visitVoidType(ThriftBaseParser.VoidTypeContext ctx)
Visit a parse tree produced by thevoidTypelabeled alternative inThriftBaseParser.functionType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVoidTypein interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimitives
public T visitPrimitives(ThriftBaseParser.PrimitivesContext ctx)
Visit a parse tree produced byThriftBaseParser.primitives().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimitivesin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMapType
public T visitMapType(ThriftBaseParser.MapTypeContext ctx)
Visit a parse tree produced by themapTypelabeled alternative inThriftBaseParser.fieldType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMapTypein interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSetType
public T visitSetType(ThriftBaseParser.SetTypeContext ctx)
Visit a parse tree produced by thesetTypelabeled alternative inThriftBaseParser.fieldType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSetTypein interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitListType
public T visitListType(ThriftBaseParser.ListTypeContext ctx)
Visit a parse tree produced by thelistTypelabeled alternative inThriftBaseParser.fieldType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitListTypein interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimitiveType
public T visitPrimitiveType(ThriftBaseParser.PrimitiveTypeContext ctx)
Visit a parse tree produced by theprimitiveTypelabeled alternative inThriftBaseParser.fieldType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimitiveTypein interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStructType
public T visitStructType(ThriftBaseParser.StructTypeContext ctx)
Visit a parse tree produced by thestructTypelabeled alternative inThriftBaseParser.fieldType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStructTypein interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCommaOrSemicolon
public T visitCommaOrSemicolon(ThriftBaseParser.CommaOrSemicolonContext ctx)
Visit a parse tree produced byThriftBaseParser.commaOrSemicolon().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCommaOrSemicolonin interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCppType
public T visitCppType(ThriftBaseParser.CppTypeContext ctx)
Visit a parse tree produced byThriftBaseParser.cppType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCppTypein interfaceThriftBaseVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-