public static class PackageStats.ClassStats extends java.lang.Object implements XMLWriteable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected int[] |
nBugs |
Constructor and Description |
---|
PackageStats.ClassStats(java.lang.String name,
java.lang.String sourceFile) |
Modifier and Type | Method and Description |
---|---|
void |
addError(BugInstance bug) |
void |
clearBugCounts() |
java.lang.Object |
clone() |
protected void |
ensureNonnullBugCounts() |
int |
getBugsAtPriority(int p) |
java.lang.String |
getName() |
java.lang.String |
getSourceFile() |
int |
getTotalBugs() |
void |
setInterface(boolean isInterface) |
void |
setSize(int size) |
int |
size() |
void |
writeBugPriorities(XMLOutput xmlOutput)
Add priority attributes to a started tag.
|
static void |
writeBugPriorities(XMLOutput xmlOutput,
int[] nBugs) |
void |
writeXML(XMLOutput xmlOutput)
Write this object to given XMLOutput.
|
public PackageStats.ClassStats(java.lang.String name, java.lang.String sourceFile)
public java.lang.Object clone()
clone
in class java.lang.Object
public void setInterface(boolean isInterface)
public void setSize(int size)
public int size()
public java.lang.String getName()
@CheckForNull public java.lang.String getSourceFile()
public void writeXML(XMLOutput xmlOutput) throws java.io.IOException
XMLWriteable
writeXML
in interface XMLWriteable
xmlOutput
- the XMLOutput for the documentjava.io.IOException
@OverridingMethodsMustInvokeSuper public void addError(BugInstance bug)
protected void ensureNonnullBugCounts()
public final int getTotalBugs()
public final int getBugsAtPriority(int p)
public void clearBugCounts()
public void writeBugPriorities(XMLOutput xmlOutput) throws java.io.IOException
xmlOutput
- an output stream for which startTag has been called but
stopTag has not.java.io.IOException
public static void writeBugPriorities(XMLOutput xmlOutput, @Nonnull int[] nBugs) throws java.io.IOException
java.io.IOException
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.