Class JavaAstVisitor
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
-
- com.puppycrawl.tools.checkstyle.JavaAstVisitor
-
- All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
,org.antlr.v4.runtime.tree.ParseTreeVisitor<DetailAstImpl>
public final class JavaAstVisitor extends com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
Visitor class used to build Checkstyle's Java AST from the parse tree produced byJavaLanguageParser
. In eachvisit...
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 fromJavaLanguageParser.g4
:packageDeclaration : annotations[true] LITERAL_PACKAGE qualifiedName SEMI ;
We override the
visitPackageDeclaration
method generated by ANTLR inJavaLanguageParser
atvisitPackageDeclaration(JavaLanguageParser.PackageDeclarationContext)
to create a subtree based on the subrules and tokens found in thepackageDeclaration
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 inJavaAstVisitor.java
and production rules inJavaLanguageParser.g4
should be consistent to ease maintenance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
JavaAstVisitor.DetailAstPair
Used to swap and organize DetailAstImpl subtrees.
-
Field Summary
Fields Modifier and Type Field Description private static int[]
EXPRESSIONS_WITH_NO_EXPR_ROOT
The tokens here are technically expressions, but should not return an EXPR token as their root.private static String
LEFT_SHIFT
String representation of the left shift operator.private static String
RIGHT_SHIFT
String representation of the right shift operator.private org.antlr.v4.runtime.BufferedTokenStream
tokens
Token stream to check for hidden tokens.private static String
UNSIGNED_RIGHT_SHIFT
String representation of the unsigned right shift operator.
-
Constructor Summary
Constructors Constructor Description JavaAstVisitor(org.antlr.v4.runtime.CommonTokenStream tokenStream)
Constructs a JavaAstVisitor with given token stream.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static void
addLastSibling(DetailAstImpl self, DetailAstImpl sibling)
Add new sibling to the end of existing siblings.private DetailAstImpl
buildExpressionNode(org.antlr.v4.runtime.tree.ParseTree exprNode)
Builds an expression node.private DetailAstImpl
create(int tokenType, org.antlr.v4.runtime.Token startToken)
Create a DetailAstImpl from a given token and token type.private DetailAstImpl
create(org.antlr.v4.runtime.Token token)
Create a DetailAstImpl from a given token.private DetailAstImpl
create(org.antlr.v4.runtime.tree.TerminalNode node)
Create a DetailAstImpl from a given TerminalNode.private static DetailAstImpl
createImaginary(int tokenType)
Create a DetailAstImpl from a given token and token type.private DetailAstImpl
createLambdaParameter(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IdContext ctx)
Creates a 'PARAMETER_DEF' node for a lambda expression, with imaginary modifier and type nodes.private DetailAstImpl
createModifiers(List<? extends org.antlr.v4.runtime.tree.ParseTree> modifierList)
Builds the modifiers AST.private DetailAstImpl
createTypeDeclaration(org.antlr.v4.runtime.ParserRuleContext ctx, int type, List<? extends org.antlr.v4.runtime.tree.ParseTree> modifierList)
Creates a type declaration DetailAstImpl from a given rule context.private DetailAstImpl
flattenedTree(org.antlr.v4.runtime.ParserRuleContext ctx)
Builds the AST for a particular node, then returns a "flattened" tree of siblings.private DetailAstImpl
getInnerBopAst(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BinOpContext descendant)
Builds the binary operation (binOp) AST.private void
processChildren(DetailAstImpl parent, List<? extends org.antlr.v4.runtime.tree.ParseTree> children)
Adds all the children from the given ParseTree or JavaParserContext list to the parent DetailAstImpl.DetailAstImpl
visit(org.antlr.v4.runtime.tree.ParseTree tree)
DetailAstImpl
visitAnnotation(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationContext ctx)
Visit a parse tree produced byJavaLanguageParser.annotation()
.DetailAstImpl
visitAnnotationField(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationFieldContext ctx)
Visit a parse tree produced by theannotationField
labeled alternative inJavaLanguageParser.annotationTypeElementRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>)
.DetailAstImpl
visitAnnotationMethodRest(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationMethodRestContext ctx)
Visit a parse tree produced byJavaLanguageParser.annotationMethodRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext)
.DetailAstImpl
visitAnnotations(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationsContext ctx)
Visit a parse tree produced byJavaLanguageParser.annotations(boolean)
.DetailAstImpl
visitAnnotationType(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationTypeContext ctx)
Visit a parse tree produced by theannotationType
labeled alternative inJavaLanguageParser.annotationTypeElementRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>)
.DetailAstImpl
visitAnnotationTypeBody(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationTypeBodyContext ctx)
Visit a parse tree produced byJavaLanguageParser.annotationTypeBody()
.DetailAstImpl
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>)
.DetailAstImpl
visitAnnotationTypeElementDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AnnotationTypeElementDeclarationContext ctx)
Visit a parse tree produced byJavaLanguageParser.annotationTypeElementDeclaration()
.DetailAstImpl
visitArguments(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ArgumentsContext ctx)
Visit a parse tree produced byJavaLanguageParser.arguments()
.DetailAstImpl
visitArrayCreatorRest(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ArrayCreatorRestContext ctx)
Visit a parse tree produced byJavaLanguageParser.arrayCreatorRest()
.DetailAstImpl
visitArrayDeclarator(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ArrayDeclaratorContext ctx)
Visit a parse tree produced byJavaLanguageParser.arrayDeclarator()
.DetailAstImpl
visitArrayInitializer(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ArrayInitializerContext ctx)
Visit a parse tree produced byJavaLanguageParser.arrayInitializer()
.DetailAstImpl
visitAssertExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.AssertExpContext ctx)
Visit a parse tree produced by theassertExp
labeled alternative inJavaLanguageParser.statement()
.DetailAstImpl
visitBinOp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BinOpContext ctx)
Visit a parse tree produced by thebinOp
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitBitShift(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BitShiftContext ctx)
Visit a parse tree produced by thebitShift
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitBlock(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BlockContext ctx)
Visit a parse tree produced byJavaLanguageParser.block()
.DetailAstImpl
visitBlockStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BlockStatContext ctx)
Visit a parse tree produced by theblockStat
labeled alternative inJavaLanguageParser.statement()
.DetailAstImpl
visitBracketsWithExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BracketsWithExpContext ctx)
Visit a parse tree produced byJavaLanguageParser.bracketsWithExp()
.DetailAstImpl
visitBreakStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.BreakStatContext ctx)
Visit a parse tree produced by thebreakStat
labeled alternative inJavaLanguageParser.statement()
.DetailAstImpl
visitCaseConstant(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CaseConstantContext ctx)
Visit a parse tree produced byJavaLanguageParser.caseConstant()
.DetailAstImpl
visitCaseConstants(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CaseConstantsContext ctx)
Visit a parse tree produced byJavaLanguageParser.caseConstants()
.DetailAstImpl
visitCaseLabel(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CaseLabelContext ctx)
Visit a parse tree produced by thecaseLabel
labeled alternative inJavaLanguageParser.switchLabel()
.DetailAstImpl
visitCastExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CastExpContext ctx)
Visit a parse tree produced by thecastExp
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitCatchClause(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CatchClauseContext ctx)
Visit a parse tree produced byJavaLanguageParser.catchClause()
.DetailAstImpl
visitCatchParameter(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CatchParameterContext ctx)
Visit a parse tree produced byJavaLanguageParser.catchParameter()
.DetailAstImpl
visitCatchType(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CatchTypeContext ctx)
Visit a parse tree produced byJavaLanguageParser.catchType()
.DetailAstImpl
visitClassBlock(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassBlockContext ctx)
Visit a parse tree produced by theclassBlock
labeled alternative inJavaLanguageParser.classBodyDeclaration()
.DetailAstImpl
visitClassBody(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassBodyContext ctx)
Visit a parse tree produced byJavaLanguageParser.classBody()
.DetailAstImpl
visitClassCreatorRest(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassCreatorRestContext ctx)
Visit a parse tree produced byJavaLanguageParser.classCreatorRest()
.DetailAstImpl
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>)
.DetailAstImpl
visitClassExtends(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassExtendsContext ctx)
Visit a parse tree produced byJavaLanguageParser.classExtends()
.DetailAstImpl
visitClassOrInterfaceType(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassOrInterfaceTypeContext ctx)
Visit a parse tree produced byJavaLanguageParser.classOrInterfaceType(boolean)
.DetailAstImpl
visitClassRefPrimary(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ClassRefPrimaryContext ctx)
Visit a parse tree produced by theclassRefPrimary
labeled alternative inJavaLanguageParser.primary()
.DetailAstImpl
visitCompactConstructorDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CompactConstructorDeclarationContext ctx)
Visit a parse tree produced byJavaLanguageParser.compactConstructorDeclaration()
.DetailAstImpl
visitCompilationUnit(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CompilationUnitContext ctx)
Visit a parse tree produced byJavaLanguageParser.compilationUnit()
.DetailAstImpl
visitConstructorBlock(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ConstructorBlockContext ctx)
Visit a parse tree produced byJavaLanguageParser.constructorBlock()
.DetailAstImpl
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>)
.DetailAstImpl
visitContinueStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ContinueStatContext ctx)
Visit a parse tree produced by thecontinueStat
labeled alternative inJavaLanguageParser.statement()
.DetailAstImpl
visitCreatedNameObject(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CreatedNameObjectContext ctx)
Visit a parse tree produced by thecreatedNameObject
labeled alternative inJavaLanguageParser.createdName()
.DetailAstImpl
visitCreatedNamePrimitive(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CreatedNamePrimitiveContext ctx)
Visit a parse tree produced by thecreatedNamePrimitive
labeled alternative inJavaLanguageParser.createdName()
.DetailAstImpl
visitCreator(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CreatorContext ctx)
Visit a parse tree produced byJavaLanguageParser.creator()
.DetailAstImpl
visitDefaultLabel(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.DefaultLabelContext ctx)
Visit a parse tree produced by thedefaultLabel
labeled alternative inJavaLanguageParser.switchLabel()
.DetailAstImpl
visitDefaultValue(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.DefaultValueContext ctx)
Visit a parse tree produced byJavaLanguageParser.defaultValue()
.DetailAstImpl
visitDiamond(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.DiamondContext ctx)
Visit a parse tree produced by thediamond
labeled alternative inJavaLanguageParser.typeArgumentsOrDiamond()
.DetailAstImpl
visitDoStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.DoStatContext ctx)
Visit a parse tree produced by thedoStat
labeled alternative inJavaLanguageParser.statement()
.DetailAstImpl
visitElementValue(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElementValueContext ctx)
Visit a parse tree produced byJavaLanguageParser.elementValue()
.DetailAstImpl
visitElementValueArrayInitializer(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElementValueArrayInitializerContext ctx)
Visit a parse tree produced byJavaLanguageParser.elementValueArrayInitializer()
.DetailAstImpl
visitElementValuePair(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElementValuePairContext ctx)
Visit a parse tree produced byJavaLanguageParser.elementValuePair()
.DetailAstImpl
visitElementValuePairs(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElementValuePairsContext ctx)
Visit a parse tree produced byJavaLanguageParser.elementValuePairs()
.DetailAstImpl
visitElseStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ElseStatContext ctx)
Visit a parse tree produced byJavaLanguageParser.elseStat()
.DetailAstImpl
visitEmptyClass(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EmptyClassContext ctx)
Visit a parse tree produced by theemptyClass
labeled alternative inJavaLanguageParser.classBodyDeclaration()
.DetailAstImpl
visitEmptyStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EmptyStatContext ctx)
Visit a parse tree produced by theemptyStat
labeled alternative inJavaLanguageParser.statement()
.DetailAstImpl
visitEnhancedFor(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnhancedForContext ctx)
Visit a parse tree produced by theenhancedFor
labeled alternative inJavaLanguageParser.forControl()
.DetailAstImpl
visitEnhancedForControl(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnhancedForControlContext ctx)
Visit a parse tree produced byJavaLanguageParser.enhancedForControl()
.DetailAstImpl
visitEnhancedForControlWithRecordPattern(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnhancedForControlWithRecordPatternContext ctx)
Visit a parse tree produced byJavaLanguageParser.enhancedForControlWithRecordPattern()
.DetailAstImpl
visitEnumBody(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumBodyContext ctx)
Visit a parse tree produced byJavaLanguageParser.enumBody()
.DetailAstImpl
visitEnumBodyDeclarations(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumBodyDeclarationsContext ctx)
Visit a parse tree produced byJavaLanguageParser.enumBodyDeclarations()
.DetailAstImpl
visitEnumConstant(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumConstantContext ctx)
Visit a parse tree produced byJavaLanguageParser.enumConstant()
.DetailAstImpl
visitEnumConstants(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.EnumConstantsContext ctx)
Visit a parse tree produced byJavaLanguageParser.enumConstants()
.DetailAstImpl
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>)
.DetailAstImpl
visitExplicitCtorCall(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ExplicitCtorCallContext ctx)
Visit a parse tree produced by theexplicitCtorCall
labeled alternative inJavaLanguageParser.explicitConstructorInvocation()
.DetailAstImpl
visitExpression(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ExpressionContext ctx)
Visit a parse tree produced byJavaLanguageParser.expression()
.DetailAstImpl
visitExpressionList(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ExpressionListContext ctx)
Visit a parse tree produced byJavaLanguageParser.expressionList()
.DetailAstImpl
visitExpStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ExpStatContext ctx)
Visit a parse tree produced by theexpStat
labeled alternative inJavaLanguageParser.statement()
.DetailAstImpl
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>)
.DetailAstImpl
visitFinallyBlock(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FinallyBlockContext ctx)
Visit a parse tree produced byJavaLanguageParser.finallyBlock()
.DetailAstImpl
visitFloatLiteral(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FloatLiteralContext ctx)
Visit a parse tree produced byJavaLanguageParser.floatLiteral()
.DetailAstImpl
visitForFor(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ForForContext ctx)
Visit a parse tree produced by theforFor
labeled alternative inJavaLanguageParser.forControl()
.DetailAstImpl
visitForInit(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ForInitContext ctx)
Visit a parse tree produced byJavaLanguageParser.forInit()
.DetailAstImpl
visitFormalLambdaParam(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FormalLambdaParamContext ctx)
Visit a parse tree produced by theformalLambdaParam
labeled alternative inJavaLanguageParser.lambdaParameters()
.DetailAstImpl
visitFormalParameter(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FormalParameterContext ctx)
Visit a parse tree produced byJavaLanguageParser.formalParameter()
.DetailAstImpl
visitFormalParameterList(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FormalParameterListContext ctx)
Visit a parse tree produced byJavaLanguageParser.formalParameterList()
.DetailAstImpl
visitFormalParameters(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.FormalParametersContext ctx)
Visit a parse tree produced byJavaLanguageParser.formalParameters()
.DetailAstImpl
visitForStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ForStatContext ctx)
Visit a parse tree produced by theforStat
labeled alternative inJavaLanguageParser.statement()
.DetailAstImpl
visitGuardedPattern(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.GuardedPatternContext ctx)
Visit a parse tree produced byJavaLanguageParser.guardedPattern()
.DetailAstImpl
visitId(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IdContext ctx)
Visit a parse tree produced byJavaLanguageParser.id()
.DetailAstImpl
visitIfStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IfStatContext ctx)
Visit a parse tree produced by theifStat
labeled alternative inJavaLanguageParser.statement()
.DetailAstImpl
visitImplementsClause(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ImplementsClauseContext ctx)
Visit a parse tree produced byJavaLanguageParser.implementsClause()
.DetailAstImpl
visitImportDec(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ImportDecContext ctx)
Visit a parse tree produced by theimportDec
labeled alternative inJavaLanguageParser.importDeclaration()
.DetailAstImpl
visitIndexOp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IndexOpContext ctx)
Visit a parse tree produced by theindexOp
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitInitExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InitExpContext ctx)
Visit a parse tree produced by theinitExp
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitInnerCreator(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InnerCreatorContext ctx)
Visit a parse tree produced byJavaLanguageParser.innerCreator()
.DetailAstImpl
visitInnerPattern(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InnerPatternContext ctx)
Visit a parse tree produced byJavaLanguageParser.innerPattern()
.DetailAstImpl
visitInstanceOfExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InstanceOfExpContext ctx)
Visit a parse tree produced by theinstanceOfExp
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitIntegerLiteral(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.IntegerLiteralContext ctx)
Visit a parse tree produced byJavaLanguageParser.integerLiteral()
.DetailAstImpl
visitInterfaceBody(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceBodyContext ctx)
Visit a parse tree produced byJavaLanguageParser.interfaceBody()
.DetailAstImpl
visitInterfaceBodyDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceBodyDeclarationContext ctx)
Visit a parse tree produced byJavaLanguageParser.interfaceBodyDeclaration()
.DetailAstImpl
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>)
.DetailAstImpl
visitInterfaceExtends(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InterfaceExtendsContext ctx)
Visit a parse tree produced byJavaLanguageParser.interfaceExtends()
.DetailAstImpl
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>)
.DetailAstImpl
visitInvOp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.InvOpContext ctx)
Visit a parse tree produced by theinvOp
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitLabelStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LabelStatContext ctx)
Visit a parse tree produced by thelabelStat
labeled alternative inJavaLanguageParser.statement()
.DetailAstImpl
visitLambdaExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LambdaExpContext ctx)
Visit a parse tree produced by thelambdaExp
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitLastFormalParameter(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LastFormalParameterContext ctx)
Visit a parse tree produced byJavaLanguageParser.lastFormalParameter()
.DetailAstImpl
visitLastRecordComponent(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LastRecordComponentContext ctx)
Visit a parse tree produced byJavaLanguageParser.lastRecordComponent()
.DetailAstImpl
visitLiteral(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LiteralContext ctx)
Visit a parse tree produced byJavaLanguageParser.literal()
.DetailAstImpl
visitLocalVar(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.LocalVarContext ctx)
Visit a parse tree produced by thelocalVar
labeled alternative inJavaLanguageParser.blockStatement()
.DetailAstImpl
visitMethodBody(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MethodBodyContext ctx)
Visit a parse tree produced byJavaLanguageParser.methodBody()
.DetailAstImpl
visitMethodCall(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MethodCallContext ctx)
Visit a parse tree produced by themethodCall
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
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>)
.DetailAstImpl
visitMethodRef(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MethodRefContext ctx)
Visit a parse tree produced by themethodRef
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitModifier(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext ctx)
Visit a parse tree produced byJavaLanguageParser.modifier()
.DetailAstImpl
visitMultiLambdaParam(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MultiLambdaParamContext ctx)
Visit a parse tree produced by themultiLambdaParam
labeled alternative inJavaLanguageParser.lambdaParameters()
.DetailAstImpl
visitMultiLambdaParams(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.MultiLambdaParamsContext ctx)
Visit a parse tree produced byJavaLanguageParser.multiLambdaParams()
.DetailAstImpl
visitNewExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.NewExpContext ctx)
Visit a parse tree produced by thenewExp
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitNonWildcardDiamond(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.NonWildcardDiamondContext ctx)
Visit a parse tree produced by thenonWildcardDiamond
labeled alternative inJavaLanguageParser.nonWildcardTypeArgumentsOrDiamond()
.DetailAstImpl
visitNonWildcardTypeArguments(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.NonWildcardTypeArgumentsContext ctx)
Visit a parse tree produced byJavaLanguageParser.nonWildcardTypeArguments()
.DetailAstImpl
visitPackageDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PackageDeclarationContext ctx)
Visit a parse tree produced byJavaLanguageParser.packageDeclaration()
.DetailAstImpl
visitParenPattern(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ParenPatternContext ctx)
Visit a parse tree produced by theparenPattern
labeled alternative inJavaLanguageParser.primaryPattern()
.DetailAstImpl
visitParenPrimary(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ParenPrimaryContext ctx)
Visit a parse tree produced by theparenPrimary
labeled alternative inJavaLanguageParser.primary()
.DetailAstImpl
visitParExpression(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ParExpressionContext ctx)
Visit a parse tree produced byJavaLanguageParser.parExpression()
.DetailAstImpl
visitPattern(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PatternContext ctx)
Visit a parse tree produced byJavaLanguageParser.pattern()
.DetailAstImpl
visitPermittedSubclassesAndInterfaces(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PermittedSubclassesAndInterfacesContext ctx)
Visit a parse tree produced byJavaLanguageParser.permittedSubclassesAndInterfaces()
.DetailAstImpl
visitPostfix(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PostfixContext ctx)
Visit a parse tree produced by thepostfix
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitPrefix(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrefixContext ctx)
Visit a parse tree produced by theprefix
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitPrimaryCtorCall(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrimaryCtorCallContext ctx)
Visit a parse tree produced by theprimaryCtorCall
labeled alternative inJavaLanguageParser.explicitConstructorInvocation()
.DetailAstImpl
visitPrimaryExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrimaryExpContext ctx)
Visit a parse tree produced by theprimaryExp
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitPrimitivePrimary(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrimitivePrimaryContext ctx)
Visit a parse tree produced by theprimitivePrimary
labeled alternative inJavaLanguageParser.primary()
.DetailAstImpl
visitPrimitiveType(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.PrimitiveTypeContext ctx)
Visit a parse tree produced byJavaLanguageParser.primitiveType()
.DetailAstImpl
visitQualifiedName(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.QualifiedNameContext ctx)
Visit a parse tree produced byJavaLanguageParser.qualifiedName()
.DetailAstImpl
visitQualifiedNameList(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.QualifiedNameListContext ctx)
Visit a parse tree produced byJavaLanguageParser.qualifiedNameList()
.DetailAstImpl
visitRecordBody(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordBodyContext ctx)
Visit a parse tree produced byJavaLanguageParser.recordBody()
.DetailAstImpl
visitRecordComponent(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordComponentContext ctx)
Visit a parse tree produced byJavaLanguageParser.recordComponent()
.DetailAstImpl
visitRecordComponentPatternList(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordComponentPatternListContext ctx)
Visit a parse tree produced byJavaLanguageParser.recordComponentPatternList()
.DetailAstImpl
visitRecordComponents(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordComponentsContext ctx)
Visit a parse tree produced byJavaLanguageParser.recordComponents()
.DetailAstImpl
visitRecordComponentsList(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordComponentsListContext ctx)
Visit a parse tree produced byJavaLanguageParser.recordComponentsList()
.DetailAstImpl
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>)
.DetailAstImpl
visitRecordPattern(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordPatternContext ctx)
Visit a parse tree produced byJavaLanguageParser.recordPattern()
.DetailAstImpl
visitRecordPatternDef(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RecordPatternDefContext ctx)
Visit a parse tree produced by therecordPatternDef
labeled alternative inJavaLanguageParser.primaryPattern()
.DetailAstImpl
visitRefOp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.RefOpContext ctx)
Visit a parse tree produced by therefOp
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitResourceDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ResourceDeclarationContext ctx)
Visit a parse tree produced byJavaLanguageParser.resourceDeclaration()
.DetailAstImpl
visitResources(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ResourcesContext ctx)
Visit a parse tree produced byJavaLanguageParser.resources()
.DetailAstImpl
visitResourceSpecification(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ResourceSpecificationContext ctx)
Visit a parse tree produced byJavaLanguageParser.resourceSpecification()
.DetailAstImpl
visitReturnStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ReturnStatContext ctx)
Visit a parse tree produced by thereturnStat
labeled alternative inJavaLanguageParser.statement()
.DetailAstImpl
visitSimpleMethodCall(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SimpleMethodCallContext ctx)
Visit a parse tree produced by thesimpleMethodCall
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitSimpleTypeArgument(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SimpleTypeArgumentContext ctx)
Visit a parse tree produced by thesimpleTypeArgument
labeled alternative inJavaLanguageParser.typeArgument()
.DetailAstImpl
visitSingleLambdaParam(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SingleLambdaParamContext ctx)
Visit a parse tree produced by thesingleLambdaParam
labeled alternative inJavaLanguageParser.lambdaParameters()
.DetailAstImpl
visitSingleSemiImport(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SingleSemiImportContext ctx)
Visit a parse tree produced by thesingleSemiImport
labeled alternative inJavaLanguageParser.importDeclaration()
.DetailAstImpl
visitSuperExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SuperExpContext ctx)
Visit a parse tree produced by thesuperExp
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitSuperSuffixDot(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SuperSuffixDotContext ctx)
Visit a parse tree produced by thesuperSuffixDot
labeled alternative inJavaLanguageParser.superSuffix()
.DetailAstImpl
visitSwitchBlocks(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchBlocksContext ctx)
Visit a parse tree produced by theswitchBlocks
labeled alternative inJavaLanguageParser.switchBlock()
.DetailAstImpl
visitSwitchBlockStatementGroup(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchBlockStatementGroupContext ctx)
Visit a parse tree produced byJavaLanguageParser.switchBlockStatementGroup()
.DetailAstImpl
visitSwitchExpressionOrStatement(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchExpressionOrStatementContext ctx)
Visit a parse tree produced byJavaLanguageParser.switchExpressionOrStatement()
.DetailAstImpl
visitSwitchLabeledBlock(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchLabeledBlockContext ctx)
Visit a parse tree produced byJavaLanguageParser.switchLabeledBlock()
.DetailAstImpl
visitSwitchLabeledExpression(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchLabeledExpressionContext ctx)
Visit a parse tree produced byJavaLanguageParser.switchLabeledExpression()
.DetailAstImpl
visitSwitchLabeledThrow(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchLabeledThrowContext ctx)
Visit a parse tree produced byJavaLanguageParser.switchLabeledThrow()
.DetailAstImpl
visitSwitchRules(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SwitchRulesContext ctx)
Visit a parse tree produced by theswitchRules
labeled alternative inJavaLanguageParser.switchBlock()
.DetailAstImpl
visitSyncStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.SyncStatContext ctx)
Visit a parse tree produced by thesyncStat
labeled alternative inJavaLanguageParser.statement()
.DetailAstImpl
visitTernaryOp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TernaryOpContext ctx)
Visit a parse tree produced by theternaryOp
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitTextBlockLiteral(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TextBlockLiteralContext ctx)
Visit a parse tree produced byJavaLanguageParser.textBlockLiteral()
.DetailAstImpl
visitThisExp(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ThisExpContext ctx)
Visit a parse tree produced by thethisExp
labeled alternative inJavaLanguageParser.expr()
.DetailAstImpl
visitThrowsList(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ThrowsListContext ctx)
Visit a parse tree produced byJavaLanguageParser.throwsList()
.DetailAstImpl
visitThrowStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ThrowStatContext ctx)
Visit a parse tree produced by thethrowStat
labeled alternative inJavaLanguageParser.statement()
.DetailAstImpl
visitTokenPrimary(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TokenPrimaryContext ctx)
Visit a parse tree produced by thetokenPrimary
labeled alternative inJavaLanguageParser.primary()
.DetailAstImpl
visitTryStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TryStatContext ctx)
Visit a parse tree produced by thetryStat
labeled alternative inJavaLanguageParser.statement()
.DetailAstImpl
visitTryWithResourceStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TryWithResourceStatContext ctx)
Visit a parse tree produced by thetryWithResourceStat
labeled alternative inJavaLanguageParser.statement()
.DetailAstImpl
visitTypeArgs(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeArgsContext ctx)
Visit a parse tree produced by thetypeArgs
labeled alternative inJavaLanguageParser.typeArgumentsOrDiamond()
.DetailAstImpl
visitTypeArguments(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeArgumentsContext ctx)
Visit a parse tree produced byJavaLanguageParser.typeArguments()
.DetailAstImpl
visitTypeArgumentsTypeList(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeArgumentsTypeListContext ctx)
Visit a parse tree produced byJavaLanguageParser.typeArgumentsTypeList()
.DetailAstImpl
visitTypeBound(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeBoundContext ctx)
Visit a parse tree produced byJavaLanguageParser.typeBound()
.DetailAstImpl
visitTypeBoundType(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeBoundTypeContext ctx)
Visit a parse tree produced byJavaLanguageParser.typeBoundType()
.DetailAstImpl
visitTypeCastParameters(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeCastParametersContext ctx)
Visit a parse tree produced byJavaLanguageParser.typeCastParameters()
.DetailAstImpl
visitTypeDeclaration(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeDeclarationContext ctx)
Visit a parse tree produced byJavaLanguageParser.typeDeclaration()
.DetailAstImpl
visitTypeList(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeListContext ctx)
Visit a parse tree produced byJavaLanguageParser.typeList()
.DetailAstImpl
visitTypeParameter(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeParameterContext ctx)
Visit a parse tree produced byJavaLanguageParser.typeParameter()
.DetailAstImpl
visitTypeParameters(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeParametersContext ctx)
Visit a parse tree produced byJavaLanguageParser.typeParameters()
.DetailAstImpl
visitTypePatternDef(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypePatternDefContext ctx)
Visit a parse tree produced by thetypePatternDef
labeled alternative inJavaLanguageParser.typePattern()
.DetailAstImpl
visitTypeType(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext ctx)
Visit a parse tree produced byJavaLanguageParser.typeType(boolean)
.DetailAstImpl
visitTypeUpperBounds(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeUpperBoundsContext ctx)
Visit a parse tree produced byJavaLanguageParser.typeUpperBounds()
.DetailAstImpl
visitUnnamedPatternDef(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.UnnamedPatternDefContext ctx)
Visit a parse tree produced by theunnamedPatternDef
labeled alternative inJavaLanguageParser.typePattern()
.DetailAstImpl
visitVariableAccess(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableAccessContext ctx)
Visit a parse tree produced byJavaLanguageParser.variableAccess()
.DetailAstImpl
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)
.DetailAstImpl
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)
.DetailAstImpl
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)
.DetailAstImpl
visitVariableModifier(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableModifierContext ctx)
Visit a parse tree produced byJavaLanguageParser.variableModifier()
.DetailAstImpl
visitWhileStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.WhileStatContext ctx)
Visit a parse tree produced by thewhileStat
labeled alternative inJavaLanguageParser.statement()
.DetailAstImpl
visitWildCardTypeArgument(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.WildCardTypeArgumentContext ctx)
Visit a parse tree produced by thewildCardTypeArgument
labeled alternative inJavaLanguageParser.typeArgument()
.DetailAstImpl
visitYieldStat(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.YieldStatContext ctx)
Visit a parse tree produced by theyieldStat
labeled 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, visitVariableInitializer
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Field Detail
-
LEFT_SHIFT
private static final String LEFT_SHIFT
String representation of the left shift operator.- See Also:
- Constant Field Values
-
UNSIGNED_RIGHT_SHIFT
private static final String UNSIGNED_RIGHT_SHIFT
String representation of the unsigned right shift operator.- See Also:
- Constant Field Values
-
RIGHT_SHIFT
private static final String RIGHT_SHIFT
String representation of the right shift operator.- See Also:
- Constant Field Values
-
EXPRESSIONS_WITH_NO_EXPR_ROOT
private static final int[] EXPRESSIONS_WITH_NO_EXPR_ROOT
The tokens here are technically expressions, but should not return an EXPR token as their root.
-
tokens
private final org.antlr.v4.runtime.BufferedTokenStream tokens
Token stream to check for hidden tokens.
-
-
Constructor Detail
-
JavaAstVisitor
public JavaAstVisitor(org.antlr.v4.runtime.CommonTokenStream tokenStream)
Constructs a JavaAstVisitor with given token stream.- Parameters:
tokenStream
- the token stream to check for hidden tokens
-
-
Method Detail
-
visitCompilationUnit
public DetailAstImpl visitCompilationUnit(com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.CompilationUnitContext ctx)
Description copied from class:com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.compilationUnit()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCompilationUnit
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCompilationUnit
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitPackageDeclaration
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPackageDeclaration
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theimportDec
labeled alternative inJavaLanguageParser.importDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitImportDec
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitImportDec
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesingleSemiImport
labeled alternative inJavaLanguageParser.importDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSingleSemiImport
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSingleSemiImport
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitTypeDeclaration
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeDeclaration
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitModifier
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitModifier
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitVariableModifier
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitVariableModifier
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitClassDeclaration
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassDeclaration
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitRecordDeclaration
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordDeclaration
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitRecordComponentsList
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordComponentsList
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitRecordComponents
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordComponents
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitRecordComponent
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordComponent
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitLastRecordComponent
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLastRecordComponent
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitRecordBody
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordBody
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitCompactConstructorDeclaration
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCompactConstructorDeclaration
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitClassExtends
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassExtends
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitImplementsClause
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitImplementsClause
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitTypeParameters
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeParameters
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitTypeParameter
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeParameter
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitTypeUpperBounds
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeUpperBounds
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitTypeBound
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeBound
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitTypeBoundType
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeBoundType
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitEnumDeclaration
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnumDeclaration
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitEnumBody
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnumBody
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitEnumConstants
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnumConstants
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitEnumConstant
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnumConstant
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitEnumBodyDeclarations
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnumBodyDeclarations
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitInterfaceDeclaration
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInterfaceDeclaration
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitInterfaceExtends
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInterfaceExtends
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitClassBody
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassBody
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitInterfaceBody
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInterfaceBody
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theemptyClass
labeled alternative inJavaLanguageParser.classBodyDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEmptyClass
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEmptyClass
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theclassBlock
labeled alternative inJavaLanguageParser.classBodyDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClassBlock
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassBlock
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitMethodDeclaration
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMethodDeclaration
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitMethodBody
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMethodBody
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitThrowsList
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitThrowsList
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitConstructorDeclaration
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitConstructorDeclaration
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitFieldDeclaration
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFieldDeclaration
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitInterfaceBodyDeclaration
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInterfaceBodyDeclaration
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitInterfaceMethodDeclaration
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInterfaceMethodDeclaration
in 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.JavaLanguageParserBaseVisitor
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)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitVariableDeclarators
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitVariableDeclarators
in 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.JavaLanguageParserBaseVisitor
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)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitVariableDeclarator
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitVariableDeclarator
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitVariableDeclaratorId
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitVariableDeclaratorId
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitArrayInitializer
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitArrayInitializer
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitClassOrInterfaceType
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassOrInterfaceType
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesimpleTypeArgument
labeled alternative inJavaLanguageParser.typeArgument()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSimpleTypeArgument
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSimpleTypeArgument
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thewildCardTypeArgument
labeled alternative inJavaLanguageParser.typeArgument()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitWildCardTypeArgument
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitWildCardTypeArgument
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitQualifiedNameList
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitQualifiedNameList
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitFormalParameters
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFormalParameters
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitFormalParameterList
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFormalParameterList
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitFormalParameter
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFormalParameter
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitLastFormalParameter
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLastFormalParameter
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitQualifiedName
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitQualifiedName
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitLiteral
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLiteral
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitIntegerLiteral
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitIntegerLiteral
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitFloatLiteral
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFloatLiteral
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitTextBlockLiteral
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTextBlockLiteral
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitAnnotations
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotations
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitAnnotation
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotation
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitElementValuePairs
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitElementValuePairs
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitElementValuePair
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitElementValuePair
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitElementValue
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitElementValue
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitElementValueArrayInitializer
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitElementValueArrayInitializer
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitAnnotationTypeDeclaration
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationTypeDeclaration
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitAnnotationTypeBody
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationTypeBody
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitAnnotationTypeElementDeclaration
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationTypeElementDeclaration
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theannotationField
labeled 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:
visitAnnotationField
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationField
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theannotationType
labeled 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:
visitAnnotationType
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationType
in 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.JavaLanguageParserBaseVisitor
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)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAnnotationMethodRest
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationMethodRest
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitDefaultValue
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitDefaultValue
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitConstructorBlock
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitConstructorBlock
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theexplicitCtorCall
labeled alternative inJavaLanguageParser.explicitConstructorInvocation()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExplicitCtorCall
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitExplicitCtorCall
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theprimaryCtorCall
labeled alternative inJavaLanguageParser.explicitConstructorInvocation()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrimaryCtorCall
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPrimaryCtorCall
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitBlock
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBlock
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thelocalVar
labeled alternative inJavaLanguageParser.blockStatement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLocalVar
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLocalVar
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theblockStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBlockStat
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBlockStat
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theassertExp
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAssertExp
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAssertExp
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theifStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIfStat
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitIfStat
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theforStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitForStat
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitForStat
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thewhileStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitWhileStat
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitWhileStat
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thedoStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDoStat
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitDoStat
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thetryStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTryStat
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTryStat
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thetryWithResourceStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTryWithResourceStat
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTryWithResourceStat
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theyieldStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitYieldStat
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitYieldStat
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesyncStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSyncStat
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSyncStat
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thereturnStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitReturnStat
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitReturnStat
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thethrowStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitThrowStat
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitThrowStat
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thebreakStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBreakStat
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBreakStat
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thecontinueStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitContinueStat
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitContinueStat
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theemptyStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEmptyStat
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEmptyStat
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theexpStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExpStat
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitExpStat
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thelabelStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLabelStat
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLabelStat
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitSwitchExpressionOrStatement
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchExpressionOrStatement
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theswitchRules
labeled alternative inJavaLanguageParser.switchBlock()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSwitchRules
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchRules
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theswitchBlocks
labeled alternative inJavaLanguageParser.switchBlock()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSwitchBlocks
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchBlocks
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitSwitchLabeledExpression
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchLabeledExpression
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitSwitchLabeledBlock
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchLabeledBlock
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitSwitchLabeledThrow
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchLabeledThrow
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitElseStat
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitElseStat
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitCatchClause
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCatchClause
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitCatchParameter
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCatchParameter
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitCatchType
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCatchType
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitFinallyBlock
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFinallyBlock
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitResourceSpecification
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitResourceSpecification
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitResources
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitResources
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitResourceDeclaration
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitResourceDeclaration
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitVariableAccess
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitVariableAccess
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitSwitchBlockStatementGroup
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchBlockStatementGroup
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thecaseLabel
labeled alternative inJavaLanguageParser.switchLabel()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCaseLabel
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCaseLabel
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thedefaultLabel
labeled alternative inJavaLanguageParser.switchLabel()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDefaultLabel
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitDefaultLabel
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitCaseConstants
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCaseConstants
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitCaseConstant
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCaseConstant
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theenhancedFor
labeled alternative inJavaLanguageParser.forControl()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEnhancedFor
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnhancedFor
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theforFor
labeled alternative inJavaLanguageParser.forControl()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitForFor
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitForFor
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitForInit
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitForInit
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitEnhancedForControl
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnhancedForControl
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitEnhancedForControlWithRecordPattern
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnhancedForControlWithRecordPattern
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitParExpression
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitParExpression
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitExpressionList
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitExpressionList
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitExpression
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitExpression
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by therefOp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitRefOp
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRefOp
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesuperExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSuperExp
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSuperExp
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theinstanceOfExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInstanceOfExp
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInstanceOfExp
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thebitShift
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBitShift
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBitShift
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thenewExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNewExp
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitNewExp
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theprefix
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrefix
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPrefix
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thecastExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCastExp
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCastExp
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theindexOp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIndexOp
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitIndexOp
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theinvOp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInvOp
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInvOp
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theinitExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInitExp
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInitExp
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesimpleMethodCall
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSimpleMethodCall
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSimpleMethodCall
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thelambdaExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLambdaExp
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLambdaExp
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thethisExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitThisExp
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitThisExp
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theprimaryExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrimaryExp
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPrimaryExp
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thepostfix
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPostfix
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPostfix
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by themethodRef
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethodRef
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMethodRef
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theternaryOp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTernaryOp
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTernaryOp
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thebinOp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBinOp
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBinOp
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by themethodCall
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethodCall
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMethodCall
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitTypeCastParameters
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeCastParameters
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesingleLambdaParam
labeled alternative inJavaLanguageParser.lambdaParameters()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSingleLambdaParam
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSingleLambdaParam
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theformalLambdaParam
labeled alternative inJavaLanguageParser.lambdaParameters()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFormalLambdaParam
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFormalLambdaParam
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by themultiLambdaParam
labeled alternative inJavaLanguageParser.lambdaParameters()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMultiLambdaParam
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMultiLambdaParam
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitMultiLambdaParams
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMultiLambdaParams
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theparenPrimary
labeled alternative inJavaLanguageParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitParenPrimary
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitParenPrimary
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thetokenPrimary
labeled alternative inJavaLanguageParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTokenPrimary
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTokenPrimary
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theclassRefPrimary
labeled alternative inJavaLanguageParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClassRefPrimary
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassRefPrimary
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theprimitivePrimary
labeled alternative inJavaLanguageParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrimitivePrimary
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPrimitivePrimary
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitCreator
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCreator
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thecreatedNameObject
labeled alternative inJavaLanguageParser.createdName()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCreatedNameObject
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCreatedNameObject
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thecreatedNamePrimitive
labeled alternative inJavaLanguageParser.createdName()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCreatedNamePrimitive
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCreatedNamePrimitive
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitInnerCreator
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInnerCreator
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitArrayCreatorRest
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitArrayCreatorRest
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitBracketsWithExp
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBracketsWithExp
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitClassCreatorRest
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassCreatorRest
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thediamond
labeled alternative inJavaLanguageParser.typeArgumentsOrDiamond()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDiamond
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitDiamond
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thetypeArgs
labeled alternative inJavaLanguageParser.typeArgumentsOrDiamond()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypeArgs
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeArgs
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thenonWildcardDiamond
labeled alternative inJavaLanguageParser.nonWildcardTypeArgumentsOrDiamond()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNonWildcardDiamond
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitNonWildcardDiamond
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitNonWildcardTypeArguments
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitNonWildcardTypeArguments
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitTypeArgumentsTypeList
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeArgumentsTypeList
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitTypeList
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeList
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitTypeType
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeType
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitArrayDeclarator
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitArrayDeclarator
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitPrimitiveType
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPrimitiveType
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitTypeArguments
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeArguments
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesuperSuffixDot
labeled alternative inJavaLanguageParser.superSuffix()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSuperSuffixDot
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSuperSuffixDot
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitArguments
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitArguments
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitPattern
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPattern
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitInnerPattern
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInnerPattern
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitGuardedPattern
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitGuardedPattern
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theparenPattern
labeled alternative inJavaLanguageParser.primaryPattern()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitParenPattern
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitParenPattern
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by therecordPatternDef
labeled alternative inJavaLanguageParser.primaryPattern()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitRecordPatternDef
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordPatternDef
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by thetypePatternDef
labeled alternative inJavaLanguageParser.typePattern()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypePatternDef
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypePatternDef
in 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.JavaLanguageParserBaseVisitor
Visit a parse tree produced by theunnamedPatternDef
labeled alternative inJavaLanguageParser.typePattern()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitUnnamedPatternDef
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitUnnamedPatternDef
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitRecordPattern
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordPattern
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitRecordComponentPatternList
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordComponentPatternList
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitPermittedSubclassesAndInterfaces
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPermittedSubclassesAndInterfaces
in 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.JavaLanguageParserBaseVisitor
Visit 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:
visitId
in interfacecom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitId
in classcom.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
flattenedTree
private DetailAstImpl flattenedTree(org.antlr.v4.runtime.ParserRuleContext ctx)
Builds the AST for a particular node, then returns a "flattened" tree of siblings. This method should be used in rule contexts such 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
private static DetailAstImpl createImaginary(int tokenType)
Create a DetailAstImpl from a given token and token type. This method should be used for imaginary nodes only, i.e. 'OBJBLOCK -> OBJBLOCK', where the text on the RHS matches the text on the LHS.- Parameters:
tokenType
- the token type of this DetailAstImpl- Returns:
- new DetailAstImpl of given type
-
create
private DetailAstImpl create(int tokenType, org.antlr.v4.runtime.Token startToken)
Create a DetailAstImpl from a given token and token type. This method should be used for literal nodes only, i.e. 'PACKAGE_DEF -> package'.- Parameters:
tokenType
- the token type of this DetailAstImplstartToken
- the first token that appears in this DetailAstImpl.- Returns:
- new DetailAstImpl of given type
-
create
private DetailAstImpl create(org.antlr.v4.runtime.Token token)
Create a DetailAstImpl from a given token. This method should be used for terminal nodes, i.e.LCURLY
, when we are building an AST for a specific token, regardless of position.- Parameters:
token
- the token to build the DetailAstImpl from- Returns:
- new DetailAstImpl of given type
-
create
private DetailAstImpl create(org.antlr.v4.runtime.tree.TerminalNode node)
Create a DetailAstImpl from a given TerminalNode. This method should be used for terminal nodes, i.e.@
.- Parameters:
node
- the TerminalNode to build the DetailAstImpl from- Returns:
- new DetailAstImpl of given type
-
createTypeDeclaration
private DetailAstImpl createTypeDeclaration(org.antlr.v4.runtime.ParserRuleContext ctx, int type, List<? extends org.antlr.v4.runtime.tree.ParseTree> modifierList)
Creates a type declaration DetailAstImpl from a given rule context.- Parameters:
ctx
- ParserRuleContext we are 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
private static void addLastSibling(DetailAstImpl self, DetailAstImpl sibling)
Add new sibling to the end of existing siblings.- Parameters:
self
- DetailAstImpl to add last sibling tosibling
- DetailAstImpl sibling to add
-
visit
public DetailAstImpl visit(org.antlr.v4.runtime.tree.ParseTree tree)
- Specified by:
visit
in interfaceorg.antlr.v4.runtime.tree.ParseTreeVisitor<DetailAstImpl>
- Overrides:
visit
in classorg.antlr.v4.runtime.tree.AbstractParseTreeVisitor<DetailAstImpl>
-
buildExpressionNode
private DetailAstImpl buildExpressionNode(org.antlr.v4.runtime.tree.ParseTree exprNode)
Builds an expression node. This is used to build the root of an expression with an imaginaryEXPR
node.- Parameters:
exprNode
- expression to build node for- Returns:
- expression DetailAstImpl node
-
-