Class JavaParserBaseVisitor<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>,JavaParserVisitor<T>
- Direct Known Subclasses:
ReturnAndJumpCounter
JavaParserVisitor,
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 byJavaParser.annotation().Visit a parse tree produced byJavaParser.annotationConstantRest().Visit a parse tree produced byJavaParser.annotationMethodOrConstantRest().Visit a parse tree produced byJavaParser.annotationMethodRest().Visit a parse tree produced byJavaParser.annotationTypeBody().Visit a parse tree produced byJavaParser.annotationTypeDeclaration().Visit a parse tree produced byJavaParser.annotationTypeElementDeclaration().Visit a parse tree produced byJavaParser.annotationTypeElementRest().Visit a parse tree produced byJavaParser.arguments().Visit a parse tree produced byJavaParser.arrayCreatorRest().Visit a parse tree produced byJavaParser.arrayInitializer().Visit a parse tree produced byJavaParser.block().Visit a parse tree produced byJavaParser.blockStatement().Visit a parse tree produced byJavaParser.catchClause().Visit a parse tree produced byJavaParser.catchType().Visit a parse tree produced byJavaParser.classBody().Visit a parse tree produced byJavaParser.classBodyDeclaration().Visit a parse tree produced byJavaParser.classCreatorRest().Visit a parse tree produced byJavaParser.classDeclaration().Visit a parse tree produced byJavaParser.classOrInterfaceModifier().Visit a parse tree produced byJavaParser.classOrInterfaceType().Visit a parse tree produced byJavaParser.classType().Visit a parse tree produced byJavaParser.compilationUnit().Visit a parse tree produced byJavaParser.constantDeclarator().Visit a parse tree produced byJavaParser.constDeclaration().Visit a parse tree produced byJavaParser.constructorCall().Visit a parse tree produced byJavaParser.constructorDeclaration().Visit a parse tree produced byJavaParser.createdName().Visit a parse tree produced byJavaParser.creator().Visit a parse tree produced byJavaParser.defaultValue().Visit a parse tree produced byJavaParser.elementValue().Visit a parse tree produced byJavaParser.elementValueArrayInitializer().Visit a parse tree produced byJavaParser.elementValuePair().Visit a parse tree produced byJavaParser.elementValuePairs().Visit a parse tree produced byJavaParser.enhancedForControl().Visit a parse tree produced byJavaParser.enumBodyDeclarations().Visit a parse tree produced byJavaParser.enumConstant().Visit a parse tree produced byJavaParser.enumConstants().Visit a parse tree produced byJavaParser.enumDeclaration().Visit a parse tree produced byJavaParser.explicitGenericInvocation().Visit a parse tree produced byJavaParser.explicitGenericInvocationSuffix().Visit a parse tree produced byJavaParser.expression().Visit a parse tree produced byJavaParser.expressionList().Visit a parse tree produced byJavaParser.fieldDeclaration().Visit a parse tree produced byJavaParser.finallyBlock().Visit a parse tree produced byJavaParser.floatLiteral().Visit a parse tree produced byJavaParser.forControl().Visit a parse tree produced byJavaParser.forInit().Visit a parse tree produced byJavaParser.formalParameter().Visit a parse tree produced byJavaParser.formalParameterList().Visit a parse tree produced byJavaParser.formalParameters().Visit a parse tree produced byJavaParser.genericConstructorDeclaration().Visit a parse tree produced byJavaParser.genericInterfaceMethodDeclaration().Visit a parse tree produced byJavaParser.genericMethodDeclaration().Visit a parse tree produced byJavaParser.importDeclaration().Visit a parse tree produced byJavaParser.innerCreator().Visit a parse tree produced byJavaParser.integerLiteral().Visit a parse tree produced byJavaParser.interfaceBody().Visit a parse tree produced byJavaParser.interfaceBodyDeclaration().Visit a parse tree produced byJavaParser.interfaceDeclaration().Visit a parse tree produced byJavaParser.interfaceMemberDeclaration().Visit a parse tree produced byJavaParser.interfaceMethodDeclaration().Visit a parse tree produced byJavaParser.interfaceMethodModifier().Visit a parse tree produced byJavaParser.lambdaBody().Visit a parse tree produced byJavaParser.lambdaExpression().Visit a parse tree produced byJavaParser.lambdaParameters().Visit a parse tree produced byJavaParser.lastFormalParameter().Visit a parse tree produced byJavaParser.literal().Visit a parse tree produced byJavaParser.localTypeDeclaration().Visit a parse tree produced byJavaParser.localVariableDeclaration().Visit a parse tree produced byJavaParser.memberDeclaration().Visit a parse tree produced byJavaParser.methodBody().Visit a parse tree produced byJavaParser.methodCall().Visit a parse tree produced byJavaParser.methodDeclaration().Visit a parse tree produced byJavaParser.modifier().Visit a parse tree produced byJavaParser.nonWildcardTypeArguments().Visit a parse tree produced byJavaParser.nonWildcardTypeArgumentsOrDiamond().Visit a parse tree produced byJavaParser.packageDeclaration().Visit a parse tree produced byJavaParser.parExpression().Visit a parse tree produced byJavaParser.primary().Visit a parse tree produced byJavaParser.primitiveType().Visit a parse tree produced byJavaParser.qualifiedName().Visit a parse tree produced byJavaParser.qualifiedNameList().Visit a parse tree produced byJavaParser.resource().Visit a parse tree produced byJavaParser.resources().Visit a parse tree produced byJavaParser.resourceSpecification().Visit a parse tree produced byJavaParser.statement().Visit a parse tree produced byJavaParser.superSuffix().Visit a parse tree produced byJavaParser.switchBlockStatementGroup().Visit a parse tree produced byJavaParser.switchLabel().Visit a parse tree produced byJavaParser.typeArgument().Visit a parse tree produced byJavaParser.typeArguments().Visit a parse tree produced byJavaParser.typeArgumentsOrDiamond().Visit a parse tree produced byJavaParser.typeBound().Visit a parse tree produced byJavaParser.typeDeclaration().Visit a parse tree produced byJavaParser.typeList().Visit a parse tree produced byJavaParser.typeParameter().Visit a parse tree produced byJavaParser.typeParameters().Visit a parse tree produced byJavaParser.typeType().Visit a parse tree produced byJavaParser.typeTypeOrVoid().Visit a parse tree produced byJavaParser.variableDeclarator().Visit a parse tree produced byJavaParser.variableDeclaratorId().Visit a parse tree produced byJavaParser.variableDeclarators().Visit a parse tree produced byJavaParser.variableInitializer().Visit a parse tree produced byJavaParser.variableModifier().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
-
JavaParserBaseVisitor
public JavaParserBaseVisitor()
-
-
Method Details
-
visitCompilationUnit
Visit a parse tree produced byJavaParser.compilationUnit().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCompilationUnitin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPackageDeclaration
Visit a parse tree produced byJavaParser.packageDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPackageDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImportDeclaration
Visit a parse tree produced byJavaParser.importDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitImportDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeDeclaration
Visit a parse tree produced byJavaParser.typeDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModifier
Visit a parse tree produced byJavaParser.modifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitModifierin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceModifier
Visit a parse tree produced byJavaParser.classOrInterfaceModifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassOrInterfaceModifierin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableModifier
Visit a parse tree produced byJavaParser.variableModifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableModifierin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassDeclaration
Visit a parse tree produced byJavaParser.classDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeParameters
Visit a parse tree produced byJavaParser.typeParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeParametersin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeParameter
Visit a parse tree produced byJavaParser.typeParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeParameterin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeBound
Visit a parse tree produced byJavaParser.typeBound().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeBoundin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumDeclaration
Visit a parse tree produced byJavaParser.enumDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumConstants
Visit a parse tree produced byJavaParser.enumConstants().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumConstantsin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumConstant
Visit a parse tree produced byJavaParser.enumConstant().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumConstantin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumBodyDeclarations
Visit a parse tree produced byJavaParser.enumBodyDeclarations().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumBodyDeclarationsin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInterfaceDeclaration
Visit a parse tree produced byJavaParser.interfaceDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassBody
Visit a parse tree produced byJavaParser.classBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassBodyin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInterfaceBody
Visit a parse tree produced byJavaParser.interfaceBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceBodyin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassBodyDeclaration
Visit a parse tree produced byJavaParser.classBodyDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassBodyDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberDeclaration
Visit a parse tree produced byJavaParser.memberDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMemberDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodDeclaration
Visit a parse tree produced byJavaParser.methodDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodBody
Visit a parse tree produced byJavaParser.methodBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodBodyin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeTypeOrVoid
Visit a parse tree produced byJavaParser.typeTypeOrVoid().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeTypeOrVoidin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGenericMethodDeclaration
Visit a parse tree produced byJavaParser.genericMethodDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGenericMethodDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGenericConstructorDeclaration
Visit a parse tree produced byJavaParser.genericConstructorDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGenericConstructorDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstructorDeclaration
Visit a parse tree produced byJavaParser.constructorDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConstructorDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFieldDeclaration
Visit a parse tree produced byJavaParser.fieldDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFieldDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInterfaceBodyDeclaration
Visit a parse tree produced byJavaParser.interfaceBodyDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceBodyDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInterfaceMemberDeclaration
Visit a parse tree produced byJavaParser.interfaceMemberDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceMemberDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstDeclaration
Visit a parse tree produced byJavaParser.constDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConstDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstantDeclarator
Visit a parse tree produced byJavaParser.constantDeclarator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConstantDeclaratorin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInterfaceMethodDeclaration
Visit a parse tree produced byJavaParser.interfaceMethodDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceMethodDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInterfaceMethodModifier
Visit a parse tree produced byJavaParser.interfaceMethodModifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceMethodModifierin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGenericInterfaceMethodDeclaration
public T visitGenericInterfaceMethodDeclaration(JavaParser.GenericInterfaceMethodDeclarationContext ctx) Visit a parse tree produced byJavaParser.genericInterfaceMethodDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGenericInterfaceMethodDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarators
Visit a parse tree produced byJavaParser.variableDeclarators().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableDeclaratorsin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarator
Visit a parse tree produced byJavaParser.variableDeclarator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableDeclaratorin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableDeclaratorId
Visit a parse tree produced byJavaParser.variableDeclaratorId().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableDeclaratorIdin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableInitializer
Visit a parse tree produced byJavaParser.variableInitializer().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableInitializerin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArrayInitializer
Visit a parse tree produced byJavaParser.arrayInitializer().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrayInitializerin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceType
Visit a parse tree produced byJavaParser.classOrInterfaceType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassOrInterfaceTypein interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArgument
Visit a parse tree produced byJavaParser.typeArgument().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgumentin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedNameList
Visit a parse tree produced byJavaParser.qualifiedNameList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedNameListin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameters
Visit a parse tree produced byJavaParser.formalParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParametersin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameterList
Visit a parse tree produced byJavaParser.formalParameterList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParameterListin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameter
Visit a parse tree produced byJavaParser.formalParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParameterin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLastFormalParameter
Visit a parse tree produced byJavaParser.lastFormalParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLastFormalParameterin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedName
Visit a parse tree produced byJavaParser.qualifiedName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedNamein interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLiteral
Visit a parse tree produced byJavaParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLiteralin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIntegerLiteral
Visit a parse tree produced byJavaParser.integerLiteral().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIntegerLiteralin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFloatLiteral
Visit a parse tree produced byJavaParser.floatLiteral().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFloatLiteralin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotation
Visit a parse tree produced byJavaParser.annotation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValuePairs
Visit a parse tree produced byJavaParser.elementValuePairs().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuePairsin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValuePair
Visit a parse tree produced byJavaParser.elementValuePair().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuePairin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValue
Visit a parse tree produced byJavaParser.elementValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuein interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValueArrayInitializer
Visit a parse tree produced byJavaParser.elementValueArrayInitializer().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValueArrayInitializerin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeDeclaration
Visit a parse tree produced byJavaParser.annotationTypeDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationTypeDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeBody
Visit a parse tree produced byJavaParser.annotationTypeBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationTypeBodyin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeElementDeclaration
public T visitAnnotationTypeElementDeclaration(JavaParser.AnnotationTypeElementDeclarationContext ctx) Visit a parse tree produced byJavaParser.annotationTypeElementDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationTypeElementDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeElementRest
Visit a parse tree produced byJavaParser.annotationTypeElementRest().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationTypeElementRestin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationMethodOrConstantRest
Visit a parse tree produced byJavaParser.annotationMethodOrConstantRest().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationMethodOrConstantRestin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationMethodRest
Visit a parse tree produced byJavaParser.annotationMethodRest().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationMethodRestin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationConstantRest
Visit a parse tree produced byJavaParser.annotationConstantRest().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationConstantRestin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDefaultValue
Visit a parse tree produced byJavaParser.defaultValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDefaultValuein interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlock
Visit a parse tree produced byJavaParser.block().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlockStatement
Visit a parse tree produced byJavaParser.blockStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockStatementin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLocalVariableDeclaration
Visit a parse tree produced byJavaParser.localVariableDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLocalVariableDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLocalTypeDeclaration
Visit a parse tree produced byJavaParser.localTypeDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLocalTypeDeclarationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStatement
Visit a parse tree produced byJavaParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStatementin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCatchClause
Visit a parse tree produced byJavaParser.catchClause().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCatchClausein interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCatchType
Visit a parse tree produced byJavaParser.catchType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCatchTypein interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFinallyBlock
Visit a parse tree produced byJavaParser.finallyBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFinallyBlockin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitResourceSpecification
Visit a parse tree produced byJavaParser.resourceSpecification().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourceSpecificationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitResources
Visit a parse tree produced byJavaParser.resources().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourcesin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitResource
Visit a parse tree produced byJavaParser.resource().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourcein interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchBlockStatementGroup
Visit a parse tree produced byJavaParser.switchBlockStatementGroup().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchBlockStatementGroupin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchLabel
Visit a parse tree produced byJavaParser.switchLabel().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchLabelin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForControl
Visit a parse tree produced byJavaParser.forControl().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForControlin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForInit
Visit a parse tree produced byJavaParser.forInit().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForInitin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnhancedForControl
Visit a parse tree produced byJavaParser.enhancedForControl().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnhancedForControlin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParExpression
Visit a parse tree produced byJavaParser.parExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParExpressionin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpressionList
Visit a parse tree produced byJavaParser.expressionList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpressionListin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodCall
Visit a parse tree produced byJavaParser.methodCall().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodCallin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstructorCall
Visit a parse tree produced byJavaParser.constructorCall().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConstructorCallin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpression
Visit a parse tree produced byJavaParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpressionin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLambdaExpression
Visit a parse tree produced byJavaParser.lambdaExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLambdaExpressionin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLambdaParameters
Visit a parse tree produced byJavaParser.lambdaParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLambdaParametersin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLambdaBody
Visit a parse tree produced byJavaParser.lambdaBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLambdaBodyin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimary
Visit a parse tree produced byJavaParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimaryin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassType
Visit a parse tree produced byJavaParser.classType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassTypein interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreator
Visit a parse tree produced byJavaParser.creator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreatorin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreatedName
Visit a parse tree produced byJavaParser.createdName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreatedNamein interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInnerCreator
Visit a parse tree produced byJavaParser.innerCreator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInnerCreatorin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArrayCreatorRest
Visit a parse tree produced byJavaParser.arrayCreatorRest().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrayCreatorRestin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassCreatorRest
Visit a parse tree produced byJavaParser.classCreatorRest().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassCreatorRestin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExplicitGenericInvocation
Visit a parse tree produced byJavaParser.explicitGenericInvocation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExplicitGenericInvocationin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArgumentsOrDiamond
Visit a parse tree produced byJavaParser.typeArgumentsOrDiamond().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgumentsOrDiamondin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNonWildcardTypeArgumentsOrDiamond
public T visitNonWildcardTypeArgumentsOrDiamond(JavaParser.NonWildcardTypeArgumentsOrDiamondContext ctx) Visit a parse tree produced byJavaParser.nonWildcardTypeArgumentsOrDiamond().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNonWildcardTypeArgumentsOrDiamondin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNonWildcardTypeArguments
Visit a parse tree produced byJavaParser.nonWildcardTypeArguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNonWildcardTypeArgumentsin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeList
Visit a parse tree produced byJavaParser.typeList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeListin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeType
Visit a parse tree produced byJavaParser.typeType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeTypein interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimitiveType
Visit a parse tree produced byJavaParser.primitiveType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimitiveTypein interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArguments
Visit a parse tree produced byJavaParser.typeArguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgumentsin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSuperSuffix
Visit a parse tree produced byJavaParser.superSuffix().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSuperSuffixin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExplicitGenericInvocationSuffix
public T visitExplicitGenericInvocationSuffix(JavaParser.ExplicitGenericInvocationSuffixContext ctx) Visit a parse tree produced byJavaParser.explicitGenericInvocationSuffix().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExplicitGenericInvocationSuffixin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArguments
Visit a parse tree produced byJavaParser.arguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArgumentsin interfaceJavaParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-