Package org.sonar.plugins.java.api.tree
Interface TreeVisitor
- All Known Implementing Classes:
BaseTreeVisitor
,CognitiveComplexityVisitor
,ComplexityVisitor
,JavaFilesCache
,SonarSymbolTableVisitor
,StatementVisitor
,VariableReadExtractor
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
visitAnnotation
(AnnotationTree annotationTree) void
void
void
visitArrayType
(ArrayTypeTree tree) void
void
void
void
visitBlock
(BlockTree tree) void
void
visitCaseGroup
(CaseGroupTree tree) void
visitCaseLabel
(CaseLabelTree tree) void
visitCatch
(CatchTree tree) void
visitClass
(ClassTree tree) void
void
void
void
Deprecated.Preview Featurevoid
void
void
void
void
void
void
void
Deprecated.Preview Featurevoid
void
void
visitImport
(ImportTree tree) void
void
void
visitLambdaExpression
(LambdaExpressionTree lambdaExpressionTree) void
visitLiteral
(LiteralTree tree) void
void
visitMethod
(MethodTree tree) void
void
visitMethodReference
(MethodReferenceTree methodReferenceTree) void
visitModifier
(ModifiersTree modifiersTree) void
visitModule
(ModuleDeclarationTree module) void
visitNewArray
(NewArrayTree tree) void
visitNewClass
(NewClassTree tree) void
Deprecated.Preview Featurevoid
void
visitOther
(Tree tree) void
void
void
void
void
void
void
void
void
void
void
void
void
void
visitTypeArguments
(TypeArguments trees) void
visitTypeCast
(TypeCastTree tree) void
visitTypeParameter
(TypeParameterTree typeParameter) void
void
Deprecated.Preview Featurevoid
void
visitUnionType
(UnionTypeTree tree) void
void
visitVariable
(VariableTree tree) void
visitVarType
(VarTypeTree tree) void
void
visitWildcard
(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
-