edu.umd.cs.findbugs
Class ClassAnnotation
java.lang.Object
edu.umd.cs.findbugs.PackageMemberAnnotation
edu.umd.cs.findbugs.ClassAnnotation
- All Implemented Interfaces:
- BugAnnotation, XMLWriteable, java.lang.Comparable<BugAnnotation>
public class ClassAnnotation
- extends PackageMemberAnnotation
A BugAnnotation object specifying a Java class involved in the bug.
- Author:
- David Hovemeyer
- See Also:
BugAnnotation
,
BugInstance
Constructor Summary |
ClassAnnotation(java.lang.String className)
Constructor. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DEFAULT_ROLE
private static final java.lang.String DEFAULT_ROLE
- See Also:
- Constant Field Values
ELEMENT_NAME
private static final java.lang.String ELEMENT_NAME
- See Also:
- Constant Field Values
ClassAnnotation
public ClassAnnotation(java.lang.String className)
- Constructor.
- Parameters:
className
- the name of the class
accept
public void accept(BugAnnotationVisitor visitor)
- Description copied from interface:
BugAnnotation
- Accept a BugAnnotationVisitor.
- Parameters:
visitor
- the visitor to accept
formatPackageMember
protected java.lang.String formatPackageMember(java.lang.String key)
- Description copied from class:
PackageMemberAnnotation
- Do default and subclass-specific formatting.
- Specified by:
formatPackageMember
in class PackageMemberAnnotation
- Parameters:
key
- the key specifying how to do the formatting
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
compareTo
public int compareTo(BugAnnotation o)
writeXML
public void writeXML(XMLOutput xmlOutput)
throws java.io.IOException
- Description copied from interface:
XMLWriteable
- Write this object to given XMLOutput.
- Parameters:
xmlOutput
- the XMLOutput for the document
- Throws:
java.io.IOException