public class IntAnnotation extends Object implements BugAnnotation
BugAnnotation,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static String |
INT_ACTUAL_ARGUMENTS |
static String |
INT_EXPECTED_ARGUMENTS |
static String |
INT_MAX_VALUE |
static String |
INT_MIN_VALUE |
static String |
INT_OBLIGATIONS_REMAINING |
static String |
INT_OCCURRENCES |
static String |
INT_SHIFT |
static String |
INT_SYNC_PERCENT |
static String |
INT_VALUE |
MESSAGE_TAG| Constructor and Description |
|---|
IntAnnotation(int value)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(BugAnnotationVisitor visitor)
Accept a BugAnnotationVisitor.
|
Object |
clone() |
int |
compareTo(BugAnnotation o) |
boolean |
equals(Object o) |
String |
format(String key,
ClassAnnotation primaryClass)
Format the annotation as a String.
|
String |
getDescription()
Get a description of this bug annotation.
|
static String |
getShortInteger(int value) |
static String |
getShortInteger(long value) |
int |
getValue()
Get the integer value.
|
int |
hashCode() |
boolean |
isSignificant()
Is this annotation used to compute instance hashes or match bug instances
across versions
|
void |
setDescription(String description)
Set a description of this bug annotation.
|
String |
toString() |
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 String INT_SYNC_PERCENT
public static final String INT_OCCURRENCES
public static final String INT_VALUE
public static final String INT_MIN_VALUE
public static final String INT_MAX_VALUE
public static final String INT_SHIFT
public static final String INT_EXPECTED_ARGUMENTS
public static final String INT_ACTUAL_ARGUMENTS
public static final String INT_OBLIGATIONS_REMAINING
public IntAnnotation(int value)
value - the integer valuepublic Object clone()
clone in interface BugAnnotationclone in class Objectpublic int getValue()
public void accept(BugAnnotationVisitor visitor)
BugAnnotationaccept in interface BugAnnotationvisitor - the visitor to acceptpublic String format(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 static String getShortInteger(int value)
public static String getShortInteger(long value)
public void setDescription(String description)
BugAnnotationsetDescription in interface BugAnnotationpublic String getDescription()
BugAnnotationgetDescription in interface BugAnnotationpublic int compareTo(BugAnnotation o)
compareTo in interface Comparable<BugAnnotation>public void writeXML(XMLOutput xmlOutput) throws IOException
XMLWriteablewriteXML in interface XMLWriteablexmlOutput - the XMLOutput for the documentIOExceptionpublic void writeXML(XMLOutput xmlOutput, boolean addMessages, boolean isPrimary) throws IOException
writeXML in interface XMLWriteableWithMessagesIOExceptionpublic boolean isSignificant()
BugAnnotationisSignificant in interface BugAnnotationpublic String toString(ClassAnnotation primaryClass)
toString in interface BugAnnotationCopyright © 2003–2015. All rights reserved.