|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.umd.cs.findbugs.IntAnnotation
public class IntAnnotation
Bug annotation class for integer values.
BugAnnotation| Field Summary | |
|---|---|
private static java.lang.String |
DEFAULT_ROLE
|
private java.lang.String |
description
|
private static java.lang.String |
ELEMENT_NAME
|
private int |
value
|
| Constructor Summary | |
|---|---|
IntAnnotation(int value)
Constructor. |
|
| Method Summary | |
|---|---|
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)
Format the annotation as a String. |
java.lang.String |
getDescription()
Get a description of this bug annotation. |
int |
getValue()
Get the integer value. |
int |
hashCode()
|
void |
setDescription(java.lang.String description)
Set a description of this bug annotation. |
java.lang.String |
toString()
|
void |
writeXML(XMLOutput xmlOutput)
Write this object to given XMLOutput. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String DEFAULT_ROLE
private int value
private java.lang.String description
private static final java.lang.String ELEMENT_NAME
| Constructor Detail |
|---|
public IntAnnotation(int value)
value - the integer value| Method Detail |
|---|
public int getValue()
public void accept(BugAnnotationVisitor visitor)
BugAnnotation
accept in interface BugAnnotationvisitor - the visitor to acceptpublic java.lang.String format(java.lang.String key)
BugAnnotation
format in interface BugAnnotationkey - how the annotation should be formattedpublic void setDescription(java.lang.String description)
BugAnnotation
setDescription in interface BugAnnotationpublic java.lang.String getDescription()
BugAnnotation
getDescription 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.Object
public void writeXML(XMLOutput xmlOutput)
throws java.io.IOException
XMLWriteable
writeXML in interface XMLWriteablexmlOutput - the XMLOutput for the document
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||