public class WorksetAnalyzer
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addAllDerivedElements(java.util.Collection<org.pfsw.tools.cda.base.model.ClassInformation> result,
org.pfsw.tools.cda.base.model.ClassInformation classInfo)
Looks in the workset of the given class for all classes that directly or
indirectly extend the given class.
|
protected void |
addAllInterfacesAndSuperInterfaces(java.util.Collection<org.pfsw.tools.cda.base.model.ClassInformation> result,
org.pfsw.tools.cda.base.model.ClassInformation[] interfaces) |
void |
addAllSuperclassesAndInterfaces(java.util.Collection<org.pfsw.tools.cda.base.model.ClassInformation> result,
org.pfsw.tools.cda.base.model.ClassInformation classInfo)
Adds superclasses and all extended or implemented interfaces
the hierarchy upwards or the specified class to the given result collection.
|
protected org.pfsw.tools.cda.base.util.CollectionUtil |
collUtil() |
org.pfsw.tools.cda.base.model.ClassInformation[] |
findAllDerivedElements(org.pfsw.tools.cda.base.model.ClassInformation classInfo)
Looks in the workset of the given class for all classes that directly or
indirectly extend the given class.
|
org.pfsw.tools.cda.base.model.ClassInformation[] |
findAllSuperclassesAndInterfaces(org.pfsw.tools.cda.base.model.ClassInformation classInfo)
Returns an array containing all superclasses and interfaces of the
given class.
|
org.pfsw.tools.cda.base.model.ClassInformation[] |
findWholeHierarchy(org.pfsw.tools.cda.base.model.ClassInformation classInfo)
Returns an array containing all classes and interfaces that are in the
inheritance hierarchy of the given class.
|
static WorksetAnalyzer |
instance()
Returns the only instance this class supports (design pattern "Singleton")
|
public static WorksetAnalyzer instance()
public org.pfsw.tools.cda.base.model.ClassInformation[] findWholeHierarchy(org.pfsw.tools.cda.base.model.ClassInformation classInfo)
public void addAllDerivedElements(java.util.Collection<org.pfsw.tools.cda.base.model.ClassInformation> result, org.pfsw.tools.cda.base.model.ClassInformation classInfo)
result
- The collection to which the found elements will be added (must not be null)classInfo
- The class/interface of which the derived elements are looked uppublic org.pfsw.tools.cda.base.model.ClassInformation[] findAllDerivedElements(org.pfsw.tools.cda.base.model.ClassInformation classInfo)
classInfo
- The class/interface of which the derived elements are looked uppublic void addAllSuperclassesAndInterfaces(java.util.Collection<org.pfsw.tools.cda.base.model.ClassInformation> result, org.pfsw.tools.cda.base.model.ClassInformation classInfo)
public org.pfsw.tools.cda.base.model.ClassInformation[] findAllSuperclassesAndInterfaces(org.pfsw.tools.cda.base.model.ClassInformation classInfo)
protected void addAllInterfacesAndSuperInterfaces(java.util.Collection<org.pfsw.tools.cda.base.model.ClassInformation> result, org.pfsw.tools.cda.base.model.ClassInformation[] interfaces)
protected org.pfsw.tools.cda.base.util.CollectionUtil collUtil()