public class WorksetAnalyzer
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addAllDerivedElements(java.util.Collection<ClassInformation> result,
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<ClassInformation> result,
ClassInformation[] interfaces) |
void |
addAllSuperclassesAndInterfaces(java.util.Collection<ClassInformation> result,
ClassInformation classInfo)
Adds superclasses and all extended or implemented interfaces
the hierarchy upwards or the specified class to the given result collection.
|
protected CollectionUtil |
collUtil() |
ClassInformation[] |
findAllDerivedElements(ClassInformation classInfo)
Looks in the workset of the given class for all classes that directly or
indirectly extend the given class.
|
ClassInformation[] |
findAllSuperclassesAndInterfaces(ClassInformation classInfo)
Returns an array containing all superclasses and interfaces of the
given class.
|
ClassInformation[] |
findWholeHierarchy(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 ClassInformation[] findWholeHierarchy(ClassInformation classInfo)
public void addAllDerivedElements(java.util.Collection<ClassInformation> result, 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 ClassInformation[] findAllDerivedElements(ClassInformation classInfo)
classInfo
- The class/interface of which the derived elements are looked uppublic void addAllSuperclassesAndInterfaces(java.util.Collection<ClassInformation> result, ClassInformation classInfo)
public ClassInformation[] findAllSuperclassesAndInterfaces(ClassInformation classInfo)
protected void addAllInterfacesAndSuperInterfaces(java.util.Collection<ClassInformation> result, ClassInformation[] interfaces)
protected CollectionUtil collUtil()