org.gmetrics.metric.linecount
Class ClassLineCountMetric

java.lang.Object
  extended by org.gmetrics.metric.AbstractMetric
      extended by org.gmetrics.metric.linecount.ClassLineCountMetric
All Implemented Interfaces:
groovy.lang.GroovyObject, Metric

public class ClassLineCountMetric
extends AbstractMetric
implements groovy.lang.GroovyObject

Metric for counting the lines of code for classes and interfaces.

Version:
$Revision: 101 $ - $Date: 2010-03-10 19:17:23 -0500 (Wed, 10 Mar 2010) $
Author:
Chris Mair

Constructor Summary
ClassLineCountMetric()
           
 
Method Summary
 ClassMetricResult calculateForClass(org.codehaus.groovy.ast.ClassNode classNode, SourceCode sourceCode)
           
protected  java.lang.Object createAggregateMetricResult(java.util.Collection childMetricResults)
           
 MetricLevel getBaseLevel()
           
 groovy.lang.MetaClass getMetaClass()
           
 java.lang.String getName()
           
 java.lang.Object getProperty(java.lang.String name)
           
 java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class org.gmetrics.metric.AbstractMetric
applyToClass, applyToPackage, calculateForPackage, getEnabled, isEnabled, isNotAnInterface, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLineCountMetric

public ClassLineCountMetric()
Method Detail

getName

public final java.lang.String getName()
Specified by:
getName in interface Metric

getBaseLevel

public final MetricLevel getBaseLevel()
Specified by:
getBaseLevel in interface Metric

calculateForClass

public ClassMetricResult calculateForClass(org.codehaus.groovy.ast.ClassNode classNode,
                                           SourceCode sourceCode)
Specified by:
calculateForClass in class AbstractMetric

createAggregateMetricResult

protected java.lang.Object createAggregateMetricResult(java.util.Collection childMetricResults)
Overrides:
createAggregateMetricResult in class AbstractMetric

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject
Overrides:
getMetaClass in class AbstractMetric

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject
Overrides:
setMetaClass in class AbstractMetric

invokeMethod

public java.lang.Object invokeMethod(java.lang.String name,
                                     java.lang.Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class AbstractMetric

getProperty

public java.lang.Object getProperty(java.lang.String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class AbstractMetric

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class AbstractMetric


Copyright © 2010. All Rights Reserved.