Package org.gmetrics.metric.coupling
Class EfferentCouplingMetric
- java.lang.Object
-
- org.gmetrics.metric.AbstractMetric
-
- org.gmetrics.metric.coupling.AbstractPackageCouplingMetric
-
- org.gmetrics.metric.coupling.EfferentCouplingMetric
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
,Metric
,PostProcessingMetric
public class EfferentCouplingMetric extends AbstractPackageCouplingMetric implements PostProcessingMetric
-
-
Field Summary
-
Fields inherited from class org.gmetrics.metric.coupling.AbstractPackageCouplingMetric
REFERENCED_PACKAGES
-
-
Constructor Summary
Constructors Constructor Description EfferentCouplingMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterAllSourceCodeProcessed()
protected MetricResult
calculateForPackage(String path, String packageName, Collection<MetricResult> childMetricResults)
groovy.lang.MetaClass
getMetaClass()
protected MetricResult
getMetricResult(String packageName)
String
getName()
Object
getProperty(String property)
Object
invokeMethod(String method, Object arguments)
void
setMetaClass(groovy.lang.MetaClass mc)
void
setProperty(String property, Object value)
-
Methods inherited from class org.gmetrics.metric.coupling.AbstractPackageCouplingMetric
calculateForClass, getBaseLevel, getIgnorePackageNames, setIgnorePackageNames
-
Methods inherited from class org.gmetrics.metric.AbstractMetric
applyToClass, applyToPackage, createAggregateMetricResult, createAggregateMetricResult, getEnabled, getFunctions, isEnabled, isNotAnInterface, setEnabled, setFunctions
-
-
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
getMetaClass
in classAbstractPackageCouplingMetric
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
setMetaClass
in classAbstractPackageCouplingMetric
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classAbstractPackageCouplingMetric
-
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classAbstractPackageCouplingMetric
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in classAbstractPackageCouplingMetric
-
calculateForPackage
protected MetricResult calculateForPackage(String path, String packageName, Collection<MetricResult> childMetricResults)
- Overrides:
calculateForPackage
in classAbstractMetric
-
getMetricResult
protected MetricResult getMetricResult(String packageName)
-
afterAllSourceCodeProcessed
public void afterAllSourceCodeProcessed()
- Specified by:
afterAllSourceCodeProcessed
in interfacePostProcessingMetric
-
-