|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
ResultsFormatter - Formatter of the parsing results.
| Method Summary | |
void |
format()
format the results from one parsed file |
void |
formatBatch()
Format the batch run results. |
void |
setAuthors(java.util.List authors)
setAuthors - set the values of the @author tags found |
void |
setBatchMode(BatchSummary batchSummary)
Set if the JCSC run was in batch mode or single file and set the associated data. |
void |
setClassName(java.lang.String name)
setClass - the name of the class |
void |
setLineCount(int count)
setLineCount - the number of Lines |
void |
setMethodMetrics(java.util.List metrics)
setMethodMetrics - set all the method metrics |
void |
setMethodsCount(int count)
setMethodsCount - the number of methods count |
void |
setNCSSCount(int count)
setNCSSCount - the number of NCSS
non commenting source statements |
void |
setOutputStream(java.io.OutputStream os)
setOutputStream - set the outputstream to write to |
void |
setPackage(java.lang.String name)
setPackage - the name of the package the class belongs to |
void |
setUnitTestClassCount(int count)
setUnitTestClassCount - the count of unit test classes |
void |
setUnitTestsCount(int count)
setUnitTestsCount - the count of unit tests |
void |
setViolations(java.util.List violations)
setViolations - set all the violations which occured |
void |
setViolationsCount(int count)
setViolationsCount - the count of violations |
void |
setViolationSorter(ViolationsSorter sorter)
Set the algorithm for how the violations shall be sorted |
| Method Detail |
public void setOutputStream(java.io.OutputStream os)
setOutputStream - set the outputstream to write to
os - an OutputStream valuepublic void setViolations(java.util.List violations)
setViolations - set all the violations which occured
violations - a Collection of Violationpublic void setMethodMetrics(java.util.List metrics)
setMethodMetrics - set all the method metrics
metrics - a Collection of MethodMetricspublic void setPackage(java.lang.String name)
setPackage - the name of the package the class belongs to
name - a String valuepublic void setClassName(java.lang.String name)
setClass - the name of the class
name - a String valuepublic void setAuthors(java.util.List authors)
setAuthors - set the values of the @author tags found
authors - a Collection valuepublic void setViolationsCount(int count)
setViolationsCount - the count of violations
count - an int valuepublic void setUnitTestClassCount(int count)
setUnitTestClassCount - the count of unit test classes
count - an int valuepublic void setUnitTestsCount(int count)
setUnitTestsCount - the count of unit tests
count - an int valuepublic void setNCSSCount(int count)
setNCSSCount - the number of NCSS
non commenting source statements
count - an int valuepublic void setLineCount(int count)
setLineCount - the number of Lines
count - an int valuepublic void setMethodsCount(int count)
setMethodsCount - the number of methods count
count - an int valuepublic void setViolationSorter(ViolationsSorter sorter)
sorter - public void setBatchMode(BatchSummary batchSummary)
batchSummary - all data from batch runpublic void format()
public void formatBatch()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||