jdepend.swingui

Class JDepend

public class JDepend extends Object implements 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 (mike@clarkware.com) Clarkware Consulting, Inc.

Constructor Summary
JDepend()
Constructs a JDepend instance.
Method Summary
voidaddDirectory(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 voidmain(String[] args)
Main
voidonParsedJavaClass(JavaClass jClass)
Called whenever a Java source file is parsed into the specified JavaClass instance.
voidsetFilter(PackageFilter filter)
Sets the package filter.

Constructor Detail

JDepend

public JDepend()
Constructs a JDepend instance.

Method Detail

addDirectory

public void addDirectory(String name)
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.

analyze

public void analyze()
Analyzes the registered directories, generates metrics for each Java package, and reports the metrics in a graphical format.

main

public static void main(String[] args)
Main

onParsedJavaClass

public void onParsedJavaClass(JavaClass jClass)
Called whenever a Java source file is parsed into the specified JavaClass instance.

Parameters: jClass Parsed Java class.

setFilter

public void setFilter(PackageFilter filter)
Sets the package filter.

Parameters: filter Package filter.

Copyright B) 1999-2003 Clarkware Consulting, Inc.