Package org.gmetrics.metric.coupling
Class AfferentCouplingMetric
- java.lang.Object
-
- org.gmetrics.metric.AbstractMetric
-
- org.gmetrics.metric.coupling.AbstractPackageCouplingMetric
-
- org.gmetrics.metric.coupling.AfferentCouplingMetric
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
,Metric
,PostProcessingMetric
public class AfferentCouplingMetric extends AbstractPackageCouplingMetric implements PostProcessingMetric
-
-
Field Summary
-
Fields inherited from class org.gmetrics.metric.coupling.AbstractPackageCouplingMetric
REFERENCED_PACKAGES
-
-
Constructor Summary
Constructors Constructor Description AfferentCouplingMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterAllSourceCodeProcessed()
protected MetricResult
calculateForPackage(java.lang.String path, java.lang.String packageName, java.util.Collection<MetricResult> childMetricResults)
groovy.lang.MetaClass
getMetaClass()
protected MetricResult
getMetricResult(java.lang.String packageName)
java.lang.String
getName()
java.lang.Object
getProperty(java.lang.String property)
java.lang.Object
invokeMethod(java.lang.String method, java.lang.Object arguments)
void
setMetaClass(groovy.lang.MetaClass mc)
void
setProperty(java.lang.String property, java.lang.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 java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments)
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classAbstractPackageCouplingMetric
-
getProperty
public java.lang.Object getProperty(java.lang.String property)
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classAbstractPackageCouplingMetric
-
setProperty
public void setProperty(java.lang.String property, java.lang.Object value)
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in classAbstractPackageCouplingMetric
-
calculateForPackage
protected MetricResult calculateForPackage(java.lang.String path, java.lang.String packageName, java.util.Collection<MetricResult> childMetricResults)
- Overrides:
calculateForPackage
in classAbstractMetric
-
afterAllSourceCodeProcessed
public void afterAllSourceCodeProcessed()
- Specified by:
afterAllSourceCodeProcessed
in interfacePostProcessingMetric
-
getMetricResult
protected MetricResult getMetricResult(java.lang.String packageName)
-
-