edu.umd.cs.findbugs

Class IntAnnotation

public class IntAnnotation extends Object implements BugAnnotation

Bug annotation class for integer values.

Author: David Hovemeyer

See Also: BugAnnotation

Field Summary
static StringINT_OCCURRENCES
static StringINT_SHIFT
static StringINT_SYNC_PERCENT
static StringINT_VALUE
Constructor Summary
IntAnnotation(int value)
Constructor.
Method Summary
voidaccept(BugAnnotationVisitor visitor)
intcompareTo(BugAnnotation o)
Stringformat(String key, ClassAnnotation primaryClass)
StringgetDescription()
intgetValue()
Get the integer value.
booleanisSignificant()
voidsetDescription(String description)
voidwriteXML(XMLOutput xmlOutput)
voidwriteXML(XMLOutput xmlOutput, boolean addMessages)

Field Detail

INT_OCCURRENCES

public static final String INT_OCCURRENCES

INT_SHIFT

public static final String INT_SHIFT

INT_SYNC_PERCENT

public static final String INT_SYNC_PERCENT

INT_VALUE

public static final String INT_VALUE

Constructor Detail

IntAnnotation

public IntAnnotation(int value)
Constructor.

Parameters: value the integer value

Method Detail

accept

public void accept(BugAnnotationVisitor visitor)

compareTo

public int compareTo(BugAnnotation o)

format

public String format(String key, ClassAnnotation primaryClass)

getDescription

public String getDescription()

getValue

public int getValue()
Get the integer value.

Returns: the integer value

isSignificant

public boolean isSignificant()

setDescription

public void setDescription(String description)

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.