Package org.sonar.plugins.java.api.tree
Interface TreeVisitor
- All Known Implementing Classes:
BaseTreeVisitor,CognitiveComplexityVisitor,ComplexityVisitor,JavaFilesCache,MethodNestingLevelVisitor,NumberOfAccessedVariablesVisitor,SonarSymbolTableVisitor,StatementVisitor,VariableReadExtractor
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidvisitAnnotation(AnnotationTree annotationTree) voidvoidvoidvisitArrayType(ArrayTypeTree tree) voidvoidvoidvoidvisitBlock(BlockTree tree) voidvoidvisitCaseGroup(CaseGroupTree tree) voidvisitCaseLabel(CaseLabelTree tree) voidvisitCatch(CatchTree tree) voidvisitClass(ClassTree tree) voidvoidvoidvoidDeprecated.Preview FeaturevoidvoidvoidvoidvoidvoidvoidvoidDeprecated.Preview FeaturevoidvoidvoidvisitImport(ImportTree tree) voidvoidvoidvisitLambdaExpression(LambdaExpressionTree lambdaExpressionTree) voidvisitLiteral(LiteralTree tree) voidvoidvisitMethod(MethodTree tree) voidvoidvisitMethodReference(MethodReferenceTree methodReferenceTree) voidvisitModifier(ModifiersTree modifiersTree) voidvisitModule(ModuleDeclarationTree module) voidvisitNewArray(NewArrayTree tree) voidvisitNewClass(NewClassTree tree) voidDeprecated.Preview FeaturevoidvoidvisitOther(Tree tree) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvisitTypeArguments(TypeArguments trees) voidvisitTypeCast(TypeCastTree tree) voidvisitTypeParameter(TypeParameterTree typeParameter) voidvoidDeprecated.Preview FeaturevoidvoidvisitUnionType(UnionTypeTree tree) voidvoidvisitVariable(VariableTree tree) voidvisitVarType(VarTypeTree tree) voidvoidvisitWildcard(WildcardTree tree) void
-
Method Details
-
visitCompilationUnit
-
visitImport
-
visitClass
-
visitMethod
-
visitBlock
-
visitEmptyStatement
-
visitLabeledStatement
-
visitExpressionStatement
-
visitIfStatement
-
visitAssertStatement
-
visitSwitchStatement
-
visitSwitchExpression
-
visitCaseGroup
-
visitCaseLabel
-
visitWhileStatement
-
visitDoWhileStatement
-
visitForStatement
-
visitForEachStatement
-
visitBreakStatement
-
visitYieldStatement
-
visitContinueStatement
-
visitReturnStatement
-
visitThrowStatement
-
visitSynchronizedStatement
-
visitTryStatement
-
visitCatch
-
visitUnaryExpression
-
visitBinaryExpression
-
visitConditionalExpression
-
visitArrayAccessExpression
-
visitMemberSelectExpression
-
visitNewClass
-
visitNewArray
-
visitMethodInvocation
-
visitTypeCast
-
visitInstanceOf
-
visitPatternInstanceOf
-
visitParenthesized
-
visitAssignmentExpression
-
visitLiteral
-
visitIdentifier
-
visitVarType
-
visitVariable
-
visitEnumConstant
-
visitPrimitiveType
-
visitArrayType
-
visitParameterizedType
-
visitWildcard
-
visitUnionType
-
visitModifier
-
visitAnnotation
-
visitLambdaExpression
-
visitTypeParameter
-
visitTypeArguments
-
visitTypeParameters
-
visitOther
-
visitMethodReference
-
visitPackage
-
visitModule
-
visitRequiresDirectiveTree
-
visitExportsDirectiveTree
-
visitOpensDirective
-
visitUsesDirective
-
visitProvidesDirective
-
visitArrayDimension
-
visitTypePattern
Deprecated.Preview Feature- Since:
- Java 17
-
visitNullPattern
Deprecated.Preview Feature- Since:
- Java 17
-
visitDefaultPattern
Deprecated.Preview Feature- Since:
- Java 17
-
visitGuardedPattern
Deprecated.Preview Feature- Since:
- Java 17
-