Package edu.umd.cs.findbugs
Interface BugAnnotation
- All Superinterfaces:
Cloneable,Comparable<BugAnnotation>,Serializable,XMLWriteable,XMLWriteableWithMessages
- All Known Implementing Classes:
BugAnnotationWithSourceLines,ClassAnnotation,FieldAnnotation,IntAnnotation,LocalVariableAnnotation,MethodAnnotation,PackageMemberAnnotation,SourceLineAnnotation,StringAnnotation,TypeAnnotation
public interface BugAnnotation
extends Comparable<BugAnnotation>, XMLWriteableWithMessages, Serializable, Cloneable
An object providing context information about a particular BugInstance.
- Author:
- David Hovemeyer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML tag for a formatted text message describing the annotation. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(BugAnnotationVisitor visitor) Accept a BugAnnotationVisitor.clone()format(String key, ClassAnnotation primaryClass) Format the annotation as a String.Get a description of this bug annotation.booleanIs this annotation used to compute instance hashes or match bug instances across versionsvoidsetDescription(String description) Set a description of this bug annotation.toString(ClassAnnotation primaryClass) Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface edu.umd.cs.findbugs.xml.XMLWriteable
writeXMLMethods inherited from interface edu.umd.cs.findbugs.XMLWriteableWithMessages
writeXML
-
Field Details
-
MESSAGE_TAG
XML tag for a formatted text message describing the annotation.- See Also:
-
-
Method Details
-
clone
Object clone() -
accept
Accept a BugAnnotationVisitor.- Parameters:
visitor- the visitor to accept
-
format
Format the annotation as a String. The given key specifies additional information about how the annotation should be formatted. If the key is empty, then the "default" format will be used.- Parameters:
key- how the annotation should be formattedprimaryClass- The primary class for the bug; some bug annotation format msgs are simplified in relation to that class.
-
getDescription
String getDescription()Get a description of this bug annotation. The description is a key for the FindBugsAnnotationDescriptions resource bundle. -
setDescription
Set a description of this bug annotation. The description is a key for the FindBugsAnnotationDescriptions resource bundle. -
isSignificant
boolean isSignificant()Is this annotation used to compute instance hashes or match bug instances across versions- Returns:
- true if significant
-
toString
-