org.acm.seguin.metrics
Class CommaDelimitedReport

java.lang.Object
  extended by org.acm.seguin.metrics.MetricsReport
      extended by org.acm.seguin.metrics.CommaDelimitedReport

public class CommaDelimitedReport
extends MetricsReport

Reports metrics in a comma delimited format

Author:
Chris Seguin

Constructor Summary
CommaDelimitedReport()
          Constructor for the CommaDelimitedReport object
 
Method Summary
 void finalReport(ProjectMetrics projectData)
          Make a final report on totals
protected  void reportAbstractClasses(ProjectMetrics projectData)
          Reports on the number of abstract classes
protected  void reportAverageClassMethods(ProjectMetrics projectData)
          Reports on the average number of class methods
protected  void reportAverageClassVariables(ProjectMetrics projectData)
          Reports on the average number of class variables
protected  void reportAverageInstanceVariables(ProjectMetrics projectData)
          Reports on the average number of instance variables
protected  void reportAverageOtherMethods(ProjectMetrics projectData)
          Reports on the average number of other methods
protected  void reportAverageParameters(ProjectMetrics projectData)
          Reports on the average number of parameters
protected  void reportAveragePublicMethods(ProjectMetrics projectData)
          Reports on the average number of public methods
protected  void reportAverageStatements(ProjectMetrics projectData)
          Reports on the average number of statements
protected  void reportBlockDepth(java.lang.String pack, java.lang.String type, java.lang.String name, int count)
          Reports on the block depth of code
protected  void reportClasses(ProjectMetrics projectData)
          Reports on the number of classes
protected  void reportClassMethods(java.lang.String pack, java.lang.String type, int count)
          Reports on the number of class methods
protected  void reportClassVariables(java.lang.String pack, java.lang.String type, int count)
          Reports on the number of class variables
protected  void reportInstanceVariables(java.lang.String pack, java.lang.String type, int count)
          Reports on the number of instance variables
protected  void reportInterfaces(ProjectMetrics projectData)
          Reports on the number of interfaces
protected  void reportLinesOfCode(java.lang.String pack, java.lang.String type, java.lang.String name, int count)
          Reports on the number of lines of code
protected  void reportOtherMethods(java.lang.String pack, java.lang.String type, int count)
          Reports on the number of other methods
protected  void reportParameters(java.lang.String pack, java.lang.String type, java.lang.String name, int count)
          Reports on the number of parameters
protected  void reportPublicMethods(java.lang.String pack, java.lang.String type, int count)
          Reports on the number of public methods
protected  void reportStatement(java.lang.String pack, java.lang.String type, java.lang.String name, int count)
          Reports on the number of statements
 
Methods inherited from class org.acm.seguin.metrics.MetricsReport
methodReport, typeReport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommaDelimitedReport

public CommaDelimitedReport()
Constructor for the CommaDelimitedReport object

Method Detail

finalReport

public void finalReport(ProjectMetrics projectData)
Make a final report on totals

Overrides:
finalReport in class MetricsReport
Parameters:
projectData - Description of Parameter

reportStatement

protected void reportStatement(java.lang.String pack,
                               java.lang.String type,
                               java.lang.String name,
                               int count)
Reports on the number of statements

Specified by:
reportStatement in class MetricsReport
Parameters:
pack - the name of the package
type - the name of the class or interface
name - the name of the method
count - the number of statements

reportParameters

protected void reportParameters(java.lang.String pack,
                                java.lang.String type,
                                java.lang.String name,
                                int count)
Reports on the number of parameters

Specified by:
reportParameters in class MetricsReport
Parameters:
pack - the name of the package
type - the name of the class or interface
name - the name of the method
count - the number of parameters

reportLinesOfCode

protected void reportLinesOfCode(java.lang.String pack,
                                 java.lang.String type,
                                 java.lang.String name,
                                 int count)
Reports on the number of lines of code

Specified by:
reportLinesOfCode in class MetricsReport
Parameters:
pack - the name of the package
type - the name of the class or interface
name - the name of the method
count - the number of lines of code

reportBlockDepth

