public abstract class DependencyInfo
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
DependencyInfo(Workset aWorkset,
DependencyClassNode[] refNodes) |
Modifier and Type | Method and Description |
---|---|
protected GenericClassContainer[] |
collectContainers(ClassInformation[] classes) |
protected ClassPackage[] |
collectPackages(ClassInformation[] classes) |
boolean |
equals(java.lang.Object obj)
Returns true if the given object is equal to this object
|
protected DependencyClassNode |
findClassNode(ClassInformation classInfo)
Returns the dependency node that corresponds to the given class info
|
protected DependencyClassNode |
findClassNodeIn(ClassInformation classInfo,
DependencyClassNode[] refNodes)
Returns the dependency node that corresponds to the given class info if
found in the given array of class nodes or null if not found.
|
protected Functions |
func() |
ClassInformation[] |
getAllReferredClasses()
Returns the complete list of (directly and indirectly) referred classes
|
ClassInformation[] |
getAllReferredClasses(StringFilterCollection filter)
Returns a list of (directly and indirectly) referred classes that
don't match the given filter.
|
GenericClassContainer[] |
getAllReferredContainers()
Returns all containers the class depends on
|
GenericClassContainer[] |
getAllReferredContainers(StringFilterCollection filter)
Returns all containers the class depends on after applying the given filter
|
ClassPackage[] |
getAllReferredPackages()
Returns all packages the class is dependent of
|
ClassPackage[] |
getAllReferredPackages(StringFilterCollection filter)
Returns all packages the class is dependent of applying the given filter
|
abstract IAnalyzableElement |
getAnalyzedElement()
Returns the element has been analyzed to produce this dependency info
|
long |
getAnalyzingTime()
Returns the time (in milliseconds) the analysis lasted.
|
abstract ClassInformation[] |
getDirectlyReferredClasses()
Returns only the classes the analyzed class depends on directly.
|
ClassInformation[] |
getDirectlyReferredClasses(StringFilterCollection filter)
Returns only the classes the analyzed class depends on directly but without
all those that match the given filter
|
GenericClassContainer[] |
getDirectlyReferredContainers()
Returns all containers the class directly depends on
|
GenericClassContainer[] |
getDirectlyReferredContainers(StringFilterCollection filter)
Returns all containers the class directly depends on
|
ClassPackage[] |
getDirectlyReferredPackages()
Returns all packages the class directly depends on
|
ClassPackage[] |
getDirectlyReferredPackages(StringFilterCollection filter)
Returns all packages the class directly depends on
|
ClassInformation[] |
getIndirectlyReferredClasses()
Returns only the classes the analyzed class depends on indirectly.
|
ClassInformation[] |
getIndirectlyReferredClasses(StringFilterCollection filter)
Returns only the classes the analyzed class depends on indirectly but without
all those that match the given filter
|
GenericClassContainer[] |
getIndirectlyReferredContainers()
Returns all containers the class indirectly depends on
|
GenericClassContainer[] |
getIndirectlyReferredContainers(StringFilterCollection filter)
Returns all containers the class indirectly depends on
|
ClassPackage[] |
getIndirectlyReferredPackages()
Returns all packages the class indirectly depends on
|
ClassPackage[] |
getIndirectlyReferredPackages(StringFilterCollection filter)
Returns all packages the class indirectly depends on
|
protected org.pfsw.logging.Logger |
getLogger() |
abstract java.lang.String |
getName()
Returns the name of the analyzed object
|
protected DependencyClassNode[] |
getReferredClassesNodes()
Returns the complete list of (directly and indirectly) referred classes
|
protected java.lang.Long |
getTimestamp() |
Workset |
getWorkset()
Returns the workset in which this dependency analysis has been done
|
int |
hashCode()
Returns the hashcode for this object
|
protected java.lang.String |
inspectString()
Returns a string representation that is more convenient for object
inspection with JOI.
|
protected abstract java.lang.String |
nameOfClass()
Returns the name (without package) of the implementing class
|
void |
setAnalyzingTime(long newValue)
Sets the time (in milliseconds) the analysis lasted.
|
protected void |
setReferredClassesNodes(DependencyClassNode[] newValue)
Sets the complete list of (directly and indirectly) referred classes
|
protected void |
setTimestamp(java.lang.Long newValue) |
protected void |
setWorkset(Workset newValue) |
protected ClassInformation[] |
toClassInfoArray(java.util.Collection<ClassInformation> classInfos) |
protected GenericClassContainer[] |
toContainerArray(java.util.Collection<GenericClassContainer> containers) |
protected ClassPackage[] |
toPackageArray(java.util.Collection<ClassPackage> packages) |
protected CollectionUtil |
util() |
protected DependencyInfo(Workset aWorkset, DependencyClassNode[] refNodes)
public abstract java.lang.String getName()
public abstract ClassInformation[] getDirectlyReferredClasses()
public abstract IAnalyzableElement getAnalyzedElement()
protected abstract java.lang.String nameOfClass()
public ClassInformation[] getAllReferredClasses()
public ClassInformation[] getAllReferredClasses(StringFilterCollection filter)
filter
- The filter that defines which classes NOT to returnpublic ClassInformation[] getDirectlyReferredClasses(StringFilterCollection filter)
filter
- The filter that defines which classes NOT to returnpublic ClassInformation[] getIndirectlyReferredClasses()
public ClassInformation[] getIndirectlyReferredClasses(StringFilterCollection filter)
filter
- The filter that defines which classes NOT to returnpublic ClassPackage[] getAllReferredPackages()
public ClassPackage[] getAllReferredPackages(StringFilterCollection filter)
filter
- The filter specifies which packages NOT to returnpublic GenericClassContainer[] getAllReferredContainers()
public GenericClassContainer[] getAllReferredContainers(StringFilterCollection filter)
filter
- The filter specifies which containers NOT to returnpublic ClassPackage[] getDirectlyReferredPackages()
public ClassPackage[] getDirectlyReferredPackages(StringFilterCollection filter)
filter
- The filter specifies which packages NOT to returnpublic GenericClassContainer[] getDirectlyReferredContainers()
public GenericClassContainer[] getDirectlyReferredContainers(StringFilterCollection filter)
filter
- The filter specifies which containers NOT to returnpublic ClassPackage[] getIndirectlyReferredPackages()
public ClassPackage[] getIndirectlyReferredPackages(StringFilterCollection filter)
filter
- The filter specifies which packages NOT to returnpublic GenericClassContainer[] getIndirectlyReferredContainers()
public GenericClassContainer[] getIndirectlyReferredContainers(StringFilterCollection filter)
filter
- The filter specifies which containers NOT to returnpublic Workset getWorkset()
public long getAnalyzingTime()
public void setAnalyzingTime(long newValue)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected ClassPackage[] collectPackages(ClassInformation[] classes)
protected GenericClassContainer[] collectContainers(ClassInformation[] classes)
protected DependencyClassNode findClassNode(ClassInformation classInfo)
protected DependencyClassNode findClassNodeIn(ClassInformation classInfo, DependencyClassNode[] refNodes)
protected GenericClassContainer[] toContainerArray(java.util.Collection<GenericClassContainer> containers)
protected ClassPackage[] toPackageArray(java.util.Collection<ClassPackage> packages)
protected ClassInformation[] toClassInfoArray(java.util.Collection<ClassInformation> classInfos)
protected org.pfsw.logging.Logger getLogger()
protected CollectionUtil util()
protected Functions func()
protected java.lang.String inspectString()
protected void setWorkset(Workset newValue)
protected java.lang.Long getTimestamp()
protected void setTimestamp(java.lang.Long newValue)
protected DependencyClassNode[] getReferredClassesNodes()
protected void setReferredClassesNodes(DependencyClassNode[] newValue)