Package org.reploop.parser.thrift.base
Interface ThriftBaseVisitor<T>
-
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Superinterfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
- All Known Implementing Classes:
ThriftAstBuilder,ThriftBaseBaseVisitor
public interface ThriftBaseVisitor<T> extends org.antlr.v4.runtime.tree.ParseTreeVisitor<T>This interface defines a complete generic visitor for a parse tree produced byThriftBaseParser.
-
-
Method Summary
-
-
-
Method Detail
-
visitProgram
T visitProgram(ThriftBaseParser.ProgramContext ctx)
Visit a parse tree produced byThriftBaseParser.program().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIncludeDefinition
T visitIncludeDefinition(ThriftBaseParser.IncludeDefinitionContext ctx)
Visit a parse tree produced by theincludeDefinitionlabeled alternative inThriftBaseParser.header().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCppIncludeDefinition
T visitCppIncludeDefinition(ThriftBaseParser.CppIncludeDefinitionContext ctx)
Visit a parse tree produced by thecppIncludeDefinitionlabeled alternative inThriftBaseParser.header().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNamespaceDefinition
T visitNamespaceDefinition(ThriftBaseParser.NamespaceDefinitionContext ctx)
Visit a parse tree produced by thenamespaceDefinitionlabeled alternative inThriftBaseParser.header().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInclude
T visitInclude(ThriftBaseParser.IncludeContext ctx)
Visit a parse tree produced byThriftBaseParser.include().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCppInclude
T visitCppInclude(ThriftBaseParser.CppIncludeContext ctx)
Visit a parse tree produced byThriftBaseParser.cppInclude().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNamespace
T visitNamespace(ThriftBaseParser.NamespaceContext ctx)
Visit a parse tree produced byThriftBaseParser.namespace().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNamespaceScope
T visitNamespaceScope(ThriftBaseParser.NamespaceScopeContext ctx)
Visit a parse tree produced byThriftBaseParser.namespaceScope().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstantDefinition
T visitConstantDefinition(ThriftBaseParser.ConstantDefinitionContext ctx)
Visit a parse tree produced by theconstantDefinitionlabeled alternative inThriftBaseParser.definition().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeDefinitionDefinition
T visitTypeDefinitionDefinition(ThriftBaseParser.TypeDefinitionDefinitionContext ctx)
Visit a parse tree produced by thetypeDefinitionDefinitionlabeled alternative inThriftBaseParser.definition().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitServiceDefinition
T visitServiceDefinition(ThriftBaseParser.ServiceDefinitionContext ctx)
Visit a parse tree produced by theserviceDefinitionlabeled alternative inThriftBaseParser.definition().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypedefDefinition
T visitTypedefDefinition(ThriftBaseParser.TypedefDefinitionContext ctx)
Visit a parse tree produced by thetypedefDefinitionlabeled alternative inThriftBaseParser.typeDefinition().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumerationDefinition
T visitEnumerationDefinition(ThriftBaseParser.EnumerationDefinitionContext ctx)
Visit a parse tree produced by theenumerationDefinitionlabeled alternative inThriftBaseParser.typeDefinition().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSenumDefinition
T visitSenumDefinition(ThriftBaseParser.SenumDefinitionContext ctx)
Visit a parse tree produced by thesenumDefinitionlabeled alternative inThriftBaseParser.typeDefinition().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStructDefinition
T visitStructDefinition(ThriftBaseParser.StructDefinitionContext ctx)
Visit a parse tree produced by thestructDefinitionlabeled alternative inThriftBaseParser.typeDefinition().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExceptionDefinition
T visitExceptionDefinition(ThriftBaseParser.ExceptionDefinitionContext ctx)
Visit a parse tree produced by theexceptionDefinitionlabeled alternative inThriftBaseParser.typeDefinition().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypedef
T visitTypedef(ThriftBaseParser.TypedefContext ctx)
Visit a parse tree produced byThriftBaseParser.typedef().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumeration
T visitEnumeration(ThriftBaseParser.EnumerationContext ctx)
Visit a parse tree produced byThriftBaseParser.enumeration().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumDef
T visitEnumDef(ThriftBaseParser.EnumDefContext ctx)
Visit a parse tree produced byThriftBaseParser.enumDef().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSenum
T visitSenum(ThriftBaseParser.SenumContext ctx)
Visit a parse tree produced byThriftBaseParser.senum().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSenumDef
T visitSenumDef(ThriftBaseParser.SenumDefContext ctx)
Visit a parse tree produced byThriftBaseParser.senumDef().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstant
T visitConstant(ThriftBaseParser.ConstantContext ctx)
Visit a parse tree produced byThriftBaseParser.constant().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstValue
T visitConstValue(ThriftBaseParser.ConstValueContext ctx)
Visit a parse tree produced byThriftBaseParser.constValue().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStructHead
T visitStructHead(ThriftBaseParser.StructHeadContext ctx)
Visit a parse tree produced byThriftBaseParser.structHead().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStruct
T visitStruct(ThriftBaseParser.StructContext ctx)
Visit a parse tree produced byThriftBaseParser.struct().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitXsdAttributes
T visitXsdAttributes(ThriftBaseParser.XsdAttributesContext ctx)
Visit a parse tree produced byThriftBaseParser.xsdAttributes().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitXception
T visitXception(ThriftBaseParser.XceptionContext ctx)
Visit a parse tree produced byThriftBaseParser.xception().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitService
T visitService(ThriftBaseParser.ServiceContext ctx)
Visit a parse tree produced byThriftBaseParser.service().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunction
T visitFunction(ThriftBaseParser.FunctionContext ctx)
Visit a parse tree produced byThriftBaseParser.function().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRaise
T visitRaise(ThriftBaseParser.RaiseContext ctx)
Visit a parse tree produced byThriftBaseParser.raise().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitField
T visitField(ThriftBaseParser.FieldContext ctx)
Visit a parse tree produced byThriftBaseParser.field().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFieldID
T visitFieldID(ThriftBaseParser.FieldIDContext ctx)
Visit a parse tree produced byThriftBaseParser.fieldID().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFieldValue
T visitFieldValue(ThriftBaseParser.FieldValueContext ctx)
Visit a parse tree produced byThriftBaseParser.fieldValue().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReturnType
T visitReturnType(ThriftBaseParser.ReturnTypeContext ctx)
Visit a parse tree produced by thereturnTypelabeled alternative inThriftBaseParser.functionType().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVoidType
T visitVoidType(ThriftBaseParser.VoidTypeContext ctx)
Visit a parse tree produced by thevoidTypelabeled alternative inThriftBaseParser.functionType().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimitives
T visitPrimitives(ThriftBaseParser.PrimitivesContext ctx)
Visit a parse tree produced byThriftBaseParser.primitives().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMapType
T visitMapType(ThriftBaseParser.MapTypeContext ctx)
Visit a parse tree produced by themapTypelabeled alternative inThriftBaseParser.fieldType().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSetType
T visitSetType(ThriftBaseParser.SetTypeContext ctx)
Visit a parse tree produced by thesetTypelabeled alternative inThriftBaseParser.fieldType().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitListType
T visitListType(ThriftBaseParser.ListTypeContext ctx)
Visit a parse tree produced by thelistTypelabeled alternative inThriftBaseParser.fieldType().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimitiveType
T visitPrimitiveType(ThriftBaseParser.PrimitiveTypeContext ctx)
Visit a parse tree produced by theprimitiveTypelabeled alternative inThriftBaseParser.fieldType().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStructType
T visitStructType(ThriftBaseParser.StructTypeContext ctx)
Visit a parse tree produced by thestructTypelabeled alternative inThriftBaseParser.fieldType().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCommaOrSemicolon
T visitCommaOrSemicolon(ThriftBaseParser.CommaOrSemicolonContext ctx)
Visit a parse tree produced byThriftBaseParser.commaOrSemicolon().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCppType
T visitCppType(ThriftBaseParser.CppTypeContext ctx)
Visit a parse tree produced byThriftBaseParser.cppType().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-