|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.findbugs.ProjectStats
public class ProjectStats
Statistics resulting from analyzing a project.
| Constructor Summary | |
|---|---|
ProjectStats()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addBug(BugInstance bug)
Called when a bug is reported. |
void |
addClass(java.lang.String className,
boolean isInterface,
int size)
Report that a class has been analyzed. |
void |
clearBugCounts()
Clear bug counts |
java.lang.Object |
clone()
|
int |
getBugsOfPriority(int priority)
|
PackageStats.ClassStats |
getClassStats(java.lang.String className)
Report that a class has been analyzed. |
int |
getCodeSize()
|
int |
getNumClasses()
Get the number of classes analyzed. |
java.util.Collection<PackageStats> |
getPackageStats()
|
int |
getTotalBugs()
|
void |
reportSummary(java.io.OutputStream out)
Report statistics as an XML document to given output stream. |
void |
setTimestamp(long timestamp)
|
void |
setTimestamp(java.lang.String timestamp)
Set the timestamp for this analysis run. |
void |
transformSummaryToHTML(java.io.Writer htmlWriter)
Transform summary information to HTML. |
void |
writeXML(XMLOutput xmlOutput)
Output as XML. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectStats()
| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic int getCodeSize()
public int getTotalBugs()
public int getBugsOfPriority(int priority)
public void setTimestamp(java.lang.String timestamp)
throws java.text.ParseException
timestamp - the time of the analysis run this
ProjectStats represents, as previously
reported by writeXML.
java.text.ParseExceptionpublic void setTimestamp(long timestamp)
public int getNumClasses()
public void addClass(java.lang.String className,
boolean isInterface,
int size)
className - the full name of the classisInterface - true if the class is an interfacesize - a normalized class size value;
see detect/FindBugsSummaryStats.public PackageStats.ClassStats getClassStats(java.lang.String className)
className - the full name of the classpublic void addBug(BugInstance bug)
public void clearBugCounts()
public void writeXML(XMLOutput xmlOutput)
throws java.io.IOException
writeXML in interface XMLWriteablexmlOutput - the XMLOutput for the document
java.io.IOException
public void reportSummary(java.io.OutputStream out)
throws java.io.IOException
java.io.IOException
public void transformSummaryToHTML(java.io.Writer htmlWriter)
throws java.io.IOException,
javax.xml.transform.TransformerException
htmlWriter - the Writer to write the HTML output to
java.io.IOException
javax.xml.transform.TransformerExceptionpublic java.util.Collection<PackageStats> getPackageStats()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||