Class MethodLineCountMetric
java.lang.Object
org.gmetrics.metric.AbstractMetric
org.gmetrics.metric.AbstractMethodMetric
org.gmetrics.metric.linecount.MethodLineCountMetric
- All Implemented Interfaces:
groovy.lang.GroovyObject, MethodMetric, Metric
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculate(org.codehaus.groovy.ast.expr.ClosureExpression closureExpression, SourceCode sourceCode) calculate(org.codehaus.groovy.ast.MethodNode methodNode, SourceCode sourceCode) groovy.lang.MetaClassfinal StringgetName()getProperty(String property) invokeMethod(String method, Object arguments) voidsetMetaClass(groovy.lang.MetaClass mc) voidsetProperty(String property, Object value) Methods inherited from class AbstractMethodMetric
applyToClosure, applyToMethod, calculateForClass, getBaseLevel, getIncludeClosureFields, isIncludeClosureFields, lineNumberForMethod, setIncludeClosureFieldsMethods inherited from class AbstractMetric
applyToClass, applyToPackage, calculateForPackage, createAggregateMetricResult, createAggregateMetricResult, getEnabled, getFunctions, isEnabled, isNotAnInterface, setEnabled, setFunctionsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Metric
applyToClass, applyToPackage, getFunctions, isEnabled
-
Constructor Details
-
MethodLineCountMetric
public MethodLineCountMetric()
-
-
Method Details
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
getMetaClassin classAbstractMethodMetric
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
setMetaClassin classAbstractMethodMetric
-
invokeMethod
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject- Overrides:
invokeMethodin classAbstractMethodMetric
-
getProperty
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject- Overrides:
getPropertyin classAbstractMethodMetric
-
setProperty
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject- Overrides:
setPropertyin classAbstractMethodMetric
-
getName
-
calculate
- Specified by:
calculatein classAbstractMethodMetric
-
calculate
public MetricResult calculate(org.codehaus.groovy.ast.expr.ClosureExpression closureExpression, SourceCode sourceCode) - Specified by:
calculatein classAbstractMethodMetric
-