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 String
canonicalName
(String className, BugPattern pattern) Class
<? extends BugChecker> static BugCheckerInfo
create
(Class<? extends BugChecker> checker) Set
<Class<? extends Annotation>> boolean
boolean
com.google.common.collect.ImmutableSet
<String> getTags()
int
hashCode()
linkUrl()
message()
severity
(Map<String, BugPattern.SeverityLevel> severities) boolean
toString()
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
-