|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--rj.tools.jcsc.ant.OverviewStatistics
OveriewStatistics is used to keep track about
all information of all classes which are parsed.
| Constructor Summary | |
OverviewStatistics()
|
|
| Method Summary | |
void |
addResult(BatchResult result)
Add the result from a parsed file in batch mode |
double |
calculateAvgViolationsPerClass()
Calculate the average number of violations per class |
double |
calculateAvgViolationsPerNcss()
Calculate the average number of violations per NCSS |
int |
getClassCount()
Get the number of classes which have been parsed |
java.util.List |
getClassNamesOfPackage(java.lang.String pack)
Get a list of all classes from a package |
int |
getHighestSeverityLevel()
Get the highes found severity level of all violations |
int |
getMethodCount()
Get the number of parsed methods |
int |
getNCSSCount()
Get the number of NCCS |
int |
getPackageCount()
Get the number of packages which have been parsed |
java.util.HashMap |
getPackageMap()
Get a Map of all packages |
java.util.List |
getPackageNames()
Get a list of names from all packages |
Rule |
getRule(java.lang.String ruleName)
Get the Rule instance having the name |
java.util.HashMap |
getRulesMap()
Get a Map of the applied Rules |
int |
getUnitTestClassCount()
Get the number of unit test classes found |
int |
getUnitTestCount()
Get the number of unit tests found |
java.util.List |
getViolatedCategories()
Get a list of all violated categories |
java.util.List |
getViolatedRules()
Get a list of all violated rules |
java.util.List |
getViolatedSeverities()
Get a list of all violated severity levels |
java.util.List |
getViolationByRuleName(java.lang.String rule)
Get a list of all violations against a specific rule |
int |
getViolationCount()
Get the number of found violations |
java.util.List |
getViolationsByCategory(java.lang.String category)
Get a list of violations against a specific category |
java.util.List |
getViolationsBySeverity(int severity)
Get a list of all violations having a certain severity |
java.util.List |
getWorstCount(int count)
Get a list of worst elements of spefic length from all classes which have been parsed. |
java.util.List |
getWorstCountFromPackage(java.lang.String pack,
int count)
Get a list of worst elements of spefic length from a specific package which has been parsed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OverviewStatistics()
| Method Detail |
public void addResult(BatchResult result)
result - of batch runpublic Rule getRule(java.lang.String ruleName)
ruleName - public java.util.List getViolatedRules()
public java.util.List getViolatedCategories()
public java.util.List getViolatedSeverities()
public java.util.List getViolationsBySeverity(int severity)
severity - public java.util.List getViolationByRuleName(java.lang.String rule)
rule - public java.util.List getViolationsByCategory(java.lang.String category)
category - public java.util.HashMap getRulesMap()
public java.util.HashMap getPackageMap()
public java.util.List getPackageNames()
public java.util.List getClassNamesOfPackage(java.lang.String pack)
pack - public java.util.List getWorstCount(int count)
count -
public java.util.List getWorstCountFromPackage(java.lang.String pack,
int count)
pack - count - public int getPackageCount()
public int getClassCount()
public int getMethodCount()
public int getViolationCount()
public int getNCSSCount()
public int getUnitTestClassCount()
public int getUnitTestCount()
public double calculateAvgViolationsPerNcss()
public double calculateAvgViolationsPerClass()
public int getHighestSeverityLevel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||