Class AbstractCouplingReferenceManager

java.lang.Object
org.gmetrics.metric.coupling.AbstractCouplingReferenceManager
All Implemented Interfaces:
groovy.lang.GroovyObject
Direct Known Subclasses:
AfferentCouplingReferenceManager, EfferentCouplingReferenceManager

public abstract class AbstractCouplingReferenceManager extends Object implements groovy.lang.GroovyObject
  • Field Details

  • Constructor Details

    • AbstractCouplingReferenceManager

      public AbstractCouplingReferenceManager(Metric metric)
  • Method Details

    • getMetaClass

      public groovy.lang.MetaClass getMetaClass()
      Specified by:
      getMetaClass in interface groovy.lang.GroovyObject
    • setMetaClass

      public void setMetaClass(groovy.lang.MetaClass mc)
      Specified by:
      setMetaClass in interface groovy.lang.GroovyObject
    • invokeMethod

      public Object invokeMethod(String method, Object arguments)
      Specified by:
      invokeMethod in interface groovy.lang.GroovyObject
    • getProperty

      public Object getProperty(String property)
      Specified by:
      getProperty in interface groovy.lang.GroovyObject
    • setProperty

      public void setProperty(String property, Object value)
      Specified by:
      setProperty in interface groovy.lang.GroovyObject
    • getMetric

      public final Metric getMetric()
    • createEmptyMetricResult

      protected abstract MutableMapMetricResult createEmptyMetricResult()
    • addReferencesFromPackage

      public void addReferencesFromPackage(String rawPackageName, Collection<String> rawPackages)
    • getPackageMetricResult

      public MetricResult getPackageMetricResult(String rawPackageName)
    • isSourcePackageOrAncestor

      protected boolean isSourcePackageOrAncestor(String packageName)
    • sortPackagesWithReferencesWithParentFirst

      protected SortedSet sortPackagesWithReferencesWithParentFirst()
    • updateStatisticsForAncestorPackage

      protected void updateStatisticsForAncestorPackage(String packageName, int addToTotal, int addToCount)
    • parentPackageName

      protected String parentPackageName(String packageName)
    • getReferencesFromPackage

      protected Set<String> getReferencesFromPackage(String rawPackageName)
    • normalizePackageName

      protected String normalizePackageName(String name)