Package org.gmetrics.metric.coupling
Class AbstractPackageCouplingMetric
- java.lang.Object
-
- org.gmetrics.metric.AbstractMetric
-
- org.gmetrics.metric.coupling.AbstractPackageCouplingMetric
-
- All Implemented Interfaces:
groovy.lang.GroovyObject,Metric
- Direct Known Subclasses:
AfferentCouplingMetric,EfferentCouplingMetric
public abstract class AbstractPackageCouplingMetric extends AbstractMetric
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringREFERENCED_PACKAGES
-
Constructor Summary
Constructors Constructor Description AbstractPackageCouplingMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClassMetricResultcalculateForClass(org.codehaus.groovy.ast.ClassNode classNode, SourceCode sourceCode)MetricLevelgetBaseLevel()StringgetIgnorePackageNames()groovy.lang.MetaClassgetMetaClass()ObjectgetProperty(String property)ObjectinvokeMethod(String method, Object arguments)voidsetIgnorePackageNames(String value)voidsetMetaClass(groovy.lang.MetaClass mc)voidsetProperty(String property, Object value)-
Methods inherited from class org.gmetrics.metric.AbstractMetric
applyToClass, applyToPackage, calculateForPackage, createAggregateMetricResult, createAggregateMetricResult, getEnabled, getFunctions, isEnabled, isNotAnInterface, setEnabled, setFunctions
-
-
-
-
Field Detail
-
REFERENCED_PACKAGES
protected static final String REFERENCED_PACKAGES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
getMetaClassin classAbstractMetric
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
setMetaClassin classAbstractMetric
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject- Overrides:
invokeMethodin classAbstractMetric
-
getProperty
public Object getProperty(String property)
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject- Overrides:
getPropertyin classAbstractMetric
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject- Overrides:
setPropertyin classAbstractMetric
-
getBaseLevel
public final MetricLevel getBaseLevel()
-
getIgnorePackageNames
public String getIgnorePackageNames()
-
setIgnorePackageNames
public void setIgnorePackageNames(String value)
-
calculateForClass
protected ClassMetricResult calculateForClass(org.codehaus.groovy.ast.ClassNode classNode, SourceCode sourceCode)
- Specified by:
calculateForClassin classAbstractMetric
-
-