Package org.somox.metrics.helper
Class ComponentToImplementingClassesHelper
java.lang.Object
org.somox.metrics.helper.ComponentToImplementingClassesHelper
Helper for calculating recursively associated classes for a component.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet<org.emftext.language.java.classifiers.ConcreteClassifier>
collectAllClasses
(List<ComponentImplementingClassesLink> componentCandidates) Collects all implementation classes for the given list of component candidatesSet<org.emftext.language.java.classifiers.ConcreteClassifier>
deriveImplementingClasses
(ComponentImplementingClassesLink componentCandidate) Calculates a list of implementing classes derived for the input
-
Constructor Details
-
ComponentToImplementingClassesHelper
public ComponentToImplementingClassesHelper()Constructs a new helper
-
-
Method Details
-
deriveImplementingClasses
public Set<org.emftext.language.java.classifiers.ConcreteClassifier> deriveImplementingClasses(ComponentImplementingClassesLink componentCandidate) Calculates a list of implementing classes derived for the inputcomponentCandidate
. 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<org.emftext.language.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
-