Class JavaAstVisitor
- All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>,org.antlr.v4.runtime.tree.ParseTreeVisitor<DetailAstImpl>
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 ClassesModifier and TypeClassDescriptionprivate static final classUsed to swap and organize DetailAstImpl subtrees. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int[]The tokens here are technically expressions, but should not return an EXPR token as their root.private static final StringString representation of the left shift operator.private static final StringString representation of the right shift operator.private final org.antlr.v4.runtime.BufferedTokenStreamToken stream to check for hidden tokens.private static final StringString representation of the unsigned right shift operator. -
Constructor Summary
ConstructorsConstructorDescriptionJavaAstVisitor(org.antlr.v4.runtime.CommonTokenStream tokenStream) Constructs a JavaAstVisitor with given token stream. -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddLastSibling(DetailAstImpl self, DetailAstImpl sibling) Add new sibling to the end of existing siblings.private DetailAstImplbuildExpressionNode(org.antlr.v4.runtime.tree.ParseTree exprNode) Builds an expression node.private DetailAstImplcreate(int tokenType, org.antlr.v4.runtime.Token startToken) Create a DetailAstImpl from a given token and token type.private DetailAstImplcreate(org.antlr.v4.runtime.Token token) Create a DetailAstImpl from a given token.private DetailAstImplcreate(org.antlr.v4.runtime.tree.TerminalNode node) Create a DetailAstImpl from a given TerminalNode.private static DetailAstImplcreateImaginary(int tokenType) Create a DetailAstImpl from a given token and token type.private DetailAstImplcreateLambdaParameter(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 DetailAstImplcreateModifiers(List<? extends org.antlr.v4.runtime.tree.ParseTree> modifierList) Builds the modifiers AST.private DetailAstImplcreateTypeDeclaration(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 DetailAstImplflattenedTree(org.antlr.v4.runtime.ParserRuleContext ctx) Builds the AST for a particular node, then returns a "flattened" tree of siblings.private DetailAstImplgetInnerBopAst(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BinOpContext descendant) Builds the binary operation (binOp) AST.private voidprocessChildren(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.visit(org.antlr.v4.runtime.tree.ParseTree tree) visitAnnotation(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationContext ctx) Visit a parse tree produced byJavaLanguageParser.annotation().visitAnnotationField(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationFieldContext ctx) Visit a parse tree produced by theannotationFieldlabeled alternative inJavaLanguageParser.annotationTypeElementRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).visitAnnotationMethodRest(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationMethodRestContext ctx) Visit a parse tree produced byJavaLanguageParser.annotationMethodRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext).visitAnnotations(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationsContext ctx) Visit a parse tree produced byJavaLanguageParser.annotations(boolean).visitAnnotationType(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationTypeContext ctx) Visit a parse tree produced by theannotationTypelabeled alternative inJavaLanguageParser.annotationTypeElementRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).visitAnnotationTypeBody(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationTypeBodyContext ctx) Visit a parse tree produced byJavaLanguageParser.annotationTypeBody().visitAnnotationTypeDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationTypeDeclarationContext ctx) Visit a parse tree produced byJavaLanguageParser.annotationTypeDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).visitAnnotationTypeElementDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationTypeElementDeclarationContext ctx) Visit a parse tree produced byJavaLanguageParser.annotationTypeElementDeclaration().visitArguments(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ArgumentsContext ctx) Visit a parse tree produced byJavaLanguageParser.arguments().visitArrayCreatorRest(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ArrayCreatorRestContext ctx) Visit a parse tree produced byJavaLanguageParser.arrayCreatorRest().visitArrayDeclarator(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ArrayDeclaratorContext ctx) Visit a parse tree produced byJavaLanguageParser.arrayDeclarator().visitArrayInitializer(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ArrayInitializerContext ctx) Visit a parse tree produced byJavaLanguageParser.arrayInitializer().visitAssertExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AssertExpContext ctx) Visit a parse tree produced by theassertExplabeled alternative inJavaLanguageParser.statement().visitBinOp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BinOpContext ctx) Visit a parse tree produced by thebinOplabeled alternative inJavaLanguageParser.expr().visitBitShift(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BitShiftContext ctx) Visit a parse tree produced by thebitShiftlabeled alternative inJavaLanguageParser.expr().visitBlock(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BlockContext ctx) Visit a parse tree produced byJavaLanguageParser.block().visitBlockStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BlockStatContext ctx) Visit a parse tree produced by theblockStatlabeled alternative inJavaLanguageParser.statement().visitBracketsWithExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BracketsWithExpContext ctx) Visit a parse tree produced byJavaLanguageParser.bracketsWithExp().visitBreakStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BreakStatContext ctx) Visit a parse tree produced by thebreakStatlabeled alternative inJavaLanguageParser.statement().visitCaseConstant(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CaseConstantContext ctx) Visit a parse tree produced byJavaLanguageParser.caseConstant().visitCaseConstants(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CaseConstantsContext ctx) Visit a parse tree produced byJavaLanguageParser.caseConstants().visitCaseLabel(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CaseLabelContext ctx) Visit a parse tree produced by thecaseLabellabeled alternative inJavaLanguageParser.switchLabel().visitCastExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CastExpContext ctx) Visit a parse tree produced by thecastExplabeled alternative inJavaLanguageParser.expr().visitCatchClause(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CatchClauseContext ctx) Visit a parse tree produced byJavaLanguageParser.catchClause().visitCatchParameter(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CatchParameterContext ctx) Visit a parse tree produced byJavaLanguageParser.catchParameter().visitCatchType(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CatchTypeContext ctx) Visit a parse tree produced byJavaLanguageParser.catchType().visitClassBlock(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassBlockContext ctx) Visit a parse tree produced by theclassBlocklabeled alternative inJavaLanguageParser.classBodyDeclaration().visitClassBody(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassBodyContext ctx) Visit a parse tree produced byJavaLanguageParser.classBody().visitClassCreatorRest(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassCreatorRestContext ctx) Visit a parse tree produced byJavaLanguageParser.classCreatorRest().visitClassDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassDeclarationContext ctx) Visit a parse tree produced byJavaLanguageParser.classDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).visitClassExtends(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassExtendsContext ctx) Visit a parse tree produced byJavaLanguageParser.classExtends().visitClassOrInterfaceType(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassOrInterfaceTypeContext ctx) Visit a parse tree produced byJavaLanguageParser.classOrInterfaceType(boolean).visitClassRefPrimary(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassRefPrimaryContext ctx) Visit a parse tree produced by theclassRefPrimarylabeled alternative inJavaLanguageParser.primary().visitCompactConstructorDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CompactConstructorDeclarationContext ctx) Visit a parse tree produced byJavaLanguageParser.compactConstructorDeclaration().visitCompilationUnit(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CompilationUnitContext ctx) Visit a parse tree produced byJavaLanguageParser.compilationUnit().visitConstructorBlock(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ConstructorBlockContext ctx) Visit a parse tree produced byJavaLanguageParser.constructorBlock().visitConstructorDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ConstructorDeclarationContext ctx) Visit a parse tree produced byJavaLanguageParser.constructorDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).visitContinueStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ContinueStatContext ctx) Visit a parse tree produced by thecontinueStatlabeled alternative inJavaLanguageParser.statement().visitCreatedNameObject(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CreatedNameObjectContext ctx) Visit a parse tree produced by thecreatedNameObjectlabeled alternative inJavaLanguageParser.createdName().visitCreatedNamePrimitive(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CreatedNamePrimitiveContext ctx) Visit a parse tree produced by thecreatedNamePrimitivelabeled alternative inJavaLanguageParser.createdName().visitCreator(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CreatorContext ctx) Visit a parse tree produced byJavaLanguageParser.creator().visitDefaultLabel(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.DefaultLabelContext ctx) Visit a parse tree produced by thedefaultLabellabeled alternative inJavaLanguageParser.switchLabel().visitDefaultValue(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.DefaultValueContext ctx) Visit a parse tree produced byJavaLanguageParser.defaultValue().visitDiamond(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.DiamondContext ctx) Visit a parse tree produced by thediamondlabeled alternative inJavaLanguageParser.typeArgumentsOrDiamond().visitDoStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.DoStatContext ctx) Visit a parse tree produced by thedoStatlabeled alternative inJavaLanguageParser.statement().visitElementValue(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElementValueContext ctx) Visit a parse tree produced byJavaLanguageParser.elementValue().visitElementValueArrayInitializer(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElementValueArrayInitializerContext ctx) Visit a parse tree produced byJavaLanguageParser.elementValueArrayInitializer().visitElementValuePair(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElementValuePairContext ctx) Visit a parse tree produced byJavaLanguageParser.elementValuePair().visitElementValuePairs(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElementValuePairsContext ctx) Visit a parse tree produced byJavaLanguageParser.elementValuePairs().visitElseStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElseStatContext ctx) Visit a parse tree produced byJavaLanguageParser.elseStat().visitEmptyClass(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EmptyClassContext ctx) Visit a parse tree produced by theemptyClasslabeled alternative inJavaLanguageParser.classBodyDeclaration().visitEmptyStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EmptyStatContext ctx) Visit a parse tree produced by theemptyStatlabeled alternative inJavaLanguageParser.statement().visitEnhancedFor(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnhancedForContext ctx) Visit a parse tree produced by theenhancedForlabeled alternative inJavaLanguageParser.forControl().visitEnhancedForControl(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnhancedForControlContext ctx) Visit a parse tree produced byJavaLanguageParser.enhancedForControl().visitEnhancedForControlWithRecordPattern(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnhancedForControlWithRecordPatternContext ctx) Visit a parse tree produced byJavaLanguageParser.enhancedForControlWithRecordPattern().visitEnumBody(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumBodyContext ctx) Visit a parse tree produced byJavaLanguageParser.enumBody().visitEnumBodyDeclarations(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumBodyDeclarationsContext ctx) Visit a parse tree produced byJavaLanguageParser.enumBodyDeclarations().visitEnumConstant(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumConstantContext ctx) Visit a parse tree produced byJavaLanguageParser.enumConstant().visitEnumConstants(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumConstantsContext ctx) Visit a parse tree produced byJavaLanguageParser.enumConstants().visitEnumDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumDeclarationContext ctx) Visit a parse tree produced byJavaLanguageParser.enumDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).visitExplicitCtorCall(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ExplicitCtorCallContext ctx) Visit a parse tree produced by theexplicitCtorCalllabeled alternative inJavaLanguageParser.explicitConstructorInvocation().visitExpression(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ExpressionContext ctx) Visit a parse tree produced byJavaLanguageParser.expression().visitExpressionList(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ExpressionListContext ctx) Visit a parse tree produced byJavaLanguageParser.expressionList().visitExpStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ExpStatContext ctx) Visit a parse tree produced by theexpStatlabeled alternative inJavaLanguageParser.statement().visitFieldDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FieldDeclarationContext ctx) Visit a parse tree produced byJavaLanguageParser.fieldDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).visitFinallyBlock(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FinallyBlockContext ctx) Visit a parse tree produced byJavaLanguageParser.finallyBlock().visitFloatLiteral(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FloatLiteralContext ctx) Visit a parse tree produced byJavaLanguageParser.floatLiteral().visitForFor(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ForForContext ctx) Visit a parse tree produced by theforForlabeled alternative inJavaLanguageParser.forControl().visitForInit(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ForInitContext ctx) Visit a parse tree produced byJavaLanguageParser.forInit().visitFormalLambdaParam(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FormalLambdaParamContext ctx) Visit a parse tree produced by theformalLambdaParamlabeled alternative inJavaLanguageParser.lambdaParameters().visitFormalParameter(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FormalParameterContext ctx) Visit a parse tree produced byJavaLanguageParser.formalParameter().visitFormalParameterList(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FormalParameterListContext ctx) Visit a parse tree produced byJavaLanguageParser.formalParameterList().visitFormalParameters(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FormalParametersContext ctx) Visit a parse tree produced byJavaLanguageParser.formalParameters().visitForStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ForStatContext ctx) Visit a parse tree produced by theforStatlabeled alternative inJavaLanguageParser.statement().visitGuardedPattern(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.GuardedPatternContext ctx) Visit a parse tree produced byJavaLanguageParser.guardedPattern().visitId(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IdContext ctx) Visit a parse tree produced byJavaLanguageParser.id().visitIfStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IfStatContext ctx) Visit a parse tree produced by theifStatlabeled alternative inJavaLanguageParser.statement().visitImplementsClause(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ImplementsClauseContext ctx) Visit a parse tree produced byJavaLanguageParser.implementsClause().visitImportDec(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ImportDecContext ctx) Visit a parse tree produced by theimportDeclabeled alternative inJavaLanguageParser.importDeclaration().visitIndexOp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IndexOpContext ctx) Visit a parse tree produced by theindexOplabeled alternative inJavaLanguageParser.expr().visitInitExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InitExpContext ctx) Visit a parse tree produced by theinitExplabeled alternative inJavaLanguageParser.expr().visitInnerCreator(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InnerCreatorContext ctx) Visit a parse tree produced byJavaLanguageParser.innerCreator().visitInnerPattern(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InnerPatternContext ctx) Visit a parse tree produced byJavaLanguageParser.innerPattern().visitInstanceOfExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InstanceOfExpContext ctx) Visit a parse tree produced by theinstanceOfExplabeled alternative inJavaLanguageParser.expr().visitIntegerLiteral(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IntegerLiteralContext ctx) Visit a parse tree produced byJavaLanguageParser.integerLiteral().visitInterfaceBody(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceBodyContext ctx) Visit a parse tree produced byJavaLanguageParser.interfaceBody().visitInterfaceBodyDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceBodyDeclarationContext ctx) Visit a parse tree produced byJavaLanguageParser.interfaceBodyDeclaration().visitInterfaceDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceDeclarationContext ctx) Visit a parse tree produced byJavaLanguageParser.interfaceDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).visitInterfaceExtends(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceExtendsContext ctx) Visit a parse tree produced byJavaLanguageParser.interfaceExtends().visitInterfaceMethodDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceMethodDeclarationContext ctx) Visit a parse tree produced byJavaLanguageParser.interfaceMethodDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).visitInvOp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InvOpContext ctx) Visit a parse tree produced by theinvOplabeled alternative inJavaLanguageParser.expr().visitLabelStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LabelStatContext ctx) Visit a parse tree produced by thelabelStatlabeled alternative inJavaLanguageParser.statement().visitLambdaExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LambdaExpContext ctx) Visit a parse tree produced by thelambdaExplabeled alternative inJavaLanguageParser.expr().visitLastFormalParameter(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LastFormalParameterContext ctx) Visit a parse tree produced byJavaLanguageParser.lastFormalParameter().visitLastRecordComponent(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LastRecordComponentContext ctx) Visit a parse tree produced byJavaLanguageParser.lastRecordComponent().visitLiteral(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LiteralContext ctx) Visit a parse tree produced byJavaLanguageParser.literal().visitLocalVar(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LocalVarContext ctx) Visit a parse tree produced by thelocalVarlabeled alternative inJavaLanguageParser.blockStatement().visitMethodBody(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MethodBodyContext ctx) Visit a parse tree produced byJavaLanguageParser.methodBody().visitMethodCall(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MethodCallContext ctx) Visit a parse tree produced by themethodCalllabeled alternative inJavaLanguageParser.expr().visitMethodDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MethodDeclarationContext ctx) Visit a parse tree produced byJavaLanguageParser.methodDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).visitMethodRef(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MethodRefContext ctx) Visit a parse tree produced by themethodReflabeled alternative inJavaLanguageParser.expr().visitModifier(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext ctx) Visit a parse tree produced byJavaLanguageParser.modifier().visitMultiLambdaParam(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MultiLambdaParamContext ctx) Visit a parse tree produced by themultiLambdaParamlabeled alternative inJavaLanguageParser.lambdaParameters().visitMultiLambdaParams(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MultiLambdaParamsContext ctx) Visit a parse tree produced byJavaLanguageParser.multiLambdaParams().visitNewExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.NewExpContext ctx) Visit a parse tree produced by thenewExplabeled alternative inJavaLanguageParser.expr().visitNonWildcardDiamond(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.NonWildcardDiamondContext ctx) Visit a parse tree produced by thenonWildcardDiamondlabeled alternative inJavaLanguageParser.nonWildcardTypeArgumentsOrDiamond().visitNonWildcardTypeArguments(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.NonWildcardTypeArgumentsContext ctx) Visit a parse tree produced byJavaLanguageParser.nonWildcardTypeArguments().visitPackageDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PackageDeclarationContext ctx) Visit a parse tree produced byJavaLanguageParser.packageDeclaration().visitParenPattern(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ParenPatternContext ctx) Visit a parse tree produced by theparenPatternlabeled alternative inJavaLanguageParser.primaryPattern().visitParenPrimary(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ParenPrimaryContext ctx) Visit a parse tree produced by theparenPrimarylabeled alternative inJavaLanguageParser.primary().visitParExpression(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ParExpressionContext ctx) Visit a parse tree produced byJavaLanguageParser.parExpression().visitPattern(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PatternContext ctx) Visit a parse tree produced byJavaLanguageParser.pattern().visitPermittedSubclassesAndInterfaces(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PermittedSubclassesAndInterfacesContext ctx) Visit a parse tree produced byJavaLanguageParser.permittedSubclassesAndInterfaces().visitPostfix(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PostfixContext ctx) Visit a parse tree produced by thepostfixlabeled alternative inJavaLanguageParser.expr().visitPrefix(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrefixContext ctx) Visit a parse tree produced by theprefixlabeled alternative inJavaLanguageParser.expr().visitPrimaryCtorCall(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrimaryCtorCallContext ctx) Visit a parse tree produced by theprimaryCtorCalllabeled alternative inJavaLanguageParser.explicitConstructorInvocation().visitPrimaryExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrimaryExpContext ctx) Visit a parse tree produced by theprimaryExplabeled alternative inJavaLanguageParser.expr().visitPrimitivePrimary(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrimitivePrimaryContext ctx) Visit a parse tree produced by theprimitivePrimarylabeled alternative inJavaLanguageParser.primary().visitPrimitiveType(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrimitiveTypeContext ctx) Visit a parse tree produced byJavaLanguageParser.primitiveType().visitQualifiedName(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.QualifiedNameContext ctx) Visit a parse tree produced byJavaLanguageParser.qualifiedName().visitQualifiedNameList(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.QualifiedNameListContext ctx) Visit a parse tree produced byJavaLanguageParser.qualifiedNameList().visitRecordBody(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordBodyContext ctx) Visit a parse tree produced byJavaLanguageParser.recordBody().visitRecordComponent(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordComponentContext ctx) Visit a parse tree produced byJavaLanguageParser.recordComponent().visitRecordComponentPatternList(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordComponentPatternListContext ctx) Visit a parse tree produced byJavaLanguageParser.recordComponentPatternList().visitRecordComponents(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordComponentsContext ctx) Visit a parse tree produced byJavaLanguageParser.recordComponents().visitRecordComponentsList(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordComponentsListContext ctx) Visit a parse tree produced byJavaLanguageParser.recordComponentsList().visitRecordDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordDeclarationContext ctx) Visit a parse tree produced byJavaLanguageParser.recordDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).visitRecordPattern(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordPatternContext ctx) Visit a parse tree produced byJavaLanguageParser.recordPattern().visitRecordPatternDef(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordPatternDefContext ctx) Visit a parse tree produced by therecordPatternDeflabeled alternative inJavaLanguageParser.primaryPattern().visitRefOp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RefOpContext ctx) Visit a parse tree produced by therefOplabeled alternative inJavaLanguageParser.expr().visitResourceDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ResourceDeclarationContext ctx) Visit a parse tree produced byJavaLanguageParser.resourceDeclaration().visitResources(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ResourcesContext ctx) Visit a parse tree produced byJavaLanguageParser.resources().visitResourceSpecification(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ResourceSpecificationContext ctx) Visit a parse tree produced byJavaLanguageParser.resourceSpecification().visitReturnStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ReturnStatContext ctx) Visit a parse tree produced by thereturnStatlabeled alternative inJavaLanguageParser.statement().visitSimpleMethodCall(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SimpleMethodCallContext ctx) Visit a parse tree produced by thesimpleMethodCalllabeled alternative inJavaLanguageParser.expr().visitSimpleTypeArgument(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SimpleTypeArgumentContext ctx) Visit a parse tree produced by thesimpleTypeArgumentlabeled alternative inJavaLanguageParser.typeArgument().visitSingleLambdaParam(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SingleLambdaParamContext ctx) Visit a parse tree produced by thesingleLambdaParamlabeled alternative inJavaLanguageParser.lambdaParameters().visitSingleSemiImport(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SingleSemiImportContext ctx) Visit a parse tree produced by thesingleSemiImportlabeled alternative inJavaLanguageParser.importDeclaration().visitSuperExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SuperExpContext ctx) Visit a parse tree produced by thesuperExplabeled alternative inJavaLanguageParser.expr().visitSuperSuffixDot(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SuperSuffixDotContext ctx) Visit a parse tree produced by thesuperSuffixDotlabeled alternative inJavaLanguageParser.superSuffix().visitSwitchBlocks(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchBlocksContext ctx) Visit a parse tree produced by theswitchBlockslabeled alternative inJavaLanguageParser.switchBlock().visitSwitchBlockStatementGroup(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchBlockStatementGroupContext ctx) Visit a parse tree produced byJavaLanguageParser.switchBlockStatementGroup().visitSwitchExpressionOrStatement(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchExpressionOrStatementContext ctx) Visit a parse tree produced byJavaLanguageParser.switchExpressionOrStatement().visitSwitchLabeledBlock(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchLabeledBlockContext ctx) Visit a parse tree produced byJavaLanguageParser.switchLabeledBlock().visitSwitchLabeledExpression(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchLabeledExpressionContext ctx) Visit a parse tree produced byJavaLanguageParser.switchLabeledExpression().visitSwitchLabeledThrow(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchLabeledThrowContext ctx) Visit a parse tree produced byJavaLanguageParser.switchLabeledThrow().visitSwitchRules(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchRulesContext ctx) Visit a parse tree produced by theswitchRuleslabeled alternative inJavaLanguageParser.switchBlock().visitSyncStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SyncStatContext ctx) Visit a parse tree produced by thesyncStatlabeled alternative inJavaLanguageParser.statement().visitTernaryOp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TernaryOpContext ctx) Visit a parse tree produced by theternaryOplabeled alternative inJavaLanguageParser.expr().visitTextBlockLiteral(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TextBlockLiteralContext ctx) Visit a parse tree produced byJavaLanguageParser.textBlockLiteral().visitThisExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ThisExpContext ctx) Visit a parse tree produced by thethisExplabeled alternative inJavaLanguageParser.expr().visitThrowsList(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ThrowsListContext ctx) Visit a parse tree produced byJavaLanguageParser.throwsList().visitThrowStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ThrowStatContext ctx) Visit a parse tree produced by thethrowStatlabeled alternative inJavaLanguageParser.statement().visitTokenPrimary(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TokenPrimaryContext ctx) Visit a parse tree produced by thetokenPrimarylabeled alternative inJavaLanguageParser.primary().visitTryStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TryStatContext ctx) Visit a parse tree produced by thetryStatlabeled alternative inJavaLanguageParser.statement().visitTryWithResourceStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TryWithResourceStatContext ctx) Visit a parse tree produced by thetryWithResourceStatlabeled alternative inJavaLanguageParser.statement().visitTypeArgs(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeArgsContext ctx) Visit a parse tree produced by thetypeArgslabeled alternative inJavaLanguageParser.typeArgumentsOrDiamond().visitTypeArguments(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeArgumentsContext ctx) Visit a parse tree produced byJavaLanguageParser.typeArguments().visitTypeArgumentsTypeList(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeArgumentsTypeListContext ctx) Visit a parse tree produced byJavaLanguageParser.typeArgumentsTypeList().visitTypeBound(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeBoundContext ctx) Visit a parse tree produced byJavaLanguageParser.typeBound().visitTypeBoundType(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeBoundTypeContext ctx) Visit a parse tree produced byJavaLanguageParser.typeBoundType().visitTypeCastParameters(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeCastParametersContext ctx) Visit a parse tree produced byJavaLanguageParser.typeCastParameters().visitTypeDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeDeclarationContext ctx) Visit a parse tree produced byJavaLanguageParser.typeDeclaration().visitTypeList(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeListContext ctx) Visit a parse tree produced byJavaLanguageParser.typeList().visitTypeParameter(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeParameterContext ctx) Visit a parse tree produced byJavaLanguageParser.typeParameter().visitTypeParameters(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeParametersContext ctx) Visit a parse tree produced byJavaLanguageParser.typeParameters().visitTypePatternDef(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypePatternDefContext ctx) Visit a parse tree produced by thetypePatternDeflabeled alternative inJavaLanguageParser.typePattern().visitTypeType(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext ctx) Visit a parse tree produced byJavaLanguageParser.typeType(boolean).visitTypeUpperBounds(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeUpperBoundsContext ctx) Visit a parse tree produced byJavaLanguageParser.typeUpperBounds().visitUnnamedPatternDef(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.UnnamedPatternDefContext ctx) Visit a parse tree produced by theunnamedPatternDeflabeled alternative inJavaLanguageParser.typePattern().visitVariableAccess(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableAccessContext ctx) Visit a parse tree produced byJavaLanguageParser.variableAccess().visitVariableDeclarator(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableDeclaratorContext ctx) Visit a parse tree produced byJavaLanguageParser.variableDeclarator(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext).visitVariableDeclaratorId(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableDeclaratorIdContext ctx) Visit a parse tree produced byJavaLanguageParser.variableDeclaratorId(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableModifierContext>, org.antlr.v4.runtime.ParserRuleContext).visitVariableDeclarators(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableDeclaratorsContext ctx) Visit a parse tree produced byJavaLanguageParser.variableDeclarators(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext).visitVariableModifier(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableModifierContext ctx) Visit a parse tree produced byJavaLanguageParser.variableModifier().visitWhileStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.WhileStatContext ctx) Visit a parse tree produced by thewhileStatlabeled alternative inJavaLanguageParser.statement().visitWildCardTypeArgument(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.WildCardTypeArgumentContext ctx) Visit a parse tree produced by thewildCardTypeArgumentlabeled alternative inJavaLanguageParser.typeArgument().visitYieldStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.YieldStatContext ctx) Visit a parse tree produced by theyieldStatlabeled alternative inJavaLanguageParser.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, visitSuperSuffixSimple, visitSwitchLabeledRule, visitSwitchPrimary, visitSwitchStat, visitTypes, visitVariableInitializerMethods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visitChildren, visitErrorNode, visitTerminalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visitChildren, visitErrorNode, visitTerminal
-
Field Details
-
LEFT_SHIFT
String representation of the left shift operator.- See Also:
-
UNSIGNED_RIGHT_SHIFT
String representation of the unsigned right shift operator.- See Also:
-
RIGHT_SHIFT
String representation of the right shift operator.- See Also:
-
EXPRESSIONS_WITH_NO_EXPR_ROOT
The tokens here are technically expressions, but should not return an EXPR token as their root. -
tokens
Token stream to check for hidden tokens.
-
-
Constructor Details
-
JavaAstVisitor
Constructs a JavaAstVisitor with given token stream.- Parameters:
tokenStream- the token stream to check for hidden tokens
-
-
Method Details
-
visitCompilationUnit
public DetailAstImpl visitCompilationUnit(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CompilationUnitContext ctx) Description copied from class:com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.compilationUnit().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCompilationUnitin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCompilationUnitin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.packageDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPackageDeclarationin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPackageDeclarationin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theimportDeclabeled alternative inJavaLanguageParser.importDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitImportDecin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitImportDecin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thesingleSemiImportlabeled alternative inJavaLanguageParser.importDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSingleSemiImportin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSingleSemiImportin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeDeclarationin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeDeclarationin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.modifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitModifierin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitModifierin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.variableModifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableModifierin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitVariableModifierin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.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)onctx.- Specified by:
visitClassDeclarationin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassDeclarationin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.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)onctx.- Specified by:
visitRecordDeclarationin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordDeclarationin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.recordComponentsList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecordComponentsListin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordComponentsListin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.recordComponents().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecordComponentsin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordComponentsin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.recordComponent().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecordComponentin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordComponentin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.lastRecordComponent().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLastRecordComponentin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLastRecordComponentin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.recordBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecordBodyin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordBodyin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.compactConstructorDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCompactConstructorDeclarationin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCompactConstructorDeclarationin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.classExtends().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassExtendsin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassExtendsin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.implementsClause().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitImplementsClausein interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitImplementsClausein classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeParametersin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeParametersin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeParameterin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeParameterin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeUpperBounds().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeUpperBoundsin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeUpperBoundsin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeBound().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeBoundin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeBoundin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeBoundType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeBoundTypein interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeBoundTypein classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.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)onctx.- Specified by:
visitEnumDeclarationin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnumDeclarationin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enumBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumBodyin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnumBodyin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enumConstants().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumConstantsin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnumConstantsin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enumConstant().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumConstantin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnumConstantin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enumBodyDeclarations().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumBodyDeclarationsin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnumBodyDeclarationsin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.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)onctx.- Specified by:
visitInterfaceDeclarationin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInterfaceDeclarationin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.interfaceExtends().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceExtendsin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInterfaceExtendsin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.classBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassBodyin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassBodyin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.interfaceBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceBodyin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInterfaceBodyin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theemptyClasslabeled alternative inJavaLanguageParser.classBodyDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEmptyClassin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEmptyClassin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theclassBlocklabeled alternative inJavaLanguageParser.classBodyDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassBlockin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassBlockin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.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)onctx.- Specified by:
visitMethodDeclarationin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMethodDeclarationin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.methodBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodBodyin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMethodBodyin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.throwsList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThrowsListin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitThrowsListin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.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)onctx.- Specified by:
visitConstructorDeclarationin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitConstructorDeclarationin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.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)onctx.- Specified by:
visitFieldDeclarationin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFieldDeclarationin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.interfaceBodyDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceBodyDeclarationin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInterfaceBodyDeclarationin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.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)onctx.- Specified by:
visitInterfaceMethodDeclarationin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInterfaceMethodDeclarationin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.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)onctx.- Specified by:
visitVariableDeclaratorsin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitVariableDeclaratorsin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.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)onctx.- Specified by:
visitVariableDeclaratorin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitVariableDeclaratorin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.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)onctx.- Specified by:
visitVariableDeclaratorIdin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitVariableDeclaratorIdin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.arrayInitializer().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrayInitializerin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitArrayInitializerin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.classOrInterfaceType(boolean).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassOrInterfaceTypein interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassOrInterfaceTypein classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thesimpleTypeArgumentlabeled alternative inJavaLanguageParser.typeArgument().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSimpleTypeArgumentin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSimpleTypeArgumentin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thewildCardTypeArgumentlabeled alternative inJavaLanguageParser.typeArgument().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitWildCardTypeArgumentin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitWildCardTypeArgumentin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.qualifiedNameList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedNameListin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitQualifiedNameListin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.formalParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParametersin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFormalParametersin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.formalParameterList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParameterListin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFormalParameterListin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.formalParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParameterin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFormalParameterin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.lastFormalParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLastFormalParameterin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLastFormalParameterin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.qualifiedName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedNamein interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitQualifiedNamein classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLiteralin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLiteralin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.integerLiteral().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIntegerLiteralin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitIntegerLiteralin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.floatLiteral().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFloatLiteralin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFloatLiteralin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.textBlockLiteral().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTextBlockLiteralin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTextBlockLiteralin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.annotations(boolean).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationsin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationsin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.annotation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.elementValuePairs().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuePairsin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitElementValuePairsin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.elementValuePair().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuePairin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitElementValuePairin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.elementValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuein interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitElementValuein classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.elementValueArrayInitializer().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValueArrayInitializerin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitElementValueArrayInitializerin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.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)onctx.- Specified by:
visitAnnotationTypeDeclarationin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationTypeDeclarationin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.annotationTypeBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationTypeBodyin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationTypeBodyin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.annotationTypeElementDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationTypeElementDeclarationin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationTypeElementDeclarationin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theannotationFieldlabeled alternative inJavaLanguageParser.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)onctx.- Specified by:
visitAnnotationFieldin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationFieldin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theannotationTypelabeled alternative inJavaLanguageParser.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)onctx.- Specified by:
visitAnnotationTypein interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationTypein classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.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)onctx.- Specified by:
visitAnnotationMethodRestin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationMethodRestin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.defaultValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDefaultValuein interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitDefaultValuein classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.constructorBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConstructorBlockin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitConstructorBlockin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theexplicitCtorCalllabeled alternative inJavaLanguageParser.explicitConstructorInvocation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExplicitCtorCallin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitExplicitCtorCallin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theprimaryCtorCalllabeled alternative inJavaLanguageParser.explicitConstructorInvocation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimaryCtorCallin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPrimaryCtorCallin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.block().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBlockin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thelocalVarlabeled alternative inJavaLanguageParser.blockStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLocalVarin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLocalVarin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theblockStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockStatin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBlockStatin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theassertExplabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAssertExpin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAssertExpin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theifStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIfStatin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitIfStatin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theforStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForStatin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitForStatin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thewhileStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitWhileStatin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitWhileStatin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thedoStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDoStatin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitDoStatin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thetryStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTryStatin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTryStatin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thetryWithResourceStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTryWithResourceStatin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTryWithResourceStatin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theyieldStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitYieldStatin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitYieldStatin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thesyncStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSyncStatin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSyncStatin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thereturnStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitReturnStatin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitReturnStatin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thethrowStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThrowStatin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitThrowStatin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thebreakStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBreakStatin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBreakStatin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thecontinueStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitContinueStatin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitContinueStatin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theemptyStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEmptyStatin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEmptyStatin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theexpStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpStatin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitExpStatin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thelabelStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLabelStatin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLabelStatin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.switchExpressionOrStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchExpressionOrStatementin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchExpressionOrStatementin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theswitchRuleslabeled alternative inJavaLanguageParser.switchBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchRulesin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchRulesin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theswitchBlockslabeled alternative inJavaLanguageParser.switchBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchBlocksin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchBlocksin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.switchLabeledExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchLabeledExpressionin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchLabeledExpressionin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.switchLabeledBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchLabeledBlockin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchLabeledBlockin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.switchLabeledThrow().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchLabeledThrowin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchLabeledThrowin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.elseStat().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElseStatin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitElseStatin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.catchClause().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCatchClausein interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCatchClausein classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.catchParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCatchParameterin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCatchParameterin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.catchType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCatchTypein interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCatchTypein classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.finallyBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFinallyBlockin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFinallyBlockin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.resourceSpecification().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourceSpecificationin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitResourceSpecificationin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.resources().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourcesin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitResourcesin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.resourceDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourceDeclarationin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitResourceDeclarationin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.variableAccess().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableAccessin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitVariableAccessin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.switchBlockStatementGroup().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchBlockStatementGroupin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchBlockStatementGroupin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thecaseLabellabeled alternative inJavaLanguageParser.switchLabel().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCaseLabelin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCaseLabelin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thedefaultLabellabeled alternative inJavaLanguageParser.switchLabel().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDefaultLabelin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitDefaultLabelin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.caseConstants().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCaseConstantsin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCaseConstantsin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.caseConstant().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCaseConstantin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCaseConstantin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theenhancedForlabeled alternative inJavaLanguageParser.forControl().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnhancedForin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnhancedForin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theforForlabeled alternative inJavaLanguageParser.forControl().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForForin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitForForin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.forInit().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForInitin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitForInitin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enhancedForControl().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnhancedForControlin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnhancedForControlin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enhancedForControlWithRecordPattern().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnhancedForControlWithRecordPatternin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnhancedForControlWithRecordPatternin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.parExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParExpressionin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitParExpressionin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.expressionList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpressionListin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitExpressionListin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpressionin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitExpressionin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by therefOplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRefOpin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRefOpin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thesuperExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSuperExpin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSuperExpin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theinstanceOfExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInstanceOfExpin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInstanceOfExpin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thebitShiftlabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBitShiftin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBitShiftin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thenewExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNewExpin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitNewExpin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theprefixlabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrefixin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPrefixin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thecastExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCastExpin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCastExpin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theindexOplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIndexOpin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitIndexOpin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theinvOplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInvOpin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInvOpin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theinitExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInitExpin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInitExpin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thesimpleMethodCalllabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSimpleMethodCallin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSimpleMethodCallin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thelambdaExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLambdaExpin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLambdaExpin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thethisExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThisExpin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitThisExpin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theprimaryExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimaryExpin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPrimaryExpin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thepostfixlabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPostfixin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPostfixin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by themethodReflabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodRefin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMethodRefin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theternaryOplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTernaryOpin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTernaryOpin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thebinOplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBinOpin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBinOpin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by themethodCalllabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodCallin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMethodCallin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeCastParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeCastParametersin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeCastParametersin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thesingleLambdaParamlabeled alternative inJavaLanguageParser.lambdaParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSingleLambdaParamin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSingleLambdaParamin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theformalLambdaParamlabeled alternative inJavaLanguageParser.lambdaParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalLambdaParamin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFormalLambdaParamin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by themultiLambdaParamlabeled alternative inJavaLanguageParser.lambdaParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMultiLambdaParamin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMultiLambdaParamin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.multiLambdaParams().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMultiLambdaParamsin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMultiLambdaParamsin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theparenPrimarylabeled alternative inJavaLanguageParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParenPrimaryin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitParenPrimaryin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thetokenPrimarylabeled alternative inJavaLanguageParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTokenPrimaryin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTokenPrimaryin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theclassRefPrimarylabeled alternative inJavaLanguageParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassRefPrimaryin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassRefPrimaryin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theprimitivePrimarylabeled alternative inJavaLanguageParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimitivePrimaryin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPrimitivePrimaryin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.creator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreatorin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCreatorin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thecreatedNameObjectlabeled alternative inJavaLanguageParser.createdName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreatedNameObjectin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCreatedNameObjectin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thecreatedNamePrimitivelabeled alternative inJavaLanguageParser.createdName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreatedNamePrimitivein interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCreatedNamePrimitivein classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.innerCreator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInnerCreatorin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInnerCreatorin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.arrayCreatorRest().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrayCreatorRestin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitArrayCreatorRestin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.bracketsWithExp().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBracketsWithExpin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBracketsWithExpin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.classCreatorRest().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassCreatorRestin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassCreatorRestin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thediamondlabeled alternative inJavaLanguageParser.typeArgumentsOrDiamond().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDiamondin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitDiamondin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thetypeArgslabeled alternative inJavaLanguageParser.typeArgumentsOrDiamond().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgsin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeArgsin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thenonWildcardDiamondlabeled alternative inJavaLanguageParser.nonWildcardTypeArgumentsOrDiamond().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNonWildcardDiamondin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitNonWildcardDiamondin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.nonWildcardTypeArguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNonWildcardTypeArgumentsin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitNonWildcardTypeArgumentsin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeArgumentsTypeList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgumentsTypeListin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeArgumentsTypeListin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeListin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeListin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeType(boolean).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeTypein interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeTypein classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.arrayDeclarator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrayDeclaratorin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitArrayDeclaratorin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.primitiveType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimitiveTypein interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPrimitiveTypein classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeArguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgumentsin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeArgumentsin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thesuperSuffixDotlabeled alternative inJavaLanguageParser.superSuffix().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSuperSuffixDotin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSuperSuffixDotin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.arguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArgumentsin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitArgumentsin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.pattern().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPatternin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPatternin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.innerPattern().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInnerPatternin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInnerPatternin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.guardedPattern().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGuardedPatternin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitGuardedPatternin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theparenPatternlabeled alternative inJavaLanguageParser.primaryPattern().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParenPatternin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitParenPatternin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by therecordPatternDeflabeled alternative inJavaLanguageParser.primaryPattern().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecordPatternDefin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordPatternDefin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by thetypePatternDeflabeled alternative inJavaLanguageParser.typePattern().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypePatternDefin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypePatternDefin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced by theunnamedPatternDeflabeled alternative inJavaLanguageParser.typePattern().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnnamedPatternDefin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitUnnamedPatternDefin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.recordPattern().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecordPatternin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordPatternin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.recordComponentPatternList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecordComponentPatternListin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordComponentPatternListin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.permittedSubclassesAndInterfaces().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPermittedSubclassesAndInterfacesin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPermittedSubclassesAndInterfacesin classcom.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.JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.id().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIdin interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitIdin classcom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
flattenedTree
Builds the AST for a particular node, then returns a "flattened" tree of siblings. This method should be used in rule contexts such asvariableDeclarators, 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 tochildren- the list of children to add
-
createImaginary
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
-
create
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 DetailAstImplstartToken- the first token that appears in this DetailAstImpl.- Returns:
- new DetailAstImpl of given type
-
create
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
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 intype- the type declaration to createmodifierList- 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
Add new sibling to the end of existing siblings.- Parameters:
self- DetailAstImpl to add last sibling tosibling- DetailAstImpl sibling to add
-
visit
- Specified by:
visitin interfaceorg.antlr.v4.runtime.tree.ParseTreeVisitor<DetailAstImpl>- Overrides:
visitin classorg.antlr.v4.runtime.tree.AbstractParseTreeVisitor<DetailAstImpl>
-
buildExpressionNode
Builds an expression node. This is used to build the root of an expression with an imaginaryEXPRnode.- Parameters:
exprNode- expression to build node for- Returns:
- expression DetailAstImpl node
-