Class AbstractDeprecatedChecker

  • All Implemented Interfaces:
    org.sonar.plugins.java.api.JavaCheck, org.sonar.plugins.java.api.JavaFileScanner
    Direct Known Subclasses:
    DeprecatedTagPresenceCheck, MissingDeprecatedCheck

    public class AbstractDeprecatedChecker
    extends org.sonar.plugins.java.api.IssuableSubscriptionVisitor
    • Constructor Detail

      • AbstractDeprecatedChecker

        public AbstractDeprecatedChecker()
    • Method Detail

      • nodesToVisit

        public List<org.sonar.plugins.java.api.tree.Tree.Kind> nodesToVisit()
        Specified by:
        nodesToVisit in class org.sonar.java.ast.visitors.SubscriptionVisitor
      • hasJavadocDeprecatedTag

        public static boolean hasJavadocDeprecatedTag​(org.sonar.plugins.java.api.tree.Tree tree)
      • hasJavadocDeprecatedTag

        public static boolean hasJavadocDeprecatedTag​(@Nullable
                                                      String comment)
      • hasDeprecatedAnnotation

        public static boolean hasDeprecatedAnnotation​(org.sonar.plugins.java.api.tree.Tree tree)
      • deprecatedAnnotation

        @CheckForNull
        public static org.sonar.plugins.java.api.tree.AnnotationTree deprecatedAnnotation​(org.sonar.plugins.java.api.tree.Tree tree)
      • getReportTree

        protected static org.sonar.plugins.java.api.tree.Tree getReportTree​(org.sonar.plugins.java.api.tree.Tree tree)
      • isDeprecated

        public static boolean isDeprecated​(org.sonar.plugins.java.api.tree.AnnotationTree tree)