Package org.sonar.java.checks
Class AbstractDeprecatedChecker
- java.lang.Object
-
- org.sonar.java.ast.visitors.SubscriptionVisitor
-
- org.sonar.plugins.java.api.IssuableSubscriptionVisitor
-
- org.sonar.java.checks.AbstractDeprecatedChecker
-
- All Implemented Interfaces:
JavaCheck,JavaFileScanner
- Direct Known Subclasses:
DeprecatedTagPresenceCheck,MissingDeprecatedCheck
public class AbstractDeprecatedChecker extends IssuableSubscriptionVisitor
-
-
Field Summary
-
Fields inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
context
-
-
Constructor Summary
Constructors Constructor Description AbstractDeprecatedChecker()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnnotationTreedeprecatedAnnotation(Tree tree)protected static TreegetReportTree(Tree tree)static booleanhasDeprecatedAnnotation(Tree tree)static booleanhasJavadocDeprecatedTag(String comment)static booleanhasJavadocDeprecatedTag(Tree tree)static booleanisDeprecated(AnnotationTree tree)List<Tree.Kind>nodesToVisit()-
Methods inherited from class org.sonar.plugins.java.api.IssuableSubscriptionVisitor
addIssue, addIssueOnFile, reportIssue, reportIssue, reportIssue, scanTree
-
Methods inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
hasSemantic, leaveFile, leaveNode, scanFile, setContext, visitNode, visitToken, visitTrivia
-
-
-
-
Method Detail
-
nodesToVisit
public List<Tree.Kind> nodesToVisit()
- Specified by:
nodesToVisitin classSubscriptionVisitor
-
hasJavadocDeprecatedTag
public static boolean hasJavadocDeprecatedTag(Tree tree)
-
hasDeprecatedAnnotation
public static boolean hasDeprecatedAnnotation(Tree tree)
-
deprecatedAnnotation
@CheckForNull public static AnnotationTree deprecatedAnnotation(Tree tree)
-
isDeprecated
public static boolean isDeprecated(AnnotationTree tree)
-
-