T
- The return type of the visit operation. Use Void
for
operations with no return type.public class JavaParserBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements JavaParserVisitor<T>
JavaParserVisitor
,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.Constructor and Description |
---|
JavaParserBaseVisitor() |
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
public T visitCompilationUnit(JavaParser.CompilationUnitContext ctx)
JavaParser.compilationUnit()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCompilationUnit
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitPackageDeclaration(JavaParser.PackageDeclarationContext ctx)
JavaParser.packageDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPackageDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitImportDeclaration(JavaParser.ImportDeclarationContext ctx)
JavaParser.importDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitImportDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitTypeDeclaration(JavaParser.TypeDeclarationContext ctx)
JavaParser.typeDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitModifier(JavaParser.ModifierContext ctx)
JavaParser.modifier()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitModifier
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitClassOrInterfaceModifier(JavaParser.ClassOrInterfaceModifierContext ctx)
JavaParser.classOrInterfaceModifier()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClassOrInterfaceModifier
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitVariableModifier(JavaParser.VariableModifierContext ctx)
JavaParser.variableModifier()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableModifier
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitClassDeclaration(JavaParser.ClassDeclarationContext ctx)
JavaParser.classDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClassDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitTypeParameters(JavaParser.TypeParametersContext ctx)
JavaParser.typeParameters()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeParameters
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitTypeParameter(JavaParser.TypeParameterContext ctx)
JavaParser.typeParameter()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeParameter
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitTypeBound(JavaParser.TypeBoundContext ctx)
JavaParser.typeBound()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeBound
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitEnumDeclaration(JavaParser.EnumDeclarationContext ctx)
JavaParser.enumDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEnumDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitEnumConstants(JavaParser.EnumConstantsContext ctx)
JavaParser.enumConstants()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEnumConstants
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitEnumConstant(JavaParser.EnumConstantContext ctx)
JavaParser.enumConstant()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEnumConstant
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitEnumBodyDeclarations(JavaParser.EnumBodyDeclarationsContext ctx)
JavaParser.enumBodyDeclarations()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEnumBodyDeclarations
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitInterfaceDeclaration(JavaParser.InterfaceDeclarationContext ctx)
JavaParser.interfaceDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitInterfaceDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitClassBody(JavaParser.ClassBodyContext ctx)
JavaParser.classBody()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClassBody
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitInterfaceBody(JavaParser.InterfaceBodyContext ctx)
JavaParser.interfaceBody()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitInterfaceBody
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitClassBodyDeclaration(JavaParser.ClassBodyDeclarationContext ctx)
JavaParser.classBodyDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClassBodyDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitMemberDeclaration(JavaParser.MemberDeclarationContext ctx)
JavaParser.memberDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMemberDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitMethodDeclaration(JavaParser.MethodDeclarationContext ctx)
JavaParser.methodDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMethodDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitMethodBody(JavaParser.MethodBodyContext ctx)
JavaParser.methodBody()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMethodBody
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitTypeTypeOrVoid(JavaParser.TypeTypeOrVoidContext ctx)
JavaParser.typeTypeOrVoid()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeTypeOrVoid
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitGenericMethodDeclaration(JavaParser.GenericMethodDeclarationContext ctx)
JavaParser.genericMethodDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitGenericMethodDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitGenericConstructorDeclaration(JavaParser.GenericConstructorDeclarationContext ctx)
JavaParser.genericConstructorDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitGenericConstructorDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitConstructorDeclaration(JavaParser.ConstructorDeclarationContext ctx)
JavaParser.constructorDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitConstructorDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitFieldDeclaration(JavaParser.FieldDeclarationContext ctx)
JavaParser.fieldDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFieldDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitInterfaceBodyDeclaration(JavaParser.InterfaceBodyDeclarationContext ctx)
JavaParser.interfaceBodyDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitInterfaceBodyDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitInterfaceMemberDeclaration(JavaParser.InterfaceMemberDeclarationContext ctx)
JavaParser.interfaceMemberDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitInterfaceMemberDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitConstDeclaration(JavaParser.ConstDeclarationContext ctx)
JavaParser.constDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitConstDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitConstantDeclarator(JavaParser.ConstantDeclaratorContext ctx)
JavaParser.constantDeclarator()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitConstantDeclarator
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitInterfaceMethodDeclaration(JavaParser.InterfaceMethodDeclarationContext ctx)
JavaParser.interfaceMethodDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitInterfaceMethodDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitInterfaceMethodModifier(JavaParser.InterfaceMethodModifierContext ctx)
JavaParser.interfaceMethodModifier()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitInterfaceMethodModifier
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitGenericInterfaceMethodDeclaration(JavaParser.GenericInterfaceMethodDeclarationContext ctx)
JavaParser.genericInterfaceMethodDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitGenericInterfaceMethodDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitVariableDeclarators(JavaParser.VariableDeclaratorsContext ctx)
JavaParser.variableDeclarators()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableDeclarators
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitVariableDeclarator(JavaParser.VariableDeclaratorContext ctx)
JavaParser.variableDeclarator()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableDeclarator
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitVariableDeclaratorId(JavaParser.VariableDeclaratorIdContext ctx)
JavaParser.variableDeclaratorId()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableDeclaratorId
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitVariableInitializer(JavaParser.VariableInitializerContext ctx)
JavaParser.variableInitializer()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableInitializer
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitArrayInitializer(JavaParser.ArrayInitializerContext ctx)
JavaParser.arrayInitializer()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitArrayInitializer
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitClassOrInterfaceType(JavaParser.ClassOrInterfaceTypeContext ctx)
JavaParser.classOrInterfaceType()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClassOrInterfaceType
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitTypeArgument(JavaParser.TypeArgumentContext ctx)
JavaParser.typeArgument()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeArgument
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitQualifiedNameList(JavaParser.QualifiedNameListContext ctx)
JavaParser.qualifiedNameList()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitQualifiedNameList
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitFormalParameters(JavaParser.FormalParametersContext ctx)
JavaParser.formalParameters()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFormalParameters
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitFormalParameterList(JavaParser.FormalParameterListContext ctx)
JavaParser.formalParameterList()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFormalParameterList
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitFormalParameter(JavaParser.FormalParameterContext ctx)
JavaParser.formalParameter()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFormalParameter
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitLastFormalParameter(JavaParser.LastFormalParameterContext ctx)
JavaParser.lastFormalParameter()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitLastFormalParameter
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitQualifiedName(JavaParser.QualifiedNameContext ctx)
JavaParser.qualifiedName()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitQualifiedName
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitLiteral(JavaParser.LiteralContext ctx)
JavaParser.literal()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitLiteral
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitIntegerLiteral(JavaParser.IntegerLiteralContext ctx)
JavaParser.integerLiteral()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitIntegerLiteral
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitFloatLiteral(JavaParser.FloatLiteralContext ctx)
JavaParser.floatLiteral()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFloatLiteral
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitAnnotation(JavaParser.AnnotationContext ctx)
JavaParser.annotation()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAnnotation
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitElementValuePairs(JavaParser.ElementValuePairsContext ctx)
JavaParser.elementValuePairs()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitElementValuePairs
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitElementValuePair(JavaParser.ElementValuePairContext ctx)
JavaParser.elementValuePair()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitElementValuePair
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitElementValue(JavaParser.ElementValueContext ctx)
JavaParser.elementValue()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitElementValue
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitElementValueArrayInitializer(JavaParser.ElementValueArrayInitializerContext ctx)
JavaParser.elementValueArrayInitializer()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitElementValueArrayInitializer
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitAnnotationTypeDeclaration(JavaParser.AnnotationTypeDeclarationContext ctx)
JavaParser.annotationTypeDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAnnotationTypeDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitAnnotationTypeBody(JavaParser.AnnotationTypeBodyContext ctx)
JavaParser.annotationTypeBody()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAnnotationTypeBody
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitAnnotationTypeElementDeclaration(JavaParser.AnnotationTypeElementDeclarationContext ctx)
JavaParser.annotationTypeElementDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAnnotationTypeElementDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitAnnotationTypeElementRest(JavaParser.AnnotationTypeElementRestContext ctx)
JavaParser.annotationTypeElementRest()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAnnotationTypeElementRest
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitAnnotationMethodOrConstantRest(JavaParser.AnnotationMethodOrConstantRestContext ctx)
JavaParser.annotationMethodOrConstantRest()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAnnotationMethodOrConstantRest
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitAnnotationMethodRest(JavaParser.AnnotationMethodRestContext ctx)
JavaParser.annotationMethodRest()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAnnotationMethodRest
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitAnnotationConstantRest(JavaParser.AnnotationConstantRestContext ctx)
JavaParser.annotationConstantRest()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAnnotationConstantRest
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitDefaultValue(JavaParser.DefaultValueContext ctx)
JavaParser.defaultValue()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitDefaultValue
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitBlock(JavaParser.BlockContext ctx)
JavaParser.block()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBlock
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitBlockStatement(JavaParser.BlockStatementContext ctx)
JavaParser.blockStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBlockStatement
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitLocalVariableDeclaration(JavaParser.LocalVariableDeclarationContext ctx)
JavaParser.localVariableDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitLocalVariableDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitLocalTypeDeclaration(JavaParser.LocalTypeDeclarationContext ctx)
JavaParser.localTypeDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitLocalTypeDeclaration
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitStatement(JavaParser.StatementContext ctx)
JavaParser.statement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitStatement
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitCatchClause(JavaParser.CatchClauseContext ctx)
JavaParser.catchClause()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCatchClause
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitCatchType(JavaParser.CatchTypeContext ctx)
JavaParser.catchType()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCatchType
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitFinallyBlock(JavaParser.FinallyBlockContext ctx)
JavaParser.finallyBlock()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFinallyBlock
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitResourceSpecification(JavaParser.ResourceSpecificationContext ctx)
JavaParser.resourceSpecification()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitResourceSpecification
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitResources(JavaParser.ResourcesContext ctx)
JavaParser.resources()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitResources
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitResource(JavaParser.ResourceContext ctx)
JavaParser.resource()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitResource
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitSwitchBlockStatementGroup(JavaParser.SwitchBlockStatementGroupContext ctx)
JavaParser.switchBlockStatementGroup()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitSwitchBlockStatementGroup
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitSwitchLabel(JavaParser.SwitchLabelContext ctx)
JavaParser.switchLabel()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitSwitchLabel
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitForControl(JavaParser.ForControlContext ctx)
JavaParser.forControl()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitForControl
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitForInit(JavaParser.ForInitContext ctx)
JavaParser.forInit()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitForInit
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitEnhancedForControl(JavaParser.EnhancedForControlContext ctx)
JavaParser.enhancedForControl()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEnhancedForControl
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitParExpression(JavaParser.ParExpressionContext ctx)
JavaParser.parExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitParExpression
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitExpressionList(JavaParser.ExpressionListContext ctx)
JavaParser.expressionList()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitExpressionList
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitMethodCall(JavaParser.MethodCallContext ctx)
JavaParser.methodCall()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMethodCall
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitConstructorCall(JavaParser.ConstructorCallContext ctx)
JavaParser.constructorCall()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitConstructorCall
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitExpression(JavaParser.ExpressionContext ctx)
JavaParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitExpression
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitLambdaExpression(JavaParser.LambdaExpressionContext ctx)
JavaParser.lambdaExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitLambdaExpression
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitLambdaParameters(JavaParser.LambdaParametersContext ctx)
JavaParser.lambdaParameters()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitLambdaParameters
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitLambdaBody(JavaParser.LambdaBodyContext ctx)
JavaParser.lambdaBody()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitLambdaBody
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitPrimary(JavaParser.PrimaryContext ctx)
JavaParser.primary()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPrimary
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitClassType(JavaParser.ClassTypeContext ctx)
JavaParser.classType()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClassType
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitCreator(JavaParser.CreatorContext ctx)
JavaParser.creator()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCreator
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitCreatedName(JavaParser.CreatedNameContext ctx)
JavaParser.createdName()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCreatedName
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitInnerCreator(JavaParser.InnerCreatorContext ctx)
JavaParser.innerCreator()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitInnerCreator
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitArrayCreatorRest(JavaParser.ArrayCreatorRestContext ctx)
JavaParser.arrayCreatorRest()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitArrayCreatorRest
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitClassCreatorRest(JavaParser.ClassCreatorRestContext ctx)
JavaParser.classCreatorRest()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClassCreatorRest
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitExplicitGenericInvocation(JavaParser.ExplicitGenericInvocationContext ctx)
JavaParser.explicitGenericInvocation()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitExplicitGenericInvocation
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitTypeArgumentsOrDiamond(JavaParser.TypeArgumentsOrDiamondContext ctx)
JavaParser.typeArgumentsOrDiamond()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeArgumentsOrDiamond
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitNonWildcardTypeArgumentsOrDiamond(JavaParser.NonWildcardTypeArgumentsOrDiamondContext ctx)
JavaParser.nonWildcardTypeArgumentsOrDiamond()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitNonWildcardTypeArgumentsOrDiamond
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitNonWildcardTypeArguments(JavaParser.NonWildcardTypeArgumentsContext ctx)
JavaParser.nonWildcardTypeArguments()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitNonWildcardTypeArguments
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitTypeList(JavaParser.TypeListContext ctx)
JavaParser.typeList()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeList
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitTypeType(JavaParser.TypeTypeContext ctx)
JavaParser.typeType()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeType
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitPrimitiveType(JavaParser.PrimitiveTypeContext ctx)
JavaParser.primitiveType()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPrimitiveType
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitTypeArguments(JavaParser.TypeArgumentsContext ctx)
JavaParser.typeArguments()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeArguments
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitSuperSuffix(JavaParser.SuperSuffixContext ctx)
JavaParser.superSuffix()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitSuperSuffix
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitExplicitGenericInvocationSuffix(JavaParser.ExplicitGenericInvocationSuffixContext ctx)
JavaParser.explicitGenericInvocationSuffix()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitExplicitGenericInvocationSuffix
in interface JavaParserVisitor<T>
ctx
- the parse treepublic T visitArguments(JavaParser.ArgumentsContext ctx)
JavaParser.arguments()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitArguments
in interface JavaParserVisitor<T>
ctx
- the parse treeCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.