public static class PackageStats.ClassStats extends Object implements XMLWriteable, Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
nBugs |
| Constructor and Description |
|---|
PackageStats.ClassStats(String name,
String sourceFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(BugInstance bug) |
void |
clearBugCounts() |
Object |
clone() |
protected void |
ensureNonnullBugCounts() |
int |
getBugsAtPriority(int p) |
String |
getName() |
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 void setInterface(boolean isInterface)
public void setSize(int size)
public int size()
public String getName()
@CheckForNull public String getSourceFile()
public void writeXML(XMLOutput xmlOutput) throws IOException
XMLWriteablewriteXML in interface XMLWriteablexmlOutput - the XMLOutput for the documentIOException@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 IOException
xmlOutput - an output stream for which startTag has been called but
stopTag has not.IOExceptionpublic static void writeBugPriorities(XMLOutput xmlOutput, @Nonnull int[] nBugs) throws IOException
IOExceptionCopyright © 2003–2015. All rights reserved.