|
FindBugs™ 1.3.4 | |||||||||
| 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)
Deprecated. Use addClass(String,String,boolean,int) instead |
void |
addClass(java.lang.String className,
java.lang.String sourceFile,
boolean isInterface,
int size)
Report that a class has been analyzed. |
void |
addStats(ProjectStats stats2)
|
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 |
recomputeFromClassStats()
|
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. |
java.lang.String |
toString()
|
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, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectStats()
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic 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()
@Deprecated
public void addClass(java.lang.String className,
boolean isInterface,
int size)
addClass(String,String,boolean,int) instead
className - the full name of the classisInterface - true if the class is an interfacesize - a normalized class size value;
see detect/FindBugsSummaryStats.
public void addClass(java.lang.String className,
@CheckForNull
java.lang.String sourceFile,
boolean isInterface,
int size)
className - the full name of the classsourceFile - TODOisInterface - 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 recomputeFromClassStats()
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()
public void addStats(ProjectStats stats2)
stats2 -
|
FindBugs™ 1.3.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||