org.gmetrics.metric
Class AbstractMethodMetric
java.lang.Object
org.gmetrics.metric.AbstractMetric
org.gmetrics.metric.AbstractMethodMetric
- All Implemented Interfaces:
- groovy.lang.GroovyObject, Metric
- Direct Known Subclasses:
- AbcMetric, CyclomaticComplexityMetric, MethodLineCountMetric
public abstract class AbstractMethodMetric
- extends AbstractMetric
- implements groovy.lang.GroovyObject
Abstract superclass for method-based metrics.
- Version:
- $Revision: 101 $ - $Date: 2010-03-10 19:17:23 -0500 (Wed, 10 Mar 2010) $
- Author:
- Chris Mair
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.gmetrics.metric.Metric |
getName |
AbstractMethodMetric
public AbstractMethodMetric()
getBaseLevel
public final MetricLevel getBaseLevel()
- Specified by:
getBaseLevel in interface Metric
calculate
public abstract java.lang.Object calculate(org.codehaus.groovy.ast.MethodNode methodNode,
SourceCode sourceCode)
calculate
public abstract java.lang.Object calculate(org.codehaus.groovy.ast.expr.ClosureExpression closureExpression,
SourceCode sourceCode)
calculateForClass
public ClassMetricResult calculateForClass(org.codehaus.groovy.ast.ClassNode classNode,
SourceCode sourceCode)
- Specified by:
calculateForClass 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.