edu.umd.cs.findbugs
public class PackageStats extends Object implements XMLWriteable
Nested Class Summary | |
---|---|
static class | PackageStats.ClassStats |
Field Summary | |
---|---|
static int | ALL_ERRORS |
static String | ELEMENT_NAME |
Constructor Summary | |
---|---|
PackageStats(String packageName) |
Method Summary | |
---|---|
void | addClass(String name, boolean isInterface, int size) |
void | addClass(String name, String sourceFile, boolean isInterface, int size) |
void | addError(BugInstance bug) |
void | clearBugCounts() |
int | getBugsAtPriority(int p) |
Collection<PackageStats.ClassStats> | getClassStats() |
PackageStats.ClassStats | getClassStatsOrNull(String name) |
String | getPackageName() |
int | getTotalBugs() |
void | recomputeFromClassStats() |
int | size() |
static void | writeBugPriorities(XMLOutput xmlOutput, int[] bugs)
Add priority attributes to a started tag.
|
void | writeXML(XMLOutput xmlOutput) |
Deprecated: Use PackageStats instead
Parameters: xmlOutput an output stream for which startTag has been called but stopTag has not. bugs an array for which the element at offset n is the number of bugs for priority n.