edu.umd.cs.findbugs
public class ProjectStats extends Object implements XMLWriteable, Cloneable
Constructor Summary | |
---|---|
ProjectStats()
Constructor. |
Method Summary | |
---|---|
void | addBug(BugInstance bug)
Called when a bug is reported. |
void | addClass(String className, boolean isInterface, int size)
Report that a class has been analyzed.
|
void | addClass(String className, String sourceFile, boolean isInterface, int size)
Report that a class has been analyzed.
|
void | addStats(ProjectStats stats2) |
void | clearBugCounts()
Clear bug counts |
int | getBugsOfPriority(int priority) |
PackageStats.ClassStats | getClassStats(String className)
Report that a class has been analyzed.
|
int | getCodeSize() |
int | getNumClasses()
Get the number of classes analyzed. |
Collection<PackageStats> | getPackageStats() |
int | getTotalBugs() |
void | recomputeFromClassStats() |
void | reportSummary(OutputStream out)
Report statistics as an XML document to given output stream. |
void | setTimestamp(String timestamp)
Set the timestamp for this analysis run.
|
void | setTimestamp(long timestamp) |
void | transformSummaryToHTML(Writer htmlWriter)
Transform summary information to HTML.
|
void | writeXML(XMLOutput xmlOutput)
Output as XML. |
Deprecated: Use ProjectStats instead
Report that a class has been analyzed.Parameters: className the full name of the class isInterface true if the class is an interface size a normalized class size value; see detect/FindBugsSummaryStats.
Parameters: className the full name of the class sourceFile TODO isInterface true if the class is an interface size a normalized class size value; see detect/FindBugsSummaryStats.
Parameters: stats2
Parameters: className the full name of the class
Parameters: timestamp the time of the analysis run this ProjectStats represents, as previously reported by writeXML.
Parameters: htmlWriter the Writer to write the HTML output to