|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectrj.tools.jcsc.formatter.AbstractResultsFormatter
AbstractResultsFormatter - Shows the results on the console in a compiler
typcial way
| Field Summary | |
protected java.lang.String |
mAuthors
mAuthors the authors of that class; if several authors
then names are separated by ',' |
protected BatchSummary |
mBatchSummary
all data from the batchrun |
protected java.lang.String |
mClass
mClass the name of the class |
protected int |
mLineCount
mLineCount the number of Lines |
protected java.util.List |
mMethodMetrics
mMethodMetrics the collection of all metrics |
protected int |
mMethodsCount
mNCSSCount the number of methods (non commenting source statements) |
protected int |
mNCSSCount
mNCSSCount the number of NCSS (non commenting source statements) |
protected java.io.OutputStream |
mOutputStream
mOutputStream is the stream to write the formated output |
protected java.lang.String |
mPackage
mPackage the package the class belongs to |
protected int |
mUnitTestClassCount
mUnitTestClassCount the number of Unit test classes |
protected int |
mUnitTestsCount
mUnitTestsCount the number of Unit tests |
protected java.util.List |
mViolations
mViolations the collection of all violations |
protected int |
mViolationsCount
mViolationsCount the number of vioalations |
protected ViolationsSorter |
mViolationsSorter
Encapsulation of sorting algorithmus for violations |
| Constructor Summary | |
AbstractResultsFormatter()
|
|
| Method Summary | |
void |
formatBatch()
Format the batch run results. |
protected boolean |
isBatchMode()
in batch mode |
void |
setAuthors(java.util.List authors)
setAuthors |
void |
setBatchMode(BatchSummary batchSummary)
Set that the JCSC was in batch mode and pass in the associated data |
void |
setClassName(java.lang.String name)
setClassName |
void |
setLineCount(int count)
setLineCount |
void |
setMethodMetrics(java.util.List metrics)
setMethodMetrics |
void |
setMethodsCount(int count)
setMethodsCount |
void |
setNCSSCount(int count)
setNCSSCount |
void |
setOutputStream(java.io.OutputStream os)
setOutputStream |
void |
setPackage(java.lang.String name)
setPackage |
void |
setUnitTestClassCount(int count)
setUnitTestClassCount |
void |
setUnitTestsCount(int count)
setUnitTestsCount |
void |
setViolations(java.util.List violations)
setViolations |
void |
setViolationsCount(int count)
setViolationsCount |
void |
setViolationSorter(ViolationsSorter sorter)
Set the algorithm for how the violations shall be sorted |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface rj.tools.jcsc.ResultsFormatter |
format |
| Field Detail |
protected java.io.OutputStream mOutputStream
mOutputStream is the stream to write the formated output
protected java.lang.String mAuthors
mAuthors the authors of that class; if several authors
then names are separated by ','
protected java.util.List mViolations
mViolations the collection of all violations
protected java.util.List mMethodMetrics
mMethodMetrics the collection of all metrics
protected java.lang.String mPackage
mPackage the package the class belongs to
protected java.lang.String mClass
mClass the name of the class
protected int mViolationsCount
mViolationsCount the number of vioalations
protected int mUnitTestClassCount
mUnitTestClassCount the number of Unit test classes
protected int mUnitTestsCount
mUnitTestsCount the number of Unit tests
protected int mNCSSCount
mNCSSCount the number of NCSS (non commenting source statements)
protected int mLineCount
mLineCount the number of Lines
protected int mMethodsCount
mNCSSCount the number of methods (non commenting source statements)
protected BatchSummary mBatchSummary
protected ViolationsSorter mViolationsSorter
| Constructor Detail |
public AbstractResultsFormatter()
| Method Detail |
public void setOutputStream(java.io.OutputStream os)
setOutputStream
setOutputStream in interface ResultsFormatteros - an OutputStream valueResultsFormatterpublic void setAuthors(java.util.List authors)
setAuthors
setAuthors in interface ResultsFormatterauthors - a Collection valueResultsFormatterpublic void setViolations(java.util.List violations)
setViolations
setViolations in interface ResultsFormatterviolations - a Collection valueResultsFormatterpublic void setMethodMetrics(java.util.List metrics)
setMethodMetrics
setMethodMetrics in interface ResultsFormattermetrics - a Collection valueResultsFormatterpublic void setPackage(java.lang.String name)
setPackage
setPackage in interface ResultsFormattername - a String valueResultsFormatterpublic void setClassName(java.lang.String name)
setClassName
setClassName in interface ResultsFormattername - a String valueResultsFormatterpublic void setViolationsCount(int count)
setViolationsCount
setViolationsCount in interface ResultsFormattercount - an int valueResultsFormatterpublic void setUnitTestClassCount(int count)
setUnitTestClassCount
setUnitTestClassCount in interface ResultsFormattercount - an int valueResultsFormatterpublic void setUnitTestsCount(int count)
setUnitTestsCount
setUnitTestsCount in interface ResultsFormattercount - an int valueResultsFormatterpublic void setNCSSCount(int count)
setNCSSCount
setNCSSCount in interface ResultsFormattercount - an int valueResultsFormatterpublic void setLineCount(int count)
setLineCount
setLineCount in interface ResultsFormattercount - an int valueResultsFormatterpublic void setMethodsCount(int count)
setMethodsCount
setMethodsCount in interface ResultsFormattercount - an int valueResultsFormatterpublic void setViolationSorter(ViolationsSorter sorter)
setViolationSorter in interface ResultsFormattersorter - public void setBatchMode(BatchSummary batchSummary)
setBatchMode in interface ResultsFormatterbatchSummary - protected boolean isBatchMode()
public void formatBatch()
formatBatch in interface ResultsFormatter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||