org.acm.seguin.metrics
Class MethodMetrics

java.lang.Object
  extended by org.acm.seguin.metrics.MethodMetrics

public class MethodMetrics
extends java.lang.Object

Stores the metrics for a particular method

Author:
Chris Seguin

Constructor Summary
MethodMetrics(java.lang.String initPackage, java.lang.String initType, java.lang.String initMethod)
          Constructor for the MethodMetrics object
 
Method Summary
 int getBlockDepth()
           
 int getLinesOfCode()
           
 java.lang.String getMethodName()
          Return the method name
 java.lang.String getPackageName()
          Return the package name
 int getParameterCount()
          Return the parameter count
 int getStatementCount()
          Return the statement count
 java.lang.String getTypeName()
          Return the type name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodMetrics

public MethodMetrics(java.lang.String initPackage,
                     java.lang.String initType,
                     java.lang.String initMethod)
Constructor for the MethodMetrics object

Parameters:
initPackage - The package
initType - The type
initMethod - The method
Method Detail

getPackageName

public java.lang.String getPackageName()
Return the package name

Returns:
the package name

getTypeName

public java.lang.String getTypeName()
Return the type name

Returns:
The type name

getMethodName

public java.lang.String getMethodName()
Return the method name

Returns:
The method name

getStatementCount

public int getStatementCount()
Return the statement count

Returns:
The statement count

getParameterCount

public int getParameterCount()
Return the parameter count

Returns:
The parameter count

getLinesOfCode

public int getLinesOfCode()

getBlockDepth

public int getBlockDepth()