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 java.lang.String
REFERENCED_PACKAGES
-
Constructor Summary
Constructors Constructor Description AbstractPackageCouplingMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClassMetricResult
calculateForClass(org.codehaus.groovy.ast.ClassNode classNode, SourceCode sourceCode)
MetricLevel
getBaseLevel()
java.lang.String
getIgnorePackageNames()
groovy.lang.MetaClass
getMetaClass()
java.lang.Object
getProperty(java.lang.String property)
java.lang.Object
invokeMethod(java.lang.String method, java.lang.Object arguments)
void
setIgnorePackageNames(java.lang.String value)
void
setMetaClass(groovy.lang.MetaClass mc)
void
setProperty(java.lang.String property, java.lang.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 java.lang.String REFERENCED_PACKAGES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
getMetaClass
in classAbstractMetric
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
setMetaClass
in classAbstractMetric
-
invokeMethod
public java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments)
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
- Overrides:
invokeMethod
in classAbstractMetric
-
getProperty
public java.lang.Object getProperty(java.lang.String property)
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
getProperty
in classAbstractMetric
-
setProperty
public void setProperty(java.lang.String property, java.lang.Object value)
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
- Overrides:
setProperty
in classAbstractMetric
-
getBaseLevel
public final MetricLevel getBaseLevel()
-
getIgnorePackageNames
public java.lang.String getIgnorePackageNames()
-
setIgnorePackageNames
public void setIgnorePackageNames(java.lang.String value)
-
calculateForClass
protected ClassMetricResult calculateForClass(org.codehaus.groovy.ast.ClassNode classNode, SourceCode sourceCode)
- Specified by:
calculateForClass
in classAbstractMetric
-
-