java.lang.Object | +--jdepend.framework.JavaPackage
JavaPackage(java.lang.String name) Constructs a JavaPackage instance with the specified package name. |
JavaPackage(java.lang.String name, int volatility) |
float | Returns the abstractness (A) of this package. |
void | addAfferent(JavaPackage jPackage) Adds the specified Java package as an afferent of this package. |
void | Adds the specified Java class to the package. |
void | addEfferent(JavaPackage jPackage) Adds the specified Java package as an efferent of this package. |
int | Returns the afferent coupling (Ca) of this package. |
boolean | collectAllCycles(java.util.List list) Collects all the packages participating in a package dependency cycle which originates from this package. |
boolean | collectCycle(java.util.List list) Collects the packages participating in the first package dependency cycle detected which originates from this package. |
boolean | Indicates whether the package contains a package dependency cycle. |
void | dependsUpon(JavaPackage imported) Adds the specified Java package as an efferent of this package and adds this package as an afferent of it. |
float | distance() Returns this package's distance from the main sequence (D). |
int | Returns the efferent coupling (Ce) of this package. |
boolean | equals(java.lang.Object other) Indicates whether the specified package is equal to this package. |
int | Returns the number of abstract classes (and interfaces) in this package. |
java.util.Collection | Returns the collection of afferent packages. |
int | Returns the total number of classes in this package. |
java.util.Collection | Returns the collection of Java classes in this package. |
int | Returns the number of concrete classes in this package. |
java.util.Collection | Returns the collection of efferent packages. |
java.lang.String | getName() Returns the package name. |
int | Returns the volatility of this package. |
float | Returns the instability (I) of this package. |
void | setAfferents(java.util.Collection afferents) Sets the collection of afferent packages. |
void | setEfferents(java.util.Collection efferents) Sets the collection of efferent packages. |
void | setVolatility(int v) Sets the volatility of this package. |
public JavaPackage(java.lang.String name, int volatility)
public JavaPackage(java.lang.String name)
JavaPackage
instance with
the specified package name.
public float abstractness()
public void addAfferent(JavaPackage jPackage)
public void addClass(JavaClass clazz)
public void addEfferent(JavaPackage jPackage)
public int afferentCoupling()
public boolean collectAllCycles(java.util.List list)
collectCycle
.
public boolean collectCycle(java.util.List list)
public boolean containsCycle()
public void dependsUpon(JavaPackage imported)
public float distance()
public int efferentCoupling()
public boolean equals(java.lang.Object other)
public int getAbstractClassCount()
public Collection getAfferents()
public int getClassCount()
public Collection getClasses()
public int getConcreteClassCount()
public Collection getEfferents()
public String getName()
public int getVolatility()
public float instability()
public void setAfferents(java.util.Collection afferents)
public void setEfferents(java.util.Collection efferents)
public void setVolatility(int v)
JavaPackage
class represents a Java package.