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 TypeMethodDescriptionvoidaddDirectory(String name) Adds the specified directory name to the collection of directories to be analyzed.voidanalyze()Analyzes the registered directories, generates metrics for each Java package, and reports the metrics in a graphical format.static voidvoidonParsedJavaClass(JavaClass jClass) Called whenever a Java source file is parsed into the specifiedJavaClassinstance.voidsetComponents(String components) Sets the comma-separated list of components.voidsetFilter(PackageFilter filter) Sets the package filter.
-
Constructor Details
-
JDepend
public JDepend()Constructs aJDependinstance.
-
-
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 specifiedJavaClassinstance.- Specified by:
onParsedJavaClassin interfaceParserListener- Parameters:
jClass- Parsed Java class.
-
main
-