public class TypeAnnotation extends BugAnnotationWithSourceLines
ClassAnnotation, 
Serialized Form| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | CLOSEIT_ROLE | 
| static java.lang.String | DEFAULT_ROLE | 
| static java.lang.String | EXPECTED_ROLE | 
| static java.lang.String | FOUND_ROLE | 
| static java.lang.String | UNHASHABLE_ROLE | 
sourceFileName, sourceLinesMESSAGE_TAG| Constructor and Description | 
|---|
| TypeAnnotation(java.lang.String typeDescriptor)constructor. | 
| TypeAnnotation(java.lang.String typeDescriptor,
              java.lang.String roleDescription) | 
| TypeAnnotation(org.apache.bcel.generic.Type objectType) | 
| TypeAnnotation(org.apache.bcel.generic.Type objectType,
              java.lang.String roleDescription) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | accept(BugAnnotationVisitor visitor)Accept a BugAnnotationVisitor. | 
| int | compareTo(BugAnnotation o) | 
| boolean | equals(java.lang.Object o) | 
| java.lang.String | format(java.lang.String key,
      ClassAnnotation primaryClass)Format the annotation as a String. | 
| java.lang.String | getDescription()Get a description of this bug annotation. | 
| java.lang.String | getTypeDescriptor()Get the type descriptor. | 
| java.lang.String | getTypeParameters() | 
| int | hashCode() | 
| boolean | isSignificant()Is this annotation used to compute instance hashes or match bug instances
 across versions | 
| void | setDescription(java.lang.String roleDescription)Set a description of this bug annotation. | 
| void | setTypeParameters(java.lang.String typeParameters) | 
| java.lang.String | toString() | 
| void | writeXML(XMLOutput xmlOutput)Write this object to given XMLOutput. | 
| void | writeXML(XMLOutput xmlOutput,
        boolean addMessages,
        boolean isPrimary) | 
clone, getSourceFileName, getSourceLines, setSourceLines, toStringpublic static final java.lang.String DEFAULT_ROLE
public static final java.lang.String EXPECTED_ROLE
public static final java.lang.String FOUND_ROLE
public static final java.lang.String CLOSEIT_ROLE
public static final java.lang.String UNHASHABLE_ROLE
public TypeAnnotation(java.lang.String typeDescriptor)
 For information on type descriptors, 
 see http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.
 html#14152 
 or http://www.murrayc.com/learning/java/java_classfileformat.shtml#
 TypeDescriptors
typeDescriptor - a jvm type descriptor, such as "[I"public TypeAnnotation(org.apache.bcel.generic.Type objectType)
public TypeAnnotation(org.apache.bcel.generic.Type objectType,
              java.lang.String roleDescription)
public TypeAnnotation(java.lang.String typeDescriptor,
              java.lang.String roleDescription)
public java.lang.String getTypeDescriptor()
public void accept(BugAnnotationVisitor visitor)
BugAnnotationvisitor - the visitor to acceptpublic java.lang.String format(java.lang.String key,
                      ClassAnnotation primaryClass)
BugAnnotationkey - how the annotation should be formattedprimaryClass - The primary class for the bug; some bug annotation format msgs
            are simplified in relation to that class.public void setDescription(java.lang.String roleDescription)
BugAnnotationpublic java.lang.String getDescription()
BugAnnotationpublic void setTypeParameters(java.lang.String typeParameters)
public java.lang.String getTypeParameters()
public 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 java.lang.String toString()
toString in class java.lang.Objectpublic void writeXML(XMLOutput xmlOutput) throws java.io.IOException
XMLWriteablexmlOutput - the XMLOutput for the documentjava.io.IOExceptionpublic void writeXML(XMLOutput xmlOutput, boolean addMessages, boolean isPrimary) throws java.io.IOException
java.io.IOExceptionpublic boolean isSignificant()
BugAnnotationFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.