jdepend.framework
public class JavaPackage extends Object
JavaPackage class represents a Java package.
| Constructor Summary | |
|---|---|
| JavaPackage(String name) | |
| JavaPackage(String name, int volatility) | |
| Method Summary | |
|---|---|
| float | abstractness() |
| void | addAfferent(JavaPackage jPackage)
Adds the specified Java package as an afferent of this package.
|
| void | addClass(JavaClass clazz) |
| void | addEfferent(JavaPackage jPackage) |
| int | afferentCoupling() |
| boolean | collectAllCycles(List list)
Collects all the packages participating in a package dependency cycle
which originates from this package.
|
| boolean | collectCycle(List list)
Collects the packages participating in the first package dependency cycle
detected which originates from this package.
|
| boolean | containsCycle() |
| 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() |
| int | efferentCoupling() |
| boolean | equals(Object other) |
| int | getAbstractClassCount() |
| Collection | getAfferents() |
| int | getClassCount() |
| Collection | getClasses() |
| int | getConcreteClassCount() |
| Collection | getEfferents() |
| String | getName() |
| int | getVolatility() |
| int | hashCode() |
| float | instability() |
| void | setAfferents(Collection afferents) |
| void | setEfferents(Collection efferents) |
| void | setVolatility(int v) |
Returns: The package's abstractness (0-1).
Parameters: jPackage Java package.
Returns: The afferent coupling (Ca) of this package.
This is a more exhaustive search than that employed by
collectCycle.
Parameters: list Collecting object to be populated with the list of JavaPackage instances in a cycle.
Returns: true if a cycle exist; false
otherwise.
Parameters: list Collecting object to be populated with the list of JavaPackage instances in a cycle.
Returns: true if a cycle exist; false
otherwise.
Parameters: imported Java package.
Returns: The package's distance from the main sequence (D).
Returns: The efferent coupling (Ce) of this package.
Returns: The package's volatility (0-1).
Returns: Instability (0-1).
Parameters: v Volatility (0-1).