Package jdepend.swingui
Class JDepend
java.lang.Object
jdepend.swingui.JDepend
- All Implemented Interfaces:
ParserListener
The
JDepend
class analyzes directories of Java class files,
generates metrics for each Java package, and reports the metrics in a Swing
tree.- Author:
- Mike Clark, Clarkware Consulting, Inc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDirectory
(String name) Adds the specified directory name to the collection of directories to be analyzed.void
analyze()
Analyzes the registered directories, generates metrics for each Java package, and reports the metrics in a graphical format.static void
void
onParsedJavaClass
(JavaClass jClass) Called whenever a Java source file is parsed into the specifiedJavaClass
instance.void
setComponents
(String components) Sets the comma-separated list of components.void
setFilter
(PackageFilter filter) Sets the package filter.
-
Constructor Details
-
JDepend
public JDepend()Constructs aJDepend
instance.
-
-
Method Details
-
addDirectory
Adds the specified directory name to the collection of directories to be analyzed.- Parameters:
name
- Directory name.- Throws:
IOException
- If the directory does not exist.
-
setFilter
Sets the package filter.- Parameters:
filter
- Package filter.
-
setComponents
Sets the comma-separated list of components. -
analyze
public void analyze()Analyzes the registered directories, generates metrics for each Java package, and reports the metrics in a graphical format. -
onParsedJavaClass
Called whenever a Java source file is parsed into the specifiedJavaClass
instance.- Specified by:
onParsedJavaClass
in interfaceParserListener
- Parameters:
jClass
- Parsed Java class.
-
main
-