|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.findbugs.PackageMemberAnnotation
edu.umd.cs.findbugs.ClassAnnotation
public class ClassAnnotation
A BugAnnotation object specifying a Java class involved in the bug.
BugAnnotation,
BugInstance,
Serialized Form| Field Summary |
|---|
| Fields inherited from class edu.umd.cs.findbugs.PackageMemberAnnotation |
|---|
className, description, sourceFileName, sourceLines |
| Fields inherited from interface edu.umd.cs.findbugs.BugAnnotation |
|---|
MESSAGE_TAG |
| Constructor Summary | |
|---|---|
ClassAnnotation(java.lang.String className)
Constructor. |
|
| Method Summary | |
|---|---|
void |
accept(BugAnnotationVisitor visitor)
Accept a BugAnnotationVisitor. |
int |
compareTo(BugAnnotation o)
|
boolean |
equals(java.lang.Object o)
|
protected java.lang.String |
formatPackageMember(java.lang.String key)
Do default and subclass-specific formatting. |
SourceLineAnnotation |
getSourceLines()
Get the SourceLineAnnotation describing the source lines where the method is defined. |
int |
hashCode()
|
void |
writeXML(XMLOutput xmlOutput)
Write this object to given XMLOutput. |
void |
writeXML(XMLOutput xmlOutput,
boolean addMessages)
|
| Methods inherited from class edu.umd.cs.findbugs.PackageMemberAnnotation |
|---|
clone, format, getClassName, getDescription, getPackageName, getSourceFileName, setDescription, setSourceLines, shorten, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClassAnnotation(java.lang.String className)
className - the name of the class| Method Detail |
|---|
public void accept(BugAnnotationVisitor visitor)
BugAnnotation
visitor - the visitor to acceptprotected java.lang.String formatPackageMember(java.lang.String key)
PackageMemberAnnotation
formatPackageMember in class PackageMemberAnnotationkey - the key specifying how to do the formattingpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(BugAnnotation o)
public SourceLineAnnotation getSourceLines()
PackageMemberAnnotation
getSourceLines in class PackageMemberAnnotation
public void writeXML(XMLOutput xmlOutput)
throws java.io.IOException
XMLWriteable
xmlOutput - the XMLOutput for the document
java.io.IOException
public void writeXML(XMLOutput xmlOutput,
boolean addMessages)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||