edu.umd.cs.findbugs

Class ClassAnnotation

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(String className)
Constructor.
Method Summary
voidaccept(BugAnnotationVisitor visitor)
intcompareTo(BugAnnotation o)
booleancontains(ClassAnnotation other)
static ClassAnnotationfromClassDescriptor(ClassDescriptor classDescriptor)
Factory method to create a ClassAnnotation from a ClassDescriptor.
ClassAnnotationgetTopLevelClass()
voidwriteXML(XMLOutput xmlOutput)
voidwriteXML(XMLOutput xmlOutput, boolean addMessages)

Constructor Detail

ClassAnnotation

public ClassAnnotation(String className)
Constructor.

Parameters: className the name of the class

Method Detail

accept

public void accept(BugAnnotationVisitor visitor)

compareTo

public int compareTo(BugAnnotation o)

contains

public boolean contains(ClassAnnotation other)

fromClassDescriptor

public static ClassAnnotation fromClassDescriptor(ClassDescriptor classDescriptor)
Factory method to create a ClassAnnotation from a ClassDescriptor.

Parameters: classDescriptor the ClassDescriptor

Returns: the ClassAnnotation

getTopLevelClass

public ClassAnnotation getTopLevelClass()

writeXML

public void writeXML(XMLOutput xmlOutput)

writeXML

public void writeXML(XMLOutput xmlOutput, boolean addMessages)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.