Class BugCheckerInfo
java.lang.Object
com.google.errorprone.BugCheckerInfo
- All Implemented Interfaces:
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:
-
Method Summary
Modifier and TypeMethodDescriptionallNames()static StringcanonicalName(String className, BugPattern pattern) Class<? extends BugChecker> static BugCheckerInfocreate(Class<? extends BugChecker> checker) Set<Class<? extends Annotation>> booleanbooleancom.google.common.collect.ImmutableSet<String> getTags()inthashCode()linkUrl()message()severity(Map<String, BugPattern.SeverityLevel> severities) booleantoString()withCustomDefaultSeverity(BugPattern.SeverityLevel defaultSeverity)
-
Method Details
-
create
-
withCustomDefaultSeverity
- Returns:
- a BugCheckerInfo with the same information as this class, except that its default severity is the passed in parameter. If this checker's current defaultSeverity is the same as the argument, return this.
-
canonicalName
-
canonicalName
-
allNames
-
message
-
defaultSeverity
-
severity
-
linkUrl
-
supportsSuppressWarnings
public boolean supportsSuppressWarnings() -
customSuppressionAnnotations
-
disableable
public boolean disableable() -
getTags
-
checkerClass
-
hashCode
-
equals
-
toString
-