Class BugCheckerInfo

All Implemented Interfaces:

public class BugCheckerInfo
extends Object
implements Serializable
An accessor for information about a single bug checker, including the metadata in the check's @BugPattern annotation and the class that implements the check.
See Also:
Serialized Form
  • Method Details

    • create

      public static BugCheckerInfo create​(Class<? extends BugChecker> checker)
    • withCustomDefaultSeverity

      public BugCheckerInfo withCustomDefaultSeverity​(BugPattern.SeverityLevel defaultSeverity)
      a BugCheckerInfo with the same information as this class, except that its default severity is the passed in paramter. If this checker's current defaultSeverity is the same as the argument, return this.
    • canonicalName

      public String canonicalName()
    • allNames

      public Set<String> allNames()
    • message

      public String message()
    • defaultSeverity

      public BugPattern.SeverityLevel defaultSeverity()
    • severity

      public BugPattern.SeverityLevel severity​(Map<String,​BugPattern.SeverityLevel> severities)
    • linkUrl

      public String linkUrl()
    • supportsSuppressWarnings

      public boolean supportsSuppressWarnings()
    • customSuppressionAnnotations

      public Set<Class<? extends Annotation>> customSuppressionAnnotations()
    • disableable

      public boolean disableable()
    • getTags

      public<String> getTags()
    • checkerClass

      public Class<? extends BugChecker> checkerClass()
    • hashCode

      public int hashCode()
      hashCode in class Object
    • equals

      public boolean equals​(Object o)
      equals in class Object
    • toString

      public String toString()
      toString in class Object