public class StringAnnotation extends java.lang.Object implements BugAnnotation
BugAnnotation, 
Serialized Form| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
DEFAULT_ROLE  | 
static java.lang.String | 
ERROR_MSG_ROLE  | 
static java.lang.String | 
FORMAT_SPECIFIER_ROLE  | 
static java.lang.String | 
FORMAT_STRING_ROLE  | 
static java.lang.String | 
PARAMETER_NAME_ROLE  | 
static java.lang.String | 
REGEX_ROLE  | 
static java.lang.String | 
REMAINING_OBLIGATIONS_ROLE  | 
static java.lang.String | 
STRING_CONSTANT_ROLE  | 
static java.lang.String | 
STRING_MESSAGE  | 
static java.lang.String | 
STRING_NONSTRING_CONSTANT_ROLE
Used for non-string constants (e.g., null) 
 | 
static java.lang.String | 
TYPE_QUALIFIER_ROLE  | 
MESSAGE_TAG| Constructor and Description | 
|---|
StringAnnotation(java.lang.String value)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
accept(BugAnnotationVisitor visitor)
Accept a BugAnnotationVisitor. 
 | 
java.lang.Object | 
clone()  | 
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. 
 | 
static StringAnnotation | 
fromRawString(java.lang.String value)  | 
static StringAnnotation | 
fromXMLEscapedString(java.lang.String value)  | 
java.lang.String | 
getDescription()
Get a description of this bug annotation. 
 | 
java.lang.String | 
getValue()
Get the String value. 
 | 
int | 
hashCode()  | 
boolean | 
isSignificant()
Is this annotation used to compute instance hashes or match bug instances
 across versions 
 | 
void | 
setDescription(java.lang.String description)
Set a description of this bug annotation. 
 | 
java.lang.String | 
toString()  | 
java.lang.String | 
toString(ClassAnnotation primaryClass)  | 
void | 
writeXML(XMLOutput xmlOutput)
Write this object to given XMLOutput. 
 | 
void | 
writeXML(XMLOutput xmlOutput,
        boolean addMessages,
        boolean isPrimary)  | 
public static final java.lang.String DEFAULT_ROLE
public static final java.lang.String STRING_CONSTANT_ROLE
public static final java.lang.String STRING_NONSTRING_CONSTANT_ROLE
public static final java.lang.String REGEX_ROLE
public static final java.lang.String ERROR_MSG_ROLE
public static final java.lang.String STRING_MESSAGE
public static final java.lang.String PARAMETER_NAME_ROLE
public static final java.lang.String TYPE_QUALIFIER_ROLE
public static final java.lang.String REMAINING_OBLIGATIONS_ROLE
public static final java.lang.String FORMAT_STRING_ROLE
public static final java.lang.String FORMAT_SPECIFIER_ROLE
public StringAnnotation(java.lang.String value)
value - the String valuepublic static StringAnnotation fromRawString(java.lang.String value)
public static StringAnnotation fromXMLEscapedString(java.lang.String value)
public java.lang.Object clone()
clone in interface BugAnnotationclone in class java.lang.Objectpublic java.lang.String getValue()
public void accept(BugAnnotationVisitor visitor)
BugAnnotationaccept in interface BugAnnotationvisitor - the visitor to acceptpublic java.lang.String format(java.lang.String key,
                      ClassAnnotation primaryClass)
BugAnnotationformat in interface 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 description)
BugAnnotationsetDescription in interface BugAnnotationpublic java.lang.String getDescription()
BugAnnotationgetDescription in interface BugAnnotationpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(BugAnnotation o)
compareTo in interface java.lang.Comparable<BugAnnotation>public java.lang.String toString()
toString in class java.lang.Objectpublic void writeXML(XMLOutput xmlOutput) throws java.io.IOException
XMLWriteablewriteXML in interface XMLWriteablexmlOutput - the XMLOutput for the documentjava.io.IOExceptionpublic void writeXML(XMLOutput xmlOutput, boolean addMessages, boolean isPrimary) throws java.io.IOException
writeXML in interface XMLWriteableWithMessagesjava.io.IOExceptionpublic boolean isSignificant()
BugAnnotationisSignificant in interface BugAnnotationpublic java.lang.String toString(ClassAnnotation primaryClass)
toString in interface BugAnnotationFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.