public abstract class AbstractCouplingReferenceManager extends Object implements groovy.lang.GroovyObject
Modifier and Type | Field and Description |
---|---|
protected Map<String,MutableMapMetricResult> |
metricResultMap |
protected Map<String,Set<String>> |
referencesFromPackage |
protected static String |
ROOT |
Constructor and Description |
---|
AbstractCouplingReferenceManager(Metric metric) |
Modifier and Type | Method and Description |
---|---|
void |
addReferencesFromPackage(String rawPackageName,
Collection<String> rawPackages) |
protected abstract MutableMapMetricResult |
createEmptyMetricResult() |
groovy.lang.MetaClass |
getMetaClass() |
Metric |
getMetric() |
MetricResult |
getPackageMetricResult(String rawPackageName) |
Object |
getProperty(String property) |
protected Set<String> |
getReferencesFromPackage(String rawPackageName) |
Object |
invokeMethod(String method,
Object arguments) |
protected boolean |
isSourcePackageOrAncestor(String packageName) |
protected String |
normalizePackageName(String name) |
protected String |
parentPackageName(String packageName) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
protected SortedSet |
sortPackagesWithReferencesWithParentFirst() |
protected void |
updateStatisticsForAncestorPackage(String packageName,
int addToTotal,
int addToCount) |
protected static final String ROOT
protected Map<String,MutableMapMetricResult> metricResultMap
public AbstractCouplingReferenceManager(Metric metric)
public groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
public void setProperty(String property, Object value)
setProperty
in interface groovy.lang.GroovyObject
public final Metric getMetric()
protected abstract MutableMapMetricResult createEmptyMetricResult()
public void addReferencesFromPackage(String rawPackageName, Collection<String> rawPackages)
public MetricResult getPackageMetricResult(String rawPackageName)
protected boolean isSourcePackageOrAncestor(String packageName)
protected SortedSet sortPackagesWithReferencesWithParentFirst()
protected void updateStatisticsForAncestorPackage(String packageName, int addToTotal, int addToCount)
Copyright © 2022. All rights reserved.