Class JavaAstVisitor

  • All Implemented Interfaces:
    com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>, org.antlr.v4.runtime.tree.ParseTreeVisitor<DetailAstImpl>

    public final class JavaAstVisitor
    extends com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
    Visitor class used to build Checkstyle's Java AST from the parse tree produced by JavaLanguageParser. In each visit... method, we visit the children of a node (which correspond to subrules) or create terminal nodes (tokens), and return a subtree as a result.

    Example:

    The following package declaration:

     package com.puppycrawl.tools.checkstyle;
     

    Will be parsed by the packageDeclaration rule from JavaLanguageParser.g4:

     packageDeclaration
         : annotations[true] LITERAL_PACKAGE qualifiedName SEMI
         ;
     

    We override the visitPackageDeclaration method generated by ANTLR in JavaLanguageParser at visitPackageDeclaration(JavaLanguageParser.PackageDeclarationContext) to create a subtree based on the subrules and tokens found in the packageDeclaration subrule accordingly, thus producing the following AST:

     PACKAGE_DEF -> package
     |--ANNOTATIONS -> ANNOTATIONS
     |--DOT -> .
     |   |--DOT -> .
     |   |   |--DOT -> .
     |   |   |   |--IDENT -> com
     |   |   |   `--IDENT -> puppycrawl
     |   |   `--IDENT -> tools
     |   `--IDENT -> checkstyle
     `--SEMI -> ;
     

    See #10434 for a good example of how to make changes to Checkstyle's grammar and AST.

    The order of visit... methods in JavaAstVisitor.java and production rules in JavaLanguageParser.g4 should be consistent to ease maintenance.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  JavaAstVisitor.DetailAstPair
      Used to swap and organize DetailAstImpl subtrees.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int[] EXPRESSIONS_WITH_NO_EXPR_ROOT
      The tokens here are technically expressions, but should not return an EXPR token as their root.
      private static String LEFT_SHIFT
      String representation of the left shift operator.
      private static String QUOTE
      String representation of the double quote character.
      private static String RIGHT_SHIFT
      String representation of the right shift operator.
      private org.antlr.v4.runtime.BufferedTokenStream tokens
      Token stream to check for hidden tokens.
      private static String UNSIGNED_RIGHT_SHIFT
      String representation of the unsigned right shift operator.
    • Constructor Summary

      Constructors 
      Constructor Description
      JavaAstVisitor​(org.antlr.v4.runtime.CommonTokenStream tokenStream)
      Constructs a JavaAstVisitor with given token stream.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static void addLastSibling​(DetailAstImpl self, DetailAstImpl sibling)
      Add new sibling to the end of existing siblings.
      private DetailAstImpl buildExpressionNode​(org.antlr.v4.runtime.tree.ParseTree exprNode)
      Builds an expression node.
      private static DetailAstImpl buildSimpleStringTemplateArgument​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TemplateArgumentContext ctx)
      Builds a simple string template argument AST, which basically means that we transform a string literal into a string template AST because it is a string template argument.
      private DetailAstImpl buildStringTemplateMiddle​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.StringTemplateMiddleContext ctx)
      Builds a string template middle AST.
      private DetailAstImpl create​(int tokenType, org.antlr.v4.runtime.Token startToken)
      Create a DetailAstImpl from a given token and token type.
      private DetailAstImpl create​(org.antlr.v4.runtime.Token token)
      Create a DetailAstImpl from a given token.
      private DetailAstImpl create​(org.antlr.v4.runtime.tree.TerminalNode node)
      Create a DetailAstImpl from a given TerminalNode.
      private static DetailAstImpl createImaginary​(int tokenType)
      Create a DetailAstImpl from a given token and token type.
      private static DetailAstImpl createImaginary​(int tokenType, String text)
      Create a DetailAstImpl from a given token type and text.
      private static DetailAstImpl createImaginary​(int tokenType, String text, int lineNumber, int columnNumber)
      Creates an imaginary DetailAstImpl with the given token details.
      private DetailAstImpl createLambdaParameter​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IdContext ctx)
      Creates a 'PARAMETER_DEF' node for a lambda expression, with imaginary modifier and type nodes.
      private DetailAstImpl createModifiers​(List<? extends org.antlr.v4.runtime.tree.ParseTree> modifierList)
      Builds the modifiers AST.
      private DetailAstImpl createTypeDeclaration​(org.antlr.v4.runtime.ParserRuleContext ctx, int type, List<? extends org.antlr.v4.runtime.tree.ParseTree> modifierList)
      Creates a type declaration DetailAstImpl from a given rule context.
      private DetailAstImpl flattenedTree​(org.antlr.v4.runtime.ParserRuleContext ctx)
      Builds the AST for a particular node, then returns a "flattened" tree of siblings.
      private DetailAstImpl getInnerBopAst​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BinOpContext descendant)
      Builds the binary operation (binOp) AST.
      private void processChildren​(DetailAstImpl parent, List<? extends org.antlr.v4.runtime.tree.ParseTree> children)
      Adds all the children from the given ParseTree or JavaParserContext list to the parent DetailAstImpl.
      DetailAstImpl visit​(org.antlr.v4.runtime.tree.ParseTree tree)  
      DetailAstImpl visitAnnotation​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationContext ctx)
      Visit a parse tree produced by JavaLanguageParser.annotation().
      DetailAstImpl visitAnnotationField​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationFieldContext ctx)
      Visit a parse tree produced by the annotationField labeled alternative in JavaLanguageParser.annotationTypeElementRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).
      DetailAstImpl visitAnnotationMethodRest​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationMethodRestContext ctx)
      Visit a parse tree produced by JavaLanguageParser.annotationMethodRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext).
      DetailAstImpl visitAnnotations​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationsContext ctx)
      Visit a parse tree produced by JavaLanguageParser.annotations(boolean).
      DetailAstImpl visitAnnotationType​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationTypeContext ctx)
      Visit a parse tree produced by the annotationType labeled alternative in JavaLanguageParser.annotationTypeElementRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).
      DetailAstImpl visitAnnotationTypeBody​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationTypeBodyContext ctx)
      Visit a parse tree produced by JavaLanguageParser.annotationTypeBody().
      DetailAstImpl visitAnnotationTypeDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationTypeDeclarationContext ctx)
      Visit a parse tree produced by JavaLanguageParser.annotationTypeDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).
      DetailAstImpl visitAnnotationTypeElementDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationTypeElementDeclarationContext ctx)
      Visit a parse tree produced by JavaLanguageParser.annotationTypeElementDeclaration().
      DetailAstImpl visitArguments​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ArgumentsContext ctx)
      Visit a parse tree produced by JavaLanguageParser.arguments().
      DetailAstImpl visitArrayCreatorRest​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ArrayCreatorRestContext ctx)
      Visit a parse tree produced by JavaLanguageParser.arrayCreatorRest().
      DetailAstImpl visitArrayDeclarator​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ArrayDeclaratorContext ctx)
      Visit a parse tree produced by JavaLanguageParser.arrayDeclarator().
      DetailAstImpl visitArrayInitializer​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ArrayInitializerContext ctx)
      Visit a parse tree produced by JavaLanguageParser.arrayInitializer().
      DetailAstImpl visitAssertExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AssertExpContext ctx)
      Visit a parse tree produced by the assertExp labeled alternative in JavaLanguageParser.statement().
      DetailAstImpl visitBinOp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BinOpContext ctx)
      Visit a parse tree produced by the binOp labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitBitShift​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BitShiftContext ctx)
      Visit a parse tree produced by the bitShift labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitBlock​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BlockContext ctx)
      Visit a parse tree produced by JavaLanguageParser.block().
      DetailAstImpl visitBlockStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BlockStatContext ctx)
      Visit a parse tree produced by the blockStat labeled alternative in JavaLanguageParser.statement().
      DetailAstImpl visitBracketsWithExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BracketsWithExpContext ctx)
      Visit a parse tree produced by JavaLanguageParser.bracketsWithExp().
      DetailAstImpl visitBreakStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BreakStatContext ctx)
      Visit a parse tree produced by the breakStat labeled alternative in JavaLanguageParser.statement().
      DetailAstImpl visitCaseConstant​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CaseConstantContext ctx)
      Visit a parse tree produced by JavaLanguageParser.caseConstant().
      DetailAstImpl visitCaseConstants​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CaseConstantsContext ctx)
      Visit a parse tree produced by JavaLanguageParser.caseConstants().
      DetailAstImpl visitCaseLabel​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CaseLabelContext ctx)
      Visit a parse tree produced by the caseLabel labeled alternative in JavaLanguageParser.switchLabel().
      DetailAstImpl visitCastExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CastExpContext ctx)
      Visit a parse tree produced by the castExp labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitCatchClause​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CatchClauseContext ctx)
      Visit a parse tree produced by JavaLanguageParser.catchClause().
      DetailAstImpl visitCatchParameter​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CatchParameterContext ctx)
      Visit a parse tree produced by JavaLanguageParser.catchParameter().
      DetailAstImpl visitCatchType​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CatchTypeContext ctx)
      Visit a parse tree produced by JavaLanguageParser.catchType().
      DetailAstImpl visitClassBlock​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassBlockContext ctx)
      Visit a parse tree produced by the classBlock labeled alternative in JavaLanguageParser.classBodyDeclaration().
      DetailAstImpl visitClassBody​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassBodyContext ctx)
      Visit a parse tree produced by JavaLanguageParser.classBody().
      DetailAstImpl visitClassCreatorRest​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassCreatorRestContext ctx)
      Visit a parse tree produced by JavaLanguageParser.classCreatorRest().
      DetailAstImpl visitClassDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassDeclarationContext ctx)
      Visit a parse tree produced by JavaLanguageParser.classDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).
      DetailAstImpl visitClassExtends​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassExtendsContext ctx)
      Visit a parse tree produced by JavaLanguageParser.classExtends().
      DetailAstImpl visitClassOrInterfaceType​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassOrInterfaceTypeContext ctx)
      Visit a parse tree produced by JavaLanguageParser.classOrInterfaceType(boolean).
      DetailAstImpl visitClassRefPrimary​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassRefPrimaryContext ctx)
      Visit a parse tree produced by the classRefPrimary labeled alternative in JavaLanguageParser.primary().
      DetailAstImpl visitCompactConstructorDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CompactConstructorDeclarationContext ctx)
      Visit a parse tree produced by JavaLanguageParser.compactConstructorDeclaration().
      DetailAstImpl visitCompilationUnit​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CompilationUnitContext ctx)
      Visit a parse tree produced by JavaLanguageParser.compilationUnit().
      DetailAstImpl visitConstructorBlock​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ConstructorBlockContext ctx)
      Visit a parse tree produced by JavaLanguageParser.constructorBlock().
      DetailAstImpl visitConstructorDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ConstructorDeclarationContext ctx)
      Visit a parse tree produced by JavaLanguageParser.constructorDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).
      DetailAstImpl visitContinueStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ContinueStatContext ctx)
      Visit a parse tree produced by the continueStat labeled alternative in JavaLanguageParser.statement().
      DetailAstImpl visitCreatedNameObject​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CreatedNameObjectContext ctx)
      Visit a parse tree produced by the createdNameObject labeled alternative in JavaLanguageParser.createdName().
      DetailAstImpl visitCreatedNamePrimitive​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CreatedNamePrimitiveContext ctx)
      Visit a parse tree produced by the createdNamePrimitive labeled alternative in JavaLanguageParser.createdName().
      DetailAstImpl visitCreator​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CreatorContext ctx)
      Visit a parse tree produced by JavaLanguageParser.creator().
      DetailAstImpl visitDefaultLabel​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.DefaultLabelContext ctx)
      Visit a parse tree produced by the defaultLabel labeled alternative in JavaLanguageParser.switchLabel().
      DetailAstImpl visitDefaultValue​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.DefaultValueContext ctx)
      Visit a parse tree produced by JavaLanguageParser.defaultValue().
      DetailAstImpl visitDiamond​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.DiamondContext ctx)
      Visit a parse tree produced by the diamond labeled alternative in JavaLanguageParser.typeArgumentsOrDiamond().
      DetailAstImpl visitDoStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.DoStatContext ctx)
      Visit a parse tree produced by the doStat labeled alternative in JavaLanguageParser.statement().
      DetailAstImpl visitElementValue​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElementValueContext ctx)
      Visit a parse tree produced by JavaLanguageParser.elementValue().
      DetailAstImpl visitElementValueArrayInitializer​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElementValueArrayInitializerContext ctx)
      Visit a parse tree produced by JavaLanguageParser.elementValueArrayInitializer().
      DetailAstImpl visitElementValuePair​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElementValuePairContext ctx)
      Visit a parse tree produced by JavaLanguageParser.elementValuePair().
      DetailAstImpl visitElementValuePairs​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElementValuePairsContext ctx)
      Visit a parse tree produced by JavaLanguageParser.elementValuePairs().
      DetailAstImpl visitElseStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElseStatContext ctx)
      Visit a parse tree produced by JavaLanguageParser.elseStat().
      DetailAstImpl visitEmptyClass​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EmptyClassContext ctx)
      Visit a parse tree produced by the emptyClass labeled alternative in JavaLanguageParser.classBodyDeclaration().
      DetailAstImpl visitEmptyStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EmptyStatContext ctx)
      Visit a parse tree produced by the emptyStat labeled alternative in JavaLanguageParser.statement().
      DetailAstImpl visitEnhancedFor​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnhancedForContext ctx)
      Visit a parse tree produced by the enhancedFor labeled alternative in JavaLanguageParser.forControl().
      DetailAstImpl visitEnhancedForControl​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnhancedForControlContext ctx)
      Visit a parse tree produced by JavaLanguageParser.enhancedForControl().
      DetailAstImpl visitEnhancedForControlWithRecordPattern​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnhancedForControlWithRecordPatternContext ctx)
      Visit a parse tree produced by JavaLanguageParser.enhancedForControlWithRecordPattern().
      DetailAstImpl visitEnumBody​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumBodyContext ctx)
      Visit a parse tree produced by JavaLanguageParser.enumBody().
      DetailAstImpl visitEnumBodyDeclarations​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumBodyDeclarationsContext ctx)
      Visit a parse tree produced by JavaLanguageParser.enumBodyDeclarations().
      DetailAstImpl visitEnumConstant​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumConstantContext ctx)
      Visit a parse tree produced by JavaLanguageParser.enumConstant().
      DetailAstImpl visitEnumConstants​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumConstantsContext ctx)
      Visit a parse tree produced by JavaLanguageParser.enumConstants().
      DetailAstImpl visitEnumDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumDeclarationContext ctx)
      Visit a parse tree produced by JavaLanguageParser.enumDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).
      DetailAstImpl visitExplicitCtorCall​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ExplicitCtorCallContext ctx)
      Visit a parse tree produced by the explicitCtorCall labeled alternative in JavaLanguageParser.explicitConstructorInvocation().
      DetailAstImpl visitExpression​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ExpressionContext ctx)
      Visit a parse tree produced by JavaLanguageParser.expression().
      DetailAstImpl visitExpressionList​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ExpressionListContext ctx)
      Visit a parse tree produced by JavaLanguageParser.expressionList().
      DetailAstImpl visitExpStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ExpStatContext ctx)
      Visit a parse tree produced by the expStat labeled alternative in JavaLanguageParser.statement().
      DetailAstImpl visitFieldDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FieldDeclarationContext ctx)
      Visit a parse tree produced by JavaLanguageParser.fieldDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).
      DetailAstImpl visitFinallyBlock​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FinallyBlockContext ctx)
      Visit a parse tree produced by JavaLanguageParser.finallyBlock().
      DetailAstImpl visitFloatLiteral​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FloatLiteralContext ctx)
      Visit a parse tree produced by JavaLanguageParser.floatLiteral().
      DetailAstImpl visitForFor​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ForForContext ctx)
      Visit a parse tree produced by the forFor labeled alternative in JavaLanguageParser.forControl().
      DetailAstImpl visitForInit​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ForInitContext ctx)
      Visit a parse tree produced by JavaLanguageParser.forInit().
      DetailAstImpl visitFormalLambdaParam​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FormalLambdaParamContext ctx)
      Visit a parse tree produced by the formalLambdaParam labeled alternative in JavaLanguageParser.lambdaParameters().
      DetailAstImpl visitFormalParameter​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FormalParameterContext ctx)
      Visit a parse tree produced by JavaLanguageParser.formalParameter().
      DetailAstImpl visitFormalParameterList​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FormalParameterListContext ctx)
      Visit a parse tree produced by JavaLanguageParser.formalParameterList().
      DetailAstImpl visitFormalParameters​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FormalParametersContext ctx)
      Visit a parse tree produced by JavaLanguageParser.formalParameters().
      DetailAstImpl visitForStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ForStatContext ctx)
      Visit a parse tree produced by the forStat labeled alternative in JavaLanguageParser.statement().
      DetailAstImpl visitGuardedPattern​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.GuardedPatternContext ctx)
      Visit a parse tree produced by JavaLanguageParser.guardedPattern().
      DetailAstImpl visitId​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IdContext ctx)
      Visit a parse tree produced by JavaLanguageParser.id().
      DetailAstImpl visitIfStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IfStatContext ctx)
      Visit a parse tree produced by the ifStat labeled alternative in JavaLanguageParser.statement().
      DetailAstImpl visitImplementsClause​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ImplementsClauseContext ctx)
      Visit a parse tree produced by JavaLanguageParser.implementsClause().
      DetailAstImpl visitImportDec​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ImportDecContext ctx)
      Visit a parse tree produced by the importDec labeled alternative in JavaLanguageParser.importDeclaration().
      DetailAstImpl visitIndexOp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IndexOpContext ctx)
      Visit a parse tree produced by the indexOp labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitInitExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InitExpContext ctx)
      Visit a parse tree produced by the initExp labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitInnerCreator​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InnerCreatorContext ctx)
      Visit a parse tree produced by JavaLanguageParser.innerCreator().
      DetailAstImpl visitInnerPattern​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InnerPatternContext ctx)
      Visit a parse tree produced by JavaLanguageParser.innerPattern().
      DetailAstImpl visitInstanceOfExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InstanceOfExpContext ctx)
      Visit a parse tree produced by the instanceOfExp labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitIntegerLiteral​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IntegerLiteralContext ctx)
      Visit a parse tree produced by JavaLanguageParser.integerLiteral().
      DetailAstImpl visitInterfaceBody​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceBodyContext ctx)
      Visit a parse tree produced by JavaLanguageParser.interfaceBody().
      DetailAstImpl visitInterfaceBodyDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceBodyDeclarationContext ctx)
      Visit a parse tree produced by JavaLanguageParser.interfaceBodyDeclaration().
      DetailAstImpl visitInterfaceDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceDeclarationContext ctx)
      Visit a parse tree produced by JavaLanguageParser.interfaceDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).
      DetailAstImpl visitInterfaceExtends​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceExtendsContext ctx)
      Visit a parse tree produced by JavaLanguageParser.interfaceExtends().
      DetailAstImpl visitInterfaceMethodDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceMethodDeclarationContext ctx)
      Visit a parse tree produced by JavaLanguageParser.interfaceMethodDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).
      DetailAstImpl visitInvOp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InvOpContext ctx)
      Visit a parse tree produced by the invOp labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitLabelStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LabelStatContext ctx)
      Visit a parse tree produced by the labelStat labeled alternative in JavaLanguageParser.statement().
      DetailAstImpl visitLambdaExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LambdaExpContext ctx)
      Visit a parse tree produced by the lambdaExp labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitLastFormalParameter​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LastFormalParameterContext ctx)
      Visit a parse tree produced by JavaLanguageParser.lastFormalParameter().
      DetailAstImpl visitLastRecordComponent​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LastRecordComponentContext ctx)
      Visit a parse tree produced by JavaLanguageParser.lastRecordComponent().
      DetailAstImpl visitLiteral​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LiteralContext ctx)
      Visit a parse tree produced by JavaLanguageParser.literal().
      DetailAstImpl visitLocalVar​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LocalVarContext ctx)
      Visit a parse tree produced by the localVar labeled alternative in JavaLanguageParser.blockStatement().
      DetailAstImpl visitMethodBody​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MethodBodyContext ctx)
      Visit a parse tree produced by JavaLanguageParser.methodBody().
      DetailAstImpl visitMethodCall​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MethodCallContext ctx)
      Visit a parse tree produced by the methodCall labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitMethodDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MethodDeclarationContext ctx)
      Visit a parse tree produced by JavaLanguageParser.methodDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).
      DetailAstImpl visitMethodRef​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MethodRefContext ctx)
      Visit a parse tree produced by the methodRef labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitModifier​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext ctx)
      Visit a parse tree produced by JavaLanguageParser.modifier().
      DetailAstImpl visitMultiLambdaParam​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MultiLambdaParamContext ctx)
      Visit a parse tree produced by the multiLambdaParam labeled alternative in JavaLanguageParser.lambdaParameters().
      DetailAstImpl visitMultiLambdaParams​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MultiLambdaParamsContext ctx)
      Visit a parse tree produced by JavaLanguageParser.multiLambdaParams().
      DetailAstImpl visitNewExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.NewExpContext ctx)
      Visit a parse tree produced by the newExp labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitNonWildcardDiamond​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.NonWildcardDiamondContext ctx)
      Visit a parse tree produced by the nonWildcardDiamond labeled alternative in JavaLanguageParser.nonWildcardTypeArgumentsOrDiamond().
      DetailAstImpl visitNonWildcardTypeArguments​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.NonWildcardTypeArgumentsContext ctx)
      Visit a parse tree produced by JavaLanguageParser.nonWildcardTypeArguments().
      DetailAstImpl visitPackageDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PackageDeclarationContext ctx)
      Visit a parse tree produced by JavaLanguageParser.packageDeclaration().
      DetailAstImpl visitParenPattern​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ParenPatternContext ctx)
      Visit a parse tree produced by the parenPattern labeled alternative in JavaLanguageParser.primaryPattern().
      DetailAstImpl visitParenPrimary​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ParenPrimaryContext ctx)
      Visit a parse tree produced by the parenPrimary labeled alternative in JavaLanguageParser.primary().
      DetailAstImpl visitParExpression​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ParExpressionContext ctx)
      Visit a parse tree produced by JavaLanguageParser.parExpression().
      DetailAstImpl visitPattern​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PatternContext ctx)
      Visit a parse tree produced by JavaLanguageParser.pattern().
      DetailAstImpl visitPermittedSubclassesAndInterfaces​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PermittedSubclassesAndInterfacesContext ctx)
      Visit a parse tree produced by JavaLanguageParser.permittedSubclassesAndInterfaces().
      DetailAstImpl visitPostfix​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PostfixContext ctx)
      Visit a parse tree produced by the postfix labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitPrefix​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrefixContext ctx)
      Visit a parse tree produced by the prefix labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitPrimaryCtorCall​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrimaryCtorCallContext ctx)
      Visit a parse tree produced by the primaryCtorCall labeled alternative in JavaLanguageParser.explicitConstructorInvocation().
      DetailAstImpl visitPrimaryExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrimaryExpContext ctx)
      Visit a parse tree produced by the primaryExp labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitPrimitivePrimary​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrimitivePrimaryContext ctx)
      Visit a parse tree produced by the primitivePrimary labeled alternative in JavaLanguageParser.primary().
      DetailAstImpl visitPrimitiveType​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrimitiveTypeContext ctx)
      Visit a parse tree produced by JavaLanguageParser.primitiveType().
      DetailAstImpl visitQualifiedName​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.QualifiedNameContext ctx)
      Visit a parse tree produced by JavaLanguageParser.qualifiedName().
      DetailAstImpl visitQualifiedNameList​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.QualifiedNameListContext ctx)
      Visit a parse tree produced by JavaLanguageParser.qualifiedNameList().
      DetailAstImpl visitRecordBody​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordBodyContext ctx)
      Visit a parse tree produced by JavaLanguageParser.recordBody().
      DetailAstImpl visitRecordComponent​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordComponentContext ctx)
      Visit a parse tree produced by JavaLanguageParser.recordComponent().
      DetailAstImpl visitRecordComponentPatternList​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordComponentPatternListContext ctx)
      Visit a parse tree produced by JavaLanguageParser.recordComponentPatternList().
      DetailAstImpl visitRecordComponents​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordComponentsContext ctx)
      Visit a parse tree produced by JavaLanguageParser.recordComponents().
      DetailAstImpl visitRecordComponentsList​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordComponentsListContext ctx)
      Visit a parse tree produced by JavaLanguageParser.recordComponentsList().
      DetailAstImpl visitRecordDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordDeclarationContext ctx)
      Visit a parse tree produced by JavaLanguageParser.recordDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).
      DetailAstImpl visitRecordPattern​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordPatternContext ctx)
      Visit a parse tree produced by JavaLanguageParser.recordPattern().
      DetailAstImpl visitRecordPatternDef​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordPatternDefContext ctx)
      Visit a parse tree produced by the recordPatternDef labeled alternative in JavaLanguageParser.primaryPattern().
      DetailAstImpl visitRefOp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RefOpContext ctx)
      Visit a parse tree produced by the refOp labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitResourceDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ResourceDeclarationContext ctx)
      Visit a parse tree produced by JavaLanguageParser.resourceDeclaration().
      DetailAstImpl visitResources​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ResourcesContext ctx)
      Visit a parse tree produced by JavaLanguageParser.resources().
      DetailAstImpl visitResourceSpecification​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ResourceSpecificationContext ctx)
      Visit a parse tree produced by JavaLanguageParser.resourceSpecification().
      DetailAstImpl visitReturnStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ReturnStatContext ctx)
      Visit a parse tree produced by the returnStat labeled alternative in JavaLanguageParser.statement().
      DetailAstImpl visitSimpleMethodCall​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SimpleMethodCallContext ctx)
      Visit a parse tree produced by the simpleMethodCall labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitSimpleTypeArgument​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SimpleTypeArgumentContext ctx)
      Visit a parse tree produced by the simpleTypeArgument labeled alternative in JavaLanguageParser.typeArgument().
      DetailAstImpl visitSingleLambdaParam​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SingleLambdaParamContext ctx)
      Visit a parse tree produced by the singleLambdaParam labeled alternative in JavaLanguageParser.lambdaParameters().
      DetailAstImpl visitSingleSemiImport​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SingleSemiImportContext ctx)
      Visit a parse tree produced by the singleSemiImport labeled alternative in JavaLanguageParser.importDeclaration().
      DetailAstImpl visitStringTemplate​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.StringTemplateContext ctx)
      Visit a parse tree produced by JavaLanguageParser.stringTemplate().
      DetailAstImpl visitStringTemplateBegin​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.StringTemplateBeginContext ctx)
      Visit a parse tree produced by JavaLanguageParser.stringTemplateBegin().
      DetailAstImpl visitStringTemplateEnd​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.StringTemplateEndContext ctx)
      Visit a parse tree produced by JavaLanguageParser.stringTemplateEnd().
      DetailAstImpl visitStringTemplateMid​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.StringTemplateMidContext ctx)
      Visit a parse tree produced by JavaLanguageParser.stringTemplateMid().
      DetailAstImpl visitSuperExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SuperExpContext ctx)
      Visit a parse tree produced by the superExp labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitSuperSuffixDot​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SuperSuffixDotContext ctx)
      Visit a parse tree produced by the superSuffixDot labeled alternative in JavaLanguageParser.superSuffix().
      DetailAstImpl visitSwitchBlocks​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchBlocksContext ctx)
      Visit a parse tree produced by the switchBlocks labeled alternative in JavaLanguageParser.switchBlock().
      DetailAstImpl visitSwitchBlockStatementGroup​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchBlockStatementGroupContext ctx)
      Visit a parse tree produced by JavaLanguageParser.switchBlockStatementGroup().
      DetailAstImpl visitSwitchExpressionOrStatement​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchExpressionOrStatementContext ctx)
      Visit a parse tree produced by JavaLanguageParser.switchExpressionOrStatement().
      DetailAstImpl visitSwitchLabeledBlock​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchLabeledBlockContext ctx)
      Visit a parse tree produced by JavaLanguageParser.switchLabeledBlock().
      DetailAstImpl visitSwitchLabeledExpression​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchLabeledExpressionContext ctx)
      Visit a parse tree produced by JavaLanguageParser.switchLabeledExpression().
      DetailAstImpl visitSwitchLabeledThrow​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchLabeledThrowContext ctx)
      Visit a parse tree produced by JavaLanguageParser.switchLabeledThrow().
      DetailAstImpl visitSwitchRules​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchRulesContext ctx)
      Visit a parse tree produced by the switchRules labeled alternative in JavaLanguageParser.switchBlock().
      DetailAstImpl visitSyncStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SyncStatContext ctx)
      Visit a parse tree produced by the syncStat labeled alternative in JavaLanguageParser.statement().
      DetailAstImpl visitTemplateArgument​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TemplateArgumentContext ctx)
      Visit a parse tree produced by JavaLanguageParser.templateArgument().
      DetailAstImpl visitTemplateExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TemplateExpContext ctx)
      Visit a parse tree produced by the templateExp labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitTernaryOp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TernaryOpContext ctx)
      Visit a parse tree produced by the ternaryOp labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitTextBlockLiteral​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TextBlockLiteralContext ctx)
      Visit a parse tree produced by JavaLanguageParser.textBlockLiteral().
      DetailAstImpl visitThisExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ThisExpContext ctx)
      Visit a parse tree produced by the thisExp labeled alternative in JavaLanguageParser.expr().
      DetailAstImpl visitThrowsList​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ThrowsListContext ctx)
      Visit a parse tree produced by JavaLanguageParser.throwsList().
      DetailAstImpl visitThrowStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ThrowStatContext ctx)
      Visit a parse tree produced by the throwStat labeled alternative in JavaLanguageParser.statement().
      DetailAstImpl visitTokenPrimary​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TokenPrimaryContext ctx)
      Visit a parse tree produced by the tokenPrimary labeled alternative in JavaLanguageParser.primary().
      DetailAstImpl visitTryStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TryStatContext ctx)
      Visit a parse tree produced by the tryStat labeled alternative in JavaLanguageParser.statement().
      DetailAstImpl visitTryWithResourceStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TryWithResourceStatContext ctx)
      Visit a parse tree produced by the tryWithResourceStat labeled alternative in JavaLanguageParser.statement().
      DetailAstImpl visitTypeArgs​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeArgsContext ctx)
      Visit a parse tree produced by the typeArgs labeled alternative in JavaLanguageParser.typeArgumentsOrDiamond().
      DetailAstImpl visitTypeArguments​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeArgumentsContext ctx)
      Visit a parse tree produced by JavaLanguageParser.typeArguments().
      DetailAstImpl visitTypeArgumentsTypeList​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeArgumentsTypeListContext ctx)
      Visit a parse tree produced by JavaLanguageParser.typeArgumentsTypeList().
      DetailAstImpl visitTypeBound​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeBoundContext ctx)
      Visit a parse tree produced by JavaLanguageParser.typeBound().
      DetailAstImpl visitTypeBoundType​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeBoundTypeContext ctx)
      Visit a parse tree produced by JavaLanguageParser.typeBoundType().
      DetailAstImpl visitTypeCastParameters​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeCastParametersContext ctx)
      Visit a parse tree produced by JavaLanguageParser.typeCastParameters().
      DetailAstImpl visitTypeDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeDeclarationContext ctx)
      Visit a parse tree produced by JavaLanguageParser.typeDeclaration().
      DetailAstImpl visitTypeList​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeListContext ctx)
      Visit a parse tree produced by JavaLanguageParser.typeList().
      DetailAstImpl visitTypeParameter​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeParameterContext ctx)
      Visit a parse tree produced by JavaLanguageParser.typeParameter().
      DetailAstImpl visitTypeParameters​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeParametersContext ctx)
      Visit a parse tree produced by JavaLanguageParser.typeParameters().
      DetailAstImpl visitTypePatternDef​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypePatternDefContext ctx)
      Visit a parse tree produced by the typePatternDef labeled alternative in JavaLanguageParser.typePattern().
      DetailAstImpl visitTypeType​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext ctx)
      Visit a parse tree produced by JavaLanguageParser.typeType(boolean).
      DetailAstImpl visitTypeUpperBounds​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeUpperBoundsContext ctx)
      Visit a parse tree produced by JavaLanguageParser.typeUpperBounds().
      DetailAstImpl visitUnnamedPatternDef​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.UnnamedPatternDefContext ctx)
      Visit a parse tree produced by the unnamedPatternDef labeled alternative in JavaLanguageParser.typePattern().
      DetailAstImpl visitVariableAccess​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableAccessContext ctx)
      Visit a parse tree produced by JavaLanguageParser.variableAccess().
      DetailAstImpl visitVariableDeclarator​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableDeclaratorContext ctx)
      Visit a parse tree produced by JavaLanguageParser.variableDeclarator(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext).
      DetailAstImpl visitVariableDeclaratorId​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableDeclaratorIdContext ctx)
      Visit a parse tree produced by JavaLanguageParser.variableDeclaratorId(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableModifierContext>, org.antlr.v4.runtime.ParserRuleContext).
      DetailAstImpl visitVariableDeclarators​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableDeclaratorsContext ctx)
      Visit a parse tree produced by JavaLanguageParser.variableDeclarators(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext).
      DetailAstImpl visitVariableModifier​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableModifierContext ctx)
      Visit a parse tree produced by JavaLanguageParser.variableModifier().
      DetailAstImpl visitWhileStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.WhileStatContext ctx)
      Visit a parse tree produced by the whileStat labeled alternative in JavaLanguageParser.statement().
      DetailAstImpl visitWildCardTypeArgument​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.WildCardTypeArgumentContext ctx)
      Visit a parse tree produced by the wildCardTypeArgument labeled alternative in JavaLanguageParser.typeArgument().
      DetailAstImpl visitYieldStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.YieldStatContext ctx)
      Visit a parse tree produced by the yieldStat labeled alternative in JavaLanguageParser.statement().
      • Methods inherited from class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor

        visitAnnotationConstantRest, visitClassDef, visitClassOrInterfaceOrPrimitiveType, visitClassOrInterfaceTypeExtended, visitClassType, visitCreatedNameExtended, visitFieldAccessNoIdent, visitGuard, visitInterfaceMemberDeclaration, visitLiteralPrimary, visitLocalType, visitLocalTypeDeclaration, visitLocalVariableDeclaration, visitMemberDeclaration, visitNonWildcardTypeArgs, visitPatternVariableDef, visitQualifiedNameExtended, visitRecordBodyDeclaration, visitResource, visitStat, visitStringTemplateMiddle, visitSuperSuffixSimple, visitSwitchLabeledRule, visitSwitchPrimary, visitSwitchStat, visitTemplate, visitTypes, visitVariableInitializer
      • Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor

        aggregateResult, defaultResult, shouldVisitNextChild, visitChildren, visitErrorNode, visitTerminal
      • Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor

        visitChildren, visitErrorNode, visitTerminal
    • Constructor Detail

      • JavaAstVisitor

        public JavaAstVisitor​(org.antlr.v4.runtime.CommonTokenStream tokenStream)
        Constructs a JavaAstVisitor with given token stream.
        Parameters:
        tokenStream - the token stream to check for hidden tokens
    • Method Detail

      • visitCompilationUnit

        public DetailAstImpl visitCompilationUnit​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CompilationUnitContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.compilationUnit().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitCompilationUnit in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitCompilationUnit in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPackageDeclaration

        public DetailAstImpl visitPackageDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PackageDeclarationContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.packageDeclaration().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitPackageDeclaration in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitPackageDeclaration in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitImportDec

        public DetailAstImpl visitImportDec​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ImportDecContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the importDec labeled alternative in JavaLanguageParser.importDeclaration().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitImportDec in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitImportDec in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSingleSemiImport

        public DetailAstImpl visitSingleSemiImport​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SingleSemiImportContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the singleSemiImport labeled alternative in JavaLanguageParser.importDeclaration().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitSingleSemiImport in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitSingleSemiImport in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeDeclaration

        public DetailAstImpl visitTypeDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeDeclarationContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.typeDeclaration().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTypeDeclaration in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTypeDeclaration in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitModifier

        public DetailAstImpl visitModifier​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.modifier().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitModifier in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitModifier in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitVariableModifier

        public DetailAstImpl visitVariableModifier​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableModifierContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.variableModifier().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitVariableModifier in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitVariableModifier in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitClassDeclaration

        public DetailAstImpl visitClassDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassDeclarationContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.classDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitClassDeclaration in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitClassDeclaration in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitRecordDeclaration

        public DetailAstImpl visitRecordDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordDeclarationContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.recordDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitRecordDeclaration in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitRecordDeclaration in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitRecordComponentsList

        public DetailAstImpl visitRecordComponentsList​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordComponentsListContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.recordComponentsList().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitRecordComponentsList in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitRecordComponentsList in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitRecordComponents

        public DetailAstImpl visitRecordComponents​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordComponentsContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.recordComponents().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitRecordComponents in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitRecordComponents in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitRecordComponent

        public DetailAstImpl visitRecordComponent​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordComponentContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.recordComponent().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitRecordComponent in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitRecordComponent in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitLastRecordComponent

        public DetailAstImpl visitLastRecordComponent​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LastRecordComponentContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.lastRecordComponent().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitLastRecordComponent in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitLastRecordComponent in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitRecordBody

        public DetailAstImpl visitRecordBody​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordBodyContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.recordBody().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitRecordBody in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitRecordBody in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitCompactConstructorDeclaration

        public DetailAstImpl visitCompactConstructorDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CompactConstructorDeclarationContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.compactConstructorDeclaration().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitCompactConstructorDeclaration in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitCompactConstructorDeclaration in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitClassExtends

        public DetailAstImpl visitClassExtends​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassExtendsContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.classExtends().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitClassExtends in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitClassExtends in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitImplementsClause

        public DetailAstImpl visitImplementsClause​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ImplementsClauseContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.implementsClause().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitImplementsClause in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitImplementsClause in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeParameters

        public DetailAstImpl visitTypeParameters​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeParametersContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.typeParameters().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTypeParameters in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTypeParameters in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeParameter

        public DetailAstImpl visitTypeParameter​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeParameterContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.typeParameter().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTypeParameter in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTypeParameter in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeUpperBounds

        public DetailAstImpl visitTypeUpperBounds​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeUpperBoundsContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.typeUpperBounds().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTypeUpperBounds in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTypeUpperBounds in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeBound

        public DetailAstImpl visitTypeBound​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeBoundContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.typeBound().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTypeBound in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTypeBound in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeBoundType

        public DetailAstImpl visitTypeBoundType​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeBoundTypeContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.typeBoundType().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTypeBoundType in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTypeBoundType in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitEnumDeclaration

        public DetailAstImpl visitEnumDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumDeclarationContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.enumDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitEnumDeclaration in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitEnumDeclaration in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitEnumBody

        public DetailAstImpl visitEnumBody​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumBodyContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.enumBody().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitEnumBody in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitEnumBody in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitEnumConstants

        public DetailAstImpl visitEnumConstants​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumConstantsContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.enumConstants().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitEnumConstants in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitEnumConstants in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitEnumConstant

        public DetailAstImpl visitEnumConstant​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumConstantContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.enumConstant().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitEnumConstant in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitEnumConstant in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitEnumBodyDeclarations

        public DetailAstImpl visitEnumBodyDeclarations​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumBodyDeclarationsContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.enumBodyDeclarations().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitEnumBodyDeclarations in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitEnumBodyDeclarations in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitInterfaceDeclaration

        public DetailAstImpl visitInterfaceDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceDeclarationContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.interfaceDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitInterfaceDeclaration in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitInterfaceDeclaration in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitInterfaceExtends

        public DetailAstImpl visitInterfaceExtends​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceExtendsContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.interfaceExtends().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitInterfaceExtends in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitInterfaceExtends in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitClassBody

        public DetailAstImpl visitClassBody​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassBodyContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.classBody().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitClassBody in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitClassBody in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitInterfaceBody

        public DetailAstImpl visitInterfaceBody​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceBodyContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.interfaceBody().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitInterfaceBody in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitInterfaceBody in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitEmptyClass

        public DetailAstImpl visitEmptyClass​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EmptyClassContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the emptyClass labeled alternative in JavaLanguageParser.classBodyDeclaration().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitEmptyClass in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitEmptyClass in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitClassBlock

        public DetailAstImpl visitClassBlock​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassBlockContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the classBlock labeled alternative in JavaLanguageParser.classBodyDeclaration().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitClassBlock in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitClassBlock in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitMethodDeclaration

        public DetailAstImpl visitMethodDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MethodDeclarationContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.methodDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitMethodDeclaration in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitMethodDeclaration in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitMethodBody

        public DetailAstImpl visitMethodBody​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MethodBodyContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.methodBody().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitMethodBody in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitMethodBody in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitThrowsList

        public DetailAstImpl visitThrowsList​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ThrowsListContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.throwsList().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitThrowsList in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitThrowsList in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitConstructorDeclaration

        public DetailAstImpl visitConstructorDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ConstructorDeclarationContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.constructorDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitConstructorDeclaration in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitConstructorDeclaration in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFieldDeclaration

        public DetailAstImpl visitFieldDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FieldDeclarationContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.fieldDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitFieldDeclaration in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitFieldDeclaration in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitInterfaceBodyDeclaration

        public DetailAstImpl visitInterfaceBodyDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceBodyDeclarationContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.interfaceBodyDeclaration().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitInterfaceBodyDeclaration in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitInterfaceBodyDeclaration in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitInterfaceMethodDeclaration

        public DetailAstImpl visitInterfaceMethodDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceMethodDeclarationContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.interfaceMethodDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitInterfaceMethodDeclaration in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitInterfaceMethodDeclaration in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitVariableDeclarators

        public DetailAstImpl visitVariableDeclarators​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableDeclaratorsContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.variableDeclarators(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitVariableDeclarators in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitVariableDeclarators in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitVariableDeclarator

        public DetailAstImpl visitVariableDeclarator​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableDeclaratorContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.variableDeclarator(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitVariableDeclarator in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitVariableDeclarator in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitVariableDeclaratorId

        public DetailAstImpl visitVariableDeclaratorId​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableDeclaratorIdContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.variableDeclaratorId(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableModifierContext>, org.antlr.v4.runtime.ParserRuleContext).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitVariableDeclaratorId in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitVariableDeclaratorId in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitArrayInitializer

        public DetailAstImpl visitArrayInitializer​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ArrayInitializerContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.arrayInitializer().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitArrayInitializer in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitArrayInitializer in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitClassOrInterfaceType

        public DetailAstImpl visitClassOrInterfaceType​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassOrInterfaceTypeContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.classOrInterfaceType(boolean).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitClassOrInterfaceType in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitClassOrInterfaceType in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSimpleTypeArgument

        public DetailAstImpl visitSimpleTypeArgument​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SimpleTypeArgumentContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the simpleTypeArgument labeled alternative in JavaLanguageParser.typeArgument().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitSimpleTypeArgument in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitSimpleTypeArgument in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitWildCardTypeArgument

        public DetailAstImpl visitWildCardTypeArgument​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.WildCardTypeArgumentContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the wildCardTypeArgument labeled alternative in JavaLanguageParser.typeArgument().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitWildCardTypeArgument in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitWildCardTypeArgument in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitQualifiedNameList

        public DetailAstImpl visitQualifiedNameList​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.QualifiedNameListContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.qualifiedNameList().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitQualifiedNameList in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitQualifiedNameList in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFormalParameters

        public DetailAstImpl visitFormalParameters​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FormalParametersContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.formalParameters().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitFormalParameters in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitFormalParameters in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFormalParameterList

        public DetailAstImpl visitFormalParameterList​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FormalParameterListContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.formalParameterList().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitFormalParameterList in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitFormalParameterList in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFormalParameter

        public DetailAstImpl visitFormalParameter​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FormalParameterContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.formalParameter().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitFormalParameter in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitFormalParameter in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitLastFormalParameter

        public DetailAstImpl visitLastFormalParameter​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LastFormalParameterContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.lastFormalParameter().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitLastFormalParameter in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitLastFormalParameter in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitQualifiedName

        public DetailAstImpl visitQualifiedName​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.QualifiedNameContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.qualifiedName().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitQualifiedName in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitQualifiedName in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitLiteral

        public DetailAstImpl visitLiteral​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LiteralContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.literal().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitLiteral in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitLiteral in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitIntegerLiteral

        public DetailAstImpl visitIntegerLiteral​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IntegerLiteralContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.integerLiteral().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitIntegerLiteral in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitIntegerLiteral in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFloatLiteral

        public DetailAstImpl visitFloatLiteral​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FloatLiteralContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.floatLiteral().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitFloatLiteral in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitFloatLiteral in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTextBlockLiteral

        public DetailAstImpl visitTextBlockLiteral​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TextBlockLiteralContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.textBlockLiteral().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTextBlockLiteral in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTextBlockLiteral in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAnnotations

        public DetailAstImpl visitAnnotations​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationsContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.annotations(boolean).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitAnnotations in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitAnnotations in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAnnotation

        public DetailAstImpl visitAnnotation​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.annotation().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitAnnotation in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitAnnotation in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitElementValuePairs

        public DetailAstImpl visitElementValuePairs​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElementValuePairsContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.elementValuePairs().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitElementValuePairs in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitElementValuePairs in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitElementValuePair

        public DetailAstImpl visitElementValuePair​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElementValuePairContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.elementValuePair().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitElementValuePair in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitElementValuePair in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitElementValue

        public DetailAstImpl visitElementValue​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElementValueContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.elementValue().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitElementValue in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitElementValue in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitElementValueArrayInitializer

        public DetailAstImpl visitElementValueArrayInitializer​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElementValueArrayInitializerContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.elementValueArrayInitializer().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitElementValueArrayInitializer in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitElementValueArrayInitializer in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAnnotationTypeDeclaration

        public DetailAstImpl visitAnnotationTypeDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationTypeDeclarationContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.annotationTypeDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitAnnotationTypeDeclaration in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitAnnotationTypeDeclaration in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAnnotationTypeBody

        public DetailAstImpl visitAnnotationTypeBody​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationTypeBodyContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.annotationTypeBody().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitAnnotationTypeBody in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitAnnotationTypeBody in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAnnotationTypeElementDeclaration

        public DetailAstImpl visitAnnotationTypeElementDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationTypeElementDeclarationContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.annotationTypeElementDeclaration().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitAnnotationTypeElementDeclaration in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitAnnotationTypeElementDeclaration in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAnnotationField

        public DetailAstImpl visitAnnotationField​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationFieldContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the annotationField labeled alternative in JavaLanguageParser.annotationTypeElementRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitAnnotationField in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitAnnotationField in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAnnotationType

        public DetailAstImpl visitAnnotationType​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationTypeContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the annotationType labeled alternative in JavaLanguageParser.annotationTypeElementRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitAnnotationType in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitAnnotationType in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAnnotationMethodRest

        public DetailAstImpl visitAnnotationMethodRest​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationMethodRestContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.annotationMethodRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitAnnotationMethodRest in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitAnnotationMethodRest in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitDefaultValue

        public DetailAstImpl visitDefaultValue​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.DefaultValueContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.defaultValue().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitDefaultValue in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitDefaultValue in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitConstructorBlock

        public DetailAstImpl visitConstructorBlock​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ConstructorBlockContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.constructorBlock().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitConstructorBlock in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitConstructorBlock in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitExplicitCtorCall

        public DetailAstImpl visitExplicitCtorCall​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ExplicitCtorCallContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the explicitCtorCall labeled alternative in JavaLanguageParser.explicitConstructorInvocation().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitExplicitCtorCall in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitExplicitCtorCall in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPrimaryCtorCall

        public DetailAstImpl visitPrimaryCtorCall​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrimaryCtorCallContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the primaryCtorCall labeled alternative in JavaLanguageParser.explicitConstructorInvocation().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitPrimaryCtorCall in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitPrimaryCtorCall in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitBlock

        public DetailAstImpl visitBlock​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BlockContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.block().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitBlock in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitBlock in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitLocalVar

        public DetailAstImpl visitLocalVar​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LocalVarContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the localVar labeled alternative in JavaLanguageParser.blockStatement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitLocalVar in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitLocalVar in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitBlockStat

        public DetailAstImpl visitBlockStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BlockStatContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the blockStat labeled alternative in JavaLanguageParser.statement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitBlockStat in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitBlockStat in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAssertExp

        public DetailAstImpl visitAssertExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AssertExpContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the assertExp labeled alternative in JavaLanguageParser.statement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitAssertExp in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitAssertExp in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitIfStat

        public DetailAstImpl visitIfStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IfStatContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the ifStat labeled alternative in JavaLanguageParser.statement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitIfStat in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitIfStat in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitForStat

        public DetailAstImpl visitForStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ForStatContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the forStat labeled alternative in JavaLanguageParser.statement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitForStat in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitForStat in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitWhileStat

        public DetailAstImpl visitWhileStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.WhileStatContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the whileStat labeled alternative in JavaLanguageParser.statement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitWhileStat in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitWhileStat in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitDoStat

        public DetailAstImpl visitDoStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.DoStatContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the doStat labeled alternative in JavaLanguageParser.statement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitDoStat in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitDoStat in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTryStat

        public DetailAstImpl visitTryStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TryStatContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the tryStat labeled alternative in JavaLanguageParser.statement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTryStat in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTryStat in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTryWithResourceStat

        public DetailAstImpl visitTryWithResourceStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TryWithResourceStatContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the tryWithResourceStat labeled alternative in JavaLanguageParser.statement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTryWithResourceStat in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTryWithResourceStat in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitYieldStat

        public DetailAstImpl visitYieldStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.YieldStatContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the yieldStat labeled alternative in JavaLanguageParser.statement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitYieldStat in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitYieldStat in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSyncStat

        public DetailAstImpl visitSyncStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SyncStatContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the syncStat labeled alternative in JavaLanguageParser.statement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitSyncStat in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitSyncStat in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitReturnStat

        public DetailAstImpl visitReturnStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ReturnStatContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the returnStat labeled alternative in JavaLanguageParser.statement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitReturnStat in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitReturnStat in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitThrowStat

        public DetailAstImpl visitThrowStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ThrowStatContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the throwStat labeled alternative in JavaLanguageParser.statement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitThrowStat in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitThrowStat in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitBreakStat

        public DetailAstImpl visitBreakStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BreakStatContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the breakStat labeled alternative in JavaLanguageParser.statement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitBreakStat in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitBreakStat in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitContinueStat

        public DetailAstImpl visitContinueStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ContinueStatContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the continueStat labeled alternative in JavaLanguageParser.statement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitContinueStat in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitContinueStat in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitEmptyStat

        public DetailAstImpl visitEmptyStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EmptyStatContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the emptyStat labeled alternative in JavaLanguageParser.statement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitEmptyStat in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitEmptyStat in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitExpStat

        public DetailAstImpl visitExpStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ExpStatContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the expStat labeled alternative in JavaLanguageParser.statement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitExpStat in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitExpStat in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitLabelStat

        public DetailAstImpl visitLabelStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LabelStatContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the labelStat labeled alternative in JavaLanguageParser.statement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitLabelStat in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitLabelStat in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSwitchExpressionOrStatement

        public DetailAstImpl visitSwitchExpressionOrStatement​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchExpressionOrStatementContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.switchExpressionOrStatement().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitSwitchExpressionOrStatement in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitSwitchExpressionOrStatement in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSwitchRules

        public DetailAstImpl visitSwitchRules​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchRulesContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the switchRules labeled alternative in JavaLanguageParser.switchBlock().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitSwitchRules in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitSwitchRules in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSwitchBlocks

        public DetailAstImpl visitSwitchBlocks​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchBlocksContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the switchBlocks labeled alternative in JavaLanguageParser.switchBlock().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitSwitchBlocks in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitSwitchBlocks in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSwitchLabeledExpression

        public DetailAstImpl visitSwitchLabeledExpression​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchLabeledExpressionContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.switchLabeledExpression().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitSwitchLabeledExpression in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitSwitchLabeledExpression in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSwitchLabeledBlock

        public DetailAstImpl visitSwitchLabeledBlock​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchLabeledBlockContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.switchLabeledBlock().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitSwitchLabeledBlock in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitSwitchLabeledBlock in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSwitchLabeledThrow

        public DetailAstImpl visitSwitchLabeledThrow​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchLabeledThrowContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.switchLabeledThrow().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitSwitchLabeledThrow in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitSwitchLabeledThrow in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitElseStat

        public DetailAstImpl visitElseStat​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElseStatContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.elseStat().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitElseStat in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitElseStat in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitCatchClause

        public DetailAstImpl visitCatchClause​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CatchClauseContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.catchClause().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitCatchClause in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitCatchClause in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitCatchParameter

        public DetailAstImpl visitCatchParameter​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CatchParameterContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.catchParameter().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitCatchParameter in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitCatchParameter in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitCatchType

        public DetailAstImpl visitCatchType​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CatchTypeContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.catchType().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitCatchType in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitCatchType in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFinallyBlock

        public DetailAstImpl visitFinallyBlock​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FinallyBlockContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.finallyBlock().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitFinallyBlock in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitFinallyBlock in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitResourceSpecification

        public DetailAstImpl visitResourceSpecification​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ResourceSpecificationContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.resourceSpecification().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitResourceSpecification in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitResourceSpecification in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitResources

        public DetailAstImpl visitResources​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ResourcesContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.resources().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitResources in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitResources in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitResourceDeclaration

        public DetailAstImpl visitResourceDeclaration​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ResourceDeclarationContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.resourceDeclaration().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitResourceDeclaration in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitResourceDeclaration in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitVariableAccess

        public DetailAstImpl visitVariableAccess​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableAccessContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.variableAccess().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitVariableAccess in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitVariableAccess in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSwitchBlockStatementGroup

        public DetailAstImpl visitSwitchBlockStatementGroup​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchBlockStatementGroupContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.switchBlockStatementGroup().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitSwitchBlockStatementGroup in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitSwitchBlockStatementGroup in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitCaseLabel

        public DetailAstImpl visitCaseLabel​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CaseLabelContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the caseLabel labeled alternative in JavaLanguageParser.switchLabel().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitCaseLabel in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitCaseLabel in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitDefaultLabel

        public DetailAstImpl visitDefaultLabel​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.DefaultLabelContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the defaultLabel labeled alternative in JavaLanguageParser.switchLabel().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitDefaultLabel in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitDefaultLabel in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitCaseConstants

        public DetailAstImpl visitCaseConstants​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CaseConstantsContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.caseConstants().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitCaseConstants in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitCaseConstants in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitCaseConstant

        public DetailAstImpl visitCaseConstant​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CaseConstantContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.caseConstant().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitCaseConstant in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitCaseConstant in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitEnhancedFor

        public DetailAstImpl visitEnhancedFor​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnhancedForContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the enhancedFor labeled alternative in JavaLanguageParser.forControl().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitEnhancedFor in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitEnhancedFor in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitForFor

        public DetailAstImpl visitForFor​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ForForContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the forFor labeled alternative in JavaLanguageParser.forControl().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitForFor in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitForFor in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitForInit

        public DetailAstImpl visitForInit​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ForInitContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.forInit().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitForInit in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitForInit in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitEnhancedForControl

        public DetailAstImpl visitEnhancedForControl​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnhancedForControlContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.enhancedForControl().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitEnhancedForControl in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitEnhancedForControl in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitEnhancedForControlWithRecordPattern

        public DetailAstImpl visitEnhancedForControlWithRecordPattern​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnhancedForControlWithRecordPatternContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.enhancedForControlWithRecordPattern().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitEnhancedForControlWithRecordPattern in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitEnhancedForControlWithRecordPattern in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitParExpression

        public DetailAstImpl visitParExpression​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ParExpressionContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.parExpression().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitParExpression in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitParExpression in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitExpressionList

        public DetailAstImpl visitExpressionList​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ExpressionListContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.expressionList().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitExpressionList in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitExpressionList in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitExpression

        public DetailAstImpl visitExpression​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ExpressionContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.expression().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitExpression in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitExpression in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitRefOp

        public DetailAstImpl visitRefOp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RefOpContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the refOp labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitRefOp in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitRefOp in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSuperExp

        public DetailAstImpl visitSuperExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SuperExpContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the superExp labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitSuperExp in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitSuperExp in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitInstanceOfExp

        public DetailAstImpl visitInstanceOfExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InstanceOfExpContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the instanceOfExp labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitInstanceOfExp in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitInstanceOfExp in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitBitShift

        public DetailAstImpl visitBitShift​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BitShiftContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the bitShift labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitBitShift in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitBitShift in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitNewExp

        public DetailAstImpl visitNewExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.NewExpContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the newExp labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitNewExp in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitNewExp in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPrefix

        public DetailAstImpl visitPrefix​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrefixContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the prefix labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitPrefix in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitPrefix in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitCastExp

        public DetailAstImpl visitCastExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CastExpContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the castExp labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitCastExp in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitCastExp in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitIndexOp

        public DetailAstImpl visitIndexOp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IndexOpContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the indexOp labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitIndexOp in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitIndexOp in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitInvOp

        public DetailAstImpl visitInvOp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InvOpContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the invOp labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitInvOp in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitInvOp in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitInitExp

        public DetailAstImpl visitInitExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InitExpContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the initExp labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitInitExp in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitInitExp in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSimpleMethodCall

        public DetailAstImpl visitSimpleMethodCall​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SimpleMethodCallContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the simpleMethodCall labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitSimpleMethodCall in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitSimpleMethodCall in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitLambdaExp

        public DetailAstImpl visitLambdaExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LambdaExpContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the lambdaExp labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitLambdaExp in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitLambdaExp in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitThisExp

        public DetailAstImpl visitThisExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ThisExpContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the thisExp labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitThisExp in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitThisExp in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPrimaryExp

        public DetailAstImpl visitPrimaryExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrimaryExpContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the primaryExp labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitPrimaryExp in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitPrimaryExp in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTemplateExp

        public DetailAstImpl visitTemplateExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TemplateExpContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the templateExp labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTemplateExp in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTemplateExp in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPostfix

        public DetailAstImpl visitPostfix​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PostfixContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the postfix labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitPostfix in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitPostfix in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitMethodRef

        public DetailAstImpl visitMethodRef​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MethodRefContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the methodRef labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitMethodRef in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitMethodRef in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTernaryOp

        public DetailAstImpl visitTernaryOp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TernaryOpContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the ternaryOp labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTernaryOp in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTernaryOp in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitBinOp

        public DetailAstImpl visitBinOp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BinOpContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the binOp labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitBinOp in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitBinOp in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • getInnerBopAst

        private DetailAstImpl getInnerBopAst​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BinOpContext descendant)
        Builds the binary operation (binOp) AST.
        Parameters:
        descendant - the BinOpContext to build AST from
        Returns:
        binOp AST
      • visitMethodCall

        public DetailAstImpl visitMethodCall​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MethodCallContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the methodCall labeled alternative in JavaLanguageParser.expr().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitMethodCall in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitMethodCall in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeCastParameters

        public DetailAstImpl visitTypeCastParameters​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeCastParametersContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.typeCastParameters().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTypeCastParameters in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTypeCastParameters in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSingleLambdaParam

        public DetailAstImpl visitSingleLambdaParam​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SingleLambdaParamContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the singleLambdaParam labeled alternative in JavaLanguageParser.lambdaParameters().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitSingleLambdaParam in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitSingleLambdaParam in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFormalLambdaParam

        public DetailAstImpl visitFormalLambdaParam​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FormalLambdaParamContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the formalLambdaParam labeled alternative in JavaLanguageParser.lambdaParameters().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitFormalLambdaParam in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitFormalLambdaParam in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitMultiLambdaParam

        public DetailAstImpl visitMultiLambdaParam​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MultiLambdaParamContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the multiLambdaParam labeled alternative in JavaLanguageParser.lambdaParameters().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitMultiLambdaParam in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitMultiLambdaParam in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitMultiLambdaParams

        public DetailAstImpl visitMultiLambdaParams​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MultiLambdaParamsContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.multiLambdaParams().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitMultiLambdaParams in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitMultiLambdaParams in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • createLambdaParameter

        private DetailAstImpl createLambdaParameter​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IdContext ctx)
        Creates a 'PARAMETER_DEF' node for a lambda expression, with imaginary modifier and type nodes.
        Parameters:
        ctx - the IdContext to create imaginary nodes for
        Returns:
        DetailAstImpl of lambda parameter
      • visitParenPrimary

        public DetailAstImpl visitParenPrimary​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ParenPrimaryContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the parenPrimary labeled alternative in JavaLanguageParser.primary().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitParenPrimary in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitParenPrimary in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTokenPrimary

        public DetailAstImpl visitTokenPrimary​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TokenPrimaryContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the tokenPrimary labeled alternative in JavaLanguageParser.primary().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTokenPrimary in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTokenPrimary in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitClassRefPrimary

        public DetailAstImpl visitClassRefPrimary​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassRefPrimaryContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the classRefPrimary labeled alternative in JavaLanguageParser.primary().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitClassRefPrimary in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitClassRefPrimary in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPrimitivePrimary

        public DetailAstImpl visitPrimitivePrimary​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrimitivePrimaryContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the primitivePrimary labeled alternative in JavaLanguageParser.primary().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitPrimitivePrimary in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitPrimitivePrimary in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTemplateArgument

        public DetailAstImpl visitTemplateArgument​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TemplateArgumentContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.templateArgument().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTemplateArgument in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTemplateArgument in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • buildSimpleStringTemplateArgument

        private static DetailAstImpl buildSimpleStringTemplateArgument​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TemplateArgumentContext ctx)
        Builds a simple string template argument AST, which basically means that we transform a string literal into a string template AST because it is a string template argument.
        Parameters:
        ctx - the TemplateArgumentContext to build AST from
        Returns:
        DetailAstImpl of string template argument
      • visitStringTemplate

        public DetailAstImpl visitStringTemplate​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.StringTemplateContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.stringTemplate().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitStringTemplate in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitStringTemplate in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • buildStringTemplateMiddle

        private DetailAstImpl buildStringTemplateMiddle​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.StringTemplateMiddleContext ctx)
        Builds a string template middle AST.
        Parameters:
        ctx - the StringTemplateMiddleContext to build AST from
        Returns:
        DetailAstImpl of string template middle
      • visitStringTemplateBegin

        public DetailAstImpl visitStringTemplateBegin​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.StringTemplateBeginContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.stringTemplateBegin().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitStringTemplateBegin in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitStringTemplateBegin in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitStringTemplateMid

        public DetailAstImpl visitStringTemplateMid​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.StringTemplateMidContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.stringTemplateMid().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitStringTemplateMid in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitStringTemplateMid in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitStringTemplateEnd

        public DetailAstImpl visitStringTemplateEnd​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.StringTemplateEndContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.stringTemplateEnd().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitStringTemplateEnd in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitStringTemplateEnd in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitCreator

        public DetailAstImpl visitCreator​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CreatorContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.creator().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitCreator in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitCreator in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitCreatedNameObject

        public DetailAstImpl visitCreatedNameObject​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CreatedNameObjectContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the createdNameObject labeled alternative in JavaLanguageParser.createdName().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitCreatedNameObject in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitCreatedNameObject in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitCreatedNamePrimitive

        public DetailAstImpl visitCreatedNamePrimitive​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CreatedNamePrimitiveContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the createdNamePrimitive labeled alternative in JavaLanguageParser.createdName().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitCreatedNamePrimitive in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitCreatedNamePrimitive in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitInnerCreator

        public DetailAstImpl visitInnerCreator​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InnerCreatorContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.innerCreator().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitInnerCreator in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitInnerCreator in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitArrayCreatorRest

        public DetailAstImpl visitArrayCreatorRest​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ArrayCreatorRestContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.arrayCreatorRest().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitArrayCreatorRest in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitArrayCreatorRest in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitBracketsWithExp

        public DetailAstImpl visitBracketsWithExp​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BracketsWithExpContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.bracketsWithExp().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitBracketsWithExp in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitBracketsWithExp in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitClassCreatorRest

        public DetailAstImpl visitClassCreatorRest​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassCreatorRestContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.classCreatorRest().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitClassCreatorRest in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitClassCreatorRest in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitDiamond

        public DetailAstImpl visitDiamond​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.DiamondContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the diamond labeled alternative in JavaLanguageParser.typeArgumentsOrDiamond().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitDiamond in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitDiamond in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeArgs

        public DetailAstImpl visitTypeArgs​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeArgsContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the typeArgs labeled alternative in JavaLanguageParser.typeArgumentsOrDiamond().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTypeArgs in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTypeArgs in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitNonWildcardDiamond

        public DetailAstImpl visitNonWildcardDiamond​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.NonWildcardDiamondContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the nonWildcardDiamond labeled alternative in JavaLanguageParser.nonWildcardTypeArgumentsOrDiamond().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitNonWildcardDiamond in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitNonWildcardDiamond in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitNonWildcardTypeArguments

        public DetailAstImpl visitNonWildcardTypeArguments​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.NonWildcardTypeArgumentsContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.nonWildcardTypeArguments().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitNonWildcardTypeArguments in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitNonWildcardTypeArguments in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeArgumentsTypeList

        public DetailAstImpl visitTypeArgumentsTypeList​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeArgumentsTypeListContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.typeArgumentsTypeList().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTypeArgumentsTypeList in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTypeArgumentsTypeList in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeList

        public DetailAstImpl visitTypeList​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeListContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.typeList().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTypeList in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTypeList in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeType

        public DetailAstImpl visitTypeType​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.typeType(boolean).

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTypeType in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTypeType in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitArrayDeclarator

        public DetailAstImpl visitArrayDeclarator​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ArrayDeclaratorContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.arrayDeclarator().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitArrayDeclarator in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitArrayDeclarator in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPrimitiveType

        public DetailAstImpl visitPrimitiveType​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrimitiveTypeContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.primitiveType().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitPrimitiveType in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitPrimitiveType in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeArguments

        public DetailAstImpl visitTypeArguments​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeArgumentsContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.typeArguments().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTypeArguments in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTypeArguments in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSuperSuffixDot

        public DetailAstImpl visitSuperSuffixDot​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SuperSuffixDotContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the superSuffixDot labeled alternative in JavaLanguageParser.superSuffix().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitSuperSuffixDot in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitSuperSuffixDot in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitArguments

        public DetailAstImpl visitArguments​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ArgumentsContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.arguments().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitArguments in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitArguments in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPattern

        public DetailAstImpl visitPattern​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PatternContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.pattern().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitPattern in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitPattern in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitInnerPattern

        public DetailAstImpl visitInnerPattern​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InnerPatternContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.innerPattern().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitInnerPattern in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitInnerPattern in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitGuardedPattern

        public DetailAstImpl visitGuardedPattern​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.GuardedPatternContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.guardedPattern().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitGuardedPattern in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitGuardedPattern in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitParenPattern

        public DetailAstImpl visitParenPattern​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ParenPatternContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the parenPattern labeled alternative in JavaLanguageParser.primaryPattern().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitParenPattern in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitParenPattern in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitRecordPatternDef

        public DetailAstImpl visitRecordPatternDef​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordPatternDefContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the recordPatternDef labeled alternative in JavaLanguageParser.primaryPattern().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitRecordPatternDef in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitRecordPatternDef in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypePatternDef

        public DetailAstImpl visitTypePatternDef​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypePatternDefContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the typePatternDef labeled alternative in JavaLanguageParser.typePattern().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitTypePatternDef in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitTypePatternDef in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitUnnamedPatternDef

        public DetailAstImpl visitUnnamedPatternDef​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.UnnamedPatternDefContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by the unnamedPatternDef labeled alternative in JavaLanguageParser.typePattern().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitUnnamedPatternDef in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitUnnamedPatternDef in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitRecordPattern

        public DetailAstImpl visitRecordPattern​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordPatternContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.recordPattern().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitRecordPattern in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitRecordPattern in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitRecordComponentPatternList

        public DetailAstImpl visitRecordComponentPatternList​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordComponentPatternListContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.recordComponentPatternList().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitRecordComponentPatternList in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitRecordComponentPatternList in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPermittedSubclassesAndInterfaces

        public DetailAstImpl visitPermittedSubclassesAndInterfaces​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PermittedSubclassesAndInterfacesContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.permittedSubclassesAndInterfaces().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitPermittedSubclassesAndInterfaces in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitPermittedSubclassesAndInterfaces in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitId

        public DetailAstImpl visitId​(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IdContext ctx)
        Description copied from class: com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
        Visit a parse tree produced by JavaLanguageParser.id().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitId in interface com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
        Overrides:
        visitId in class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • flattenedTree

        private DetailAstImpl flattenedTree​(org.antlr.v4.runtime.ParserRuleContext ctx)
        Builds the AST for a particular node, then returns a "flattened" tree of siblings. This method should be used in rule contexts such as variableDeclarators, where we have both terminals and non-terminals.
        Parameters:
        ctx - the ParserRuleContext to base tree on
        Returns:
        flattened DetailAstImpl
      • processChildren

        private void processChildren​(DetailAstImpl parent,
                                     List<? extends org.antlr.v4.runtime.tree.ParseTree> children)
        Adds all the children from the given ParseTree or JavaParserContext list to the parent DetailAstImpl.
        Parameters:
        parent - the DetailAstImpl to add children to
        children - the list of children to add
      • createImaginary

        private static DetailAstImpl createImaginary​(int tokenType)
        Create a DetailAstImpl from a given token and token type. This method should be used for imaginary nodes only, i.e. 'OBJBLOCK -> OBJBLOCK', where the text on the RHS matches the text on the LHS.
        Parameters:
        tokenType - the token type of this DetailAstImpl
        Returns:
        new DetailAstImpl of given type
      • createImaginary

        private static DetailAstImpl createImaginary​(int tokenType,
                                                     String text)
        Create a DetailAstImpl from a given token type and text. This method should be used for imaginary nodes only, i.e. 'OBJBLOCK -> OBJBLOCK', where the text on the RHS matches the text on the LHS.
        Parameters:
        tokenType - the token type of this DetailAstImpl
        text - the text of this DetailAstImpl
        Returns:
        new DetailAstImpl of given type
      • createImaginary

        private static DetailAstImpl createImaginary​(int tokenType,
                                                     String text,
                                                     int lineNumber,
                                                     int columnNumber)
        Creates an imaginary DetailAstImpl with the given token details.
        Parameters:
        tokenType - the token type of this DetailAstImpl
        text - the text of this DetailAstImpl
        lineNumber - the line number of this DetailAstImpl
        columnNumber - the column number of this DetailAstImpl
        Returns:
        imaginary DetailAstImpl from given details
      • create

        private DetailAstImpl create​(int tokenType,
                                     org.antlr.v4.runtime.Token startToken)
        Create a DetailAstImpl from a given token and token type. This method should be used for literal nodes only, i.e. 'PACKAGE_DEF -> package'.
        Parameters:
        tokenType - the token type of this DetailAstImpl
        startToken - the first token that appears in this DetailAstImpl.
        Returns:
        new DetailAstImpl of given type
      • create

        private DetailAstImpl create​(org.antlr.v4.runtime.Token token)
        Create a DetailAstImpl from a given token. This method should be used for terminal nodes, i.e. LCURLY, when we are building an AST for a specific token, regardless of position.
        Parameters:
        token - the token to build the DetailAstImpl from
        Returns:
        new DetailAstImpl of given type
      • create

        private DetailAstImpl create​(org.antlr.v4.runtime.tree.TerminalNode node)
        Create a DetailAstImpl from a given TerminalNode. This method should be used for terminal nodes, i.e. @.
        Parameters:
        node - the TerminalNode to build the DetailAstImpl from
        Returns:
        new DetailAstImpl of given type
      • createTypeDeclaration

        private DetailAstImpl createTypeDeclaration​(org.antlr.v4.runtime.ParserRuleContext ctx,
                                                    int type,
                                                    List<? extends org.antlr.v4.runtime.tree.ParseTree> modifierList)
        Creates a type declaration DetailAstImpl from a given rule context.
        Parameters:
        ctx - ParserRuleContext we are in
        type - the type declaration to create
        modifierList - respective modifiers
        Returns:
        type declaration DetailAstImpl
      • createModifiers

        private DetailAstImpl createModifiers​(List<? extends org.antlr.v4.runtime.tree.ParseTree> modifierList)
        Builds the modifiers AST.
        Parameters:
        modifierList - the list of modifier contexts
        Returns:
        "MODIFIERS" ast
      • addLastSibling

        private static void addLastSibling​(DetailAstImpl self,
                                           DetailAstImpl sibling)
        Add new sibling to the end of existing siblings.
        Parameters:
        self - DetailAstImpl to add last sibling to
        sibling - DetailAstImpl sibling to add
      • visit

        public DetailAstImpl visit​(org.antlr.v4.runtime.tree.ParseTree tree)
        Specified by:
        visit in interface org.antlr.v4.runtime.tree.ParseTreeVisitor<DetailAstImpl>
        Overrides:
        visit in class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<DetailAstImpl>
      • buildExpressionNode

        private DetailAstImpl buildExpressionNode​(org.antlr.v4.runtime.tree.ParseTree exprNode)
        Builds an expression node. This is used to build the root of an expression with an imaginary EXPR node.
        Parameters:
        exprNode - expression to build node for
        Returns:
        expression DetailAstImpl node