Class ComponentToImplementingClassesHelper

java.lang.Object
org.somox.metrics.helper.ComponentToImplementingClassesHelper

public class ComponentToImplementingClassesHelper extends Object
Helper for calculating recursively associated classes for a component.
  • Constructor Details

    • ComponentToImplementingClassesHelper

      public ComponentToImplementingClassesHelper()
      Constructs a new helper
  • Method Details

    • deriveImplementingClasses

      public Set<tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier> deriveImplementingClasses(ComponentImplementingClassesLink componentCandidate)
      Calculates a list of implementing classes derived for the input
       componentCandidate
       
      . The list of implementing classes is derived recursively for the component candidate.
      Parameters:
      componentCandidate - The component for which to return its implementing classes
      Returns:
      Implementing classes of this and all sub-components.
    • collectAllClasses

      public Set<tools.mdsd.jamopp.model.java.classifiers.ConcreteClassifier> collectAllClasses(List<ComponentImplementingClassesLink> componentCandidates)
      Collects all implementation classes for the given list of component candidates
      Parameters:
      componentCandidates - A list of component candidates for which to collect their implementing classes
      Returns:
      The set of classes used to implement the list of components