Package org.gmetrics.metric.abc
Class AbcMetric
java.lang.Object
org.gmetrics.metric.AbstractMetric
org.gmetrics.metric.AbstractMethodMetric
org.gmetrics.metric.abc.AbcMetric
- 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) protected MetricResultcreateAggregateMetricResult(MetricLevel metricLevel, Collection childMetricResults, org.codehaus.groovy.ast.ASTNode node) 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 org.gmetrics.metric.AbstractMethodMetric
applyToClosure, applyToMethod, calculateForClass, getBaseLevel, getIncludeClosureFields, isIncludeClosureFields, lineNumberForMethod, setIncludeClosureFieldsMethods inherited from class org.gmetrics.metric.AbstractMetric
applyToClass, applyToPackage, calculateForPackage, createAggregateMetricResult, getEnabled, getFunctions, isEnabled, isNotAnInterface, setEnabled, setFunctionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gmetrics.metric.Metric
applyToClass, applyToPackage, getFunctions, isEnabled
-
Constructor Details
-
AbcMetric
public AbcMetric()
-
-
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
-
createAggregateMetricResult
protected MetricResult createAggregateMetricResult(MetricLevel metricLevel, Collection childMetricResults, org.codehaus.groovy.ast.ASTNode node) - Overrides:
createAggregateMetricResultin classAbstractMetric
-