protected void reportBlockDepth(java.lang.String pack,
                                java.lang.String type,
                                java.lang.String name,
                                int count)
Reports on the block depth of code

Specified by:
reportBlockDepth in class MetricsReport
Parameters:
pack - the name of the package
type - the name of the class or interface
name - the name of the method
count - the number of blocks deep

reportPublicMethods

protected void reportPublicMethods(java.lang.String pack,
                                   java.lang.String type,
                                   int count)
Reports on the number of public methods

Specified by:
reportPublicMethods in class MetricsReport
Parameters:
pack - the name of the package
type - the name of the class or interface
count - the number of public methods

reportOtherMethods

protected void reportOtherMethods(java.lang.String pack,
                                  java.lang.String type,
                                  int count)
Reports on the number of other methods

Specified by:
reportOtherMethods in class MetricsReport
Parameters:
pack - the name of the package
type - the name of the class or interface
count - the number of other methods

reportClassMethods

protected void reportClassMethods(java.lang.String pack,
                                  java.lang.String type,
                                  int count)
Reports on the number of class methods

Specified by:
reportClassMethods in class MetricsReport
Parameters:
pack - the name of the package
type - the name of the class or interface
count - the number of class methods

reportInstanceVariables

protected void reportInstanceVariables(java.lang.String pack,
                                       java.lang.String type,
                                       int count)
Reports on the number of instance variables

Specified by:
reportInstanceVariables in class MetricsReport
Parameters:
pack - the name of the package
type - the name of the class or interface
count - the number of instance variables

reportClassVariables

protected void reportClassVariables(java.lang.String pack,
                                    java.lang.String type,
                                    int count)
Reports on the number of class variables

Specified by:
reportClassVariables in class MetricsReport
Parameters:
pack - the name of the package
type - the name of the class or interface
count - the number of class variables

reportAbstractClasses

protected void reportAbstractClasses(ProjectMetrics projectData)
Reports on the number of abstract classes

Specified by:
reportAbstractClasses in class MetricsReport
Parameters:
projectData - Description of Parameter

reportInterfaces

protected void reportInterfaces(ProjectMetrics projectData)
Reports on the number of interfaces

Specified by:
reportInterfaces in class MetricsReport
Parameters:
projectData - Description of Parameter

reportClasses

protected void reportClasses(ProjectMetrics projectData)
Reports on the number of classes

Specified by:
reportClasses in class MetricsReport
Parameters:
projectData - Description of Parameter

reportAverageStatements

protected void reportAverageStatements(ProjectMetrics projectData)
Reports on the average number of statements

Specified by:
reportAverageStatements in class MetricsReport
Parameters:
projectData - Description of Parameter

reportAverageParameters

protected void reportAverageParameters(ProjectMetrics projectData)
Reports on the average number of parameters

Specified by:
reportAverageParameters in class MetricsReport
Parameters:
projectData - Description of Parameter

reportAveragePublicMethods

protected void reportAveragePublicMethods(ProjectMetrics projectData)
Reports on the average number of public methods

Specified by:
reportAveragePublicMethods in class MetricsReport
Parameters:
projectData - Description of Parameter

reportAverageOtherMethods

protected void reportAverageOtherMethods(ProjectMetrics projectData)
Reports on the average number of other methods

Specified by:
reportAverageOtherMethods in class MetricsReport
Parameters:
projectData - Description of Parameter

reportAverageClassMethods

protected void reportAverageClassMethods(ProjectMetrics projectData)
Reports on the average number of class methods

Specified by:
reportAverageClassMethods in class MetricsReport
Parameters:
projectData - Description of Parameter

reportAverageInstanceVariables

protected void reportAverageInstanceVariables(ProjectMetrics projectData)
Reports on the average number of instance variables

Specified by:
reportAverageInstanceVariables in class MetricsReport
Parameters:
projectData - Description of Parameter

reportAverageClassVariables

protected void reportAverageClassVariables(ProjectMetrics projectData)
Reports on the average number of class variables

Specified by:
reportAverageClassVariables in class MetricsReport
Parameters:
projectData - Description of Parameter