Class EfferentNode
java.lang.Object
jdepend.swingui.PackageNode
jdepend.swingui.EfferentNode
The
EfferentNode class is a PackageNode for an
efferent Java package and its efferent packages.- Author:
- Mike Clark, Clarkware Consulting, Inc.
-
Constructor Summary
ConstructorsConstructorDescriptionEfferentNode(PackageNode parent, JavaPackage jPackage) Constructs anEfferentNodewith the specified parent node and efferent Java package. -
Method Summary
Modifier and TypeMethodDescriptionprotected CollectionReturns the collection of Java packages coupled to the package represented in this node.booleanisChild(JavaPackage jPackage) Indicates whether the specified package should be displayed as a child of this node.protected PackageNodemakeNode(PackageNode parent, JavaPackage jPackage) Creates and returns aPackageNodewith the specified parent node and Java package.toString()Returns the string representation of this node in it's current tree context.Methods inherited from class PackageNode
getChildren, getPackage, getParent, isLeaf, toMetricsString
-
Constructor Details
-
EfferentNode
Constructs anEfferentNodewith the specified parent node and efferent Java package.- Parameters:
parent- Parent package node.jPackage- Efferent Java package.
-
-
Method Details
-
makeNode
Creates and returns aPackageNodewith the specified parent node and Java package.- Specified by:
makeNodein classPackageNode- Parameters:
parent- Parent package node.jPackage- Java package.- Returns:
- A non-null
PackageNodeinvalid input: '<'/code.
-
getCoupledPackages
Returns the collection of Java packages coupled to the package represented in this node.- Specified by:
getCoupledPackagesin classPackageNode- Returns:
- Collection of coupled packages.
-
isChild
Indicates whether the specified package should be displayed as a child of this node.Efferent packages without classes are never shown at the root level to exclude non-analyzed packages.
- Overrides:
isChildin classPackageNode- Parameters:
jPackage- Package to test.- Returns:
trueto display the package;falseotherwise.
-
toString
Returns the string representation of this node in it's current tree context.- Overrides:
toStringin classPackageNode- Returns:
- Node label.
-