rj.tools.jcsc.ant
Class PackageStatistics

java.lang.Object
  extended byrj.tools.jcsc.ant.PackageStatistics

public class PackageStatistics
extends java.lang.Object

PackageStatistics is used to keep track about all information of a package. You create a new instance providing the name of the package. Then after each class of this package has been parsed you increment the values.

Version:
__0.98.1__
Author:
Ralph Jocham

Field Summary
static int AVG_SSPFP
          Avg Source Statements per Function Point in Java
 
Constructor Summary
PackageStatistics(java.lang.String name)
          Creates a new PackageStatistics instance.
 
Method Summary
 int getClassCount()
          Get the class count
 double getFunctionPointsCount()
          Get the count of Function Points
 int getHighestSeverityLevel()
          Get the max serverity
 int getLineCount()
          Get the count of Line
 int getMethodCount()
          Get the count of methods
 int getNCSSCount()
          Get the count of NCSS
 java.lang.String getPackageName()
          Get the name of the package
 int getUnitTestClassCount()
          Get the count of unit test classes
 int getUnitTestCount()
          Get the count of unit tests
 int getViolationCount()
          Get the violations count
 void incrementClassCount(int count)
          Increment class count by count
 void incrementLineCount(int count)
          Increment the count of Line by count
 void incrementMethodCount(int count)
          Increment the count of methods by count
 void incrementNCSSCount(int count)
          Increment the count of NCSS by count
 void incrementUnitTestClassCount(int count)
          Increment the count of unit test classes by count
 void incrementUnitTestCount(int count)
          Increment the count of unit tests by count
 void incrementViolationCount(int count)
          Increment the count of violations by count
 void setHighestSeverityLevel(int severity)
          Set the max severity found so far
 java.lang.String toString()
          toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AVG_SSPFP

public static final int AVG_SSPFP
Avg Source Statements per Function Point in Java

See Also:
Constant Field Values
Constructor Detail

PackageStatistics

public PackageStatistics(java.lang.String name)
Creates a new PackageStatistics instance.

Parameters:
name - a String value
Method Detail

getPackageName

public java.lang.String getPackageName()
Get the name of the package

Returns:
String

incrementClassCount

public void incrementClassCount(int count)
Increment class count by count

Parameters:
count -

getClassCount

public int getClassCount()
Get the class count

Returns:
int

incrementMethodCount

public void incrementMethodCount(int count)
Increment the count of methods by count

Parameters:
count -

getMethodCount

public int getMethodCount()
Get the count of methods

Returns:
int

incrementViolationCount

public void incrementViolationCount(int count)
Increment the count of violations by count

Parameters:
count -

getViolationCount

public int getViolationCount()
Get the violations count

Returns:
int

incrementNCSSCount

public void incrementNCSSCount(int count)
Increment the count of NCSS by count

Parameters:
count -

getNCSSCount

public int getNCSSCount()
Get the count of NCSS

Returns:
int

getFunctionPointsCount

public double getFunctionPointsCount()
Get the count of Function Points

Returns:
int

incrementLineCount

public void incrementLineCount(int count)
Increment the count of Line by count

Parameters:
count -

getLineCount

public int getLineCount()
Get the count of Line

Returns:
int

incrementUnitTestClassCount

public void incrementUnitTestClassCount(int count)
Increment the count of unit test classes by count

Parameters:
count -

getUnitTestClassCount

public int getUnitTestClassCount()
Get the count of unit test classes

Returns:
int

incrementUnitTestCount

public void incrementUnitTestCount(int count)
Increment the count of unit tests by count

Parameters:
count -

getUnitTestCount

public int getUnitTestCount()
Get the count of unit tests

Returns:
int

setHighestSeverityLevel

public void setHighestSeverityLevel(int severity)
Set the max severity found so far

Parameters:
severity -

getHighestSeverityLevel

public int getHighestSeverityLevel()
Get the max serverity

Returns:
severity

toString

public java.lang.String toString()
toString

Returns:
a String value


(c) 1999-2005 by Ralph Jocham (rjocham72@netscape.net)
JCSC is released under the terms of the GNU General Public License