jdepend.textui
Class JDepend

java.lang.Object
  extended byjdepend.textui.JDepend
Direct Known Subclasses:
JDepend

public class JDepend
extends java.lang.Object

The JDepend class analyzes directories of Java source and class files, generates metrics for each Java package, and reports the metrics in a textual format.

Author:
Mike Clark, Clarkware Consulting, Inc.

Constructor Summary
JDepend()
          Constructs a JDepend instance using standard output.
JDepend(java.io.PrintWriter writer)
          Constructs a JDepend instance with the specified writer.
 
Method Summary
 void addDirectory(java.lang.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.
protected  java.io.PrintWriter getWriter()
           
protected  void instanceMain(java.lang.String[] args)
           
static void main(java.lang.String[] args)
          Main.
protected  void printAbstractClasses(JavaPackage jPackage)
           
protected  void printAbstractClassesFooter()
           
protected  void printAbstractClassesHeader()
           
protected  void printAfferents(JavaPackage jPackage)
           
protected  void printAfferentsError()
           
protected  void printAfferentsFooter()
           
protected  void printAfferentsHeader()
           
protected  void printClassName(JavaClass jClass)
           
protected  void printConcreteClasses(JavaPackage jPackage)
           
protected  void printConcreteClassesFooter()
           
protected  void printConcreteClassesHeader()
           
protected  void printCycle(JavaPackage jPackage)
           
protected  void printCycleContributor(JavaPackage jPackage)
           
protected  void printCycleFooter()
           
protected  void printCycleHeader(JavaPackage jPackage)
           
protected  void printCycles(java.util.Collection packages)
           
protected  void printCyclesFooter()
           
protected  void printCyclesHeader()
           
protected  void printCycleTarget(JavaPackage jPackage)
           
protected  void printEfferents(JavaPackage jPackage)
           
protected  void printEfferentsError()
           
protected  void printEfferentsFooter()
           
protected  void printEfferentsHeader()
           
protected  void printFooter()
           
protected  void printHeader()
           
protected  void printNoStats()
           
protected  void printPackage(JavaPackage jPackage)
           
protected  void printPackageFooter(JavaPackage jPackage)
           
protected  void printPackageHeader(JavaPackage jPackage)
           
protected  void printPackageName(JavaPackage jPackage)
           
protected  void printPackages(java.util.Collection packages)
           
protected  void printPackagesFooter()
           
protected  void printPackagesHeader()
           
protected  void printSectionBreak()
           
protected  void printStatistics(JavaPackage jPackage)
           
protected  void printSummary(java.util.Collection packages)
           
 void setWriter(java.io.PrintWriter writer)
          Sets the output writer.
protected  java.lang.String tab()
           
protected  java.lang.String tab(int n)
           
protected  java.lang.String toFormattedString(float f)
           
protected  void usage(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDepend

public JDepend()
Constructs a JDepend instance using standard output.


JDepend

public JDepend(java.io.PrintWriter writer)
Constructs a JDepend instance with the specified writer.

Parameters:
writer - Writer.
Method Detail

setWriter

public void setWriter(java.io.PrintWriter writer)
Sets the output writer.

Parameters:
writer - Output writer.

getWriter

protected java.io.PrintWriter getWriter()

addDirectory

public void addDirectory(java.lang.String name)
                  throws java.io.IOException
Adds the specified directory name to the collection of directories to be analyzed.

Parameters:
name - Directory name.
Throws:
java.io.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.


printPackages

protected void printPackages(java.util.Collection packages)

printPackage

protected void printPackage(JavaPackage jPackage)

printAbstractClasses

protected void printAbstractClasses(JavaPackage jPackage)

printConcreteClasses

protected void printConcreteClasses(JavaPackage jPackage)

printEfferents

protected void printEfferents(JavaPackage jPackage)

printAfferents

protected void printAfferents(JavaPackage jPackage)

printCycles

protected void printCycles(java.util.Collection packages)

printCycle

protected void printCycle(JavaPackage jPackage)

printHeader

protected void printHeader()

printFooter

protected void printFooter()

printPackagesHeader

protected void printPackagesHeader()

printPackagesFooter

protected void printPackagesFooter()

printNoStats

protected void printNoStats()

printPackageHeader

protected void printPackageHeader(JavaPackage jPackage)

printPackageFooter

protected void printPackageFooter(JavaPackage jPackage)

printStatistics

protected void printStatistics(JavaPackage jPackage)

printClassName

protected void printClassName(JavaClass jClass)

printPackageName

protected void printPackageName(JavaPackage jPackage)

printAbstractClassesHeader

protected void printAbstractClassesHeader()

printAbstractClassesFooter

protected void printAbstractClassesFooter()

printConcreteClassesHeader

protected void printConcreteClassesHeader()

printConcreteClassesFooter

protected void printConcreteClassesFooter()

printEfferentsHeader

protected void printEfferentsHeader()

printEfferentsFooter

protected void printEfferentsFooter()

printEfferentsError

protected void printEfferentsError()

printAfferentsHeader

protected void printAfferentsHeader()

printAfferentsFooter

protected void printAfferentsFooter()

printAfferentsError

protected void printAfferentsError()

printCyclesHeader

protected void printCyclesHeader()

printCyclesFooter

protected void printCyclesFooter()

printCycleHeader

protected void printCycleHeader(JavaPackage jPackage)

printCycleTarget

protected void printCycleTarget(JavaPackage jPackage)

printCycleContributor

protected void printCycleContributor(JavaPackage jPackage)

printCycleFooter

protected void printCycleFooter()

printSummary

protected void printSummary(java.util.Collection packages)

printSectionBreak

protected void printSectionBreak()

toFormattedString

protected java.lang.String toFormattedString(float f)

tab

protected java.lang.String tab()

tab

protected java.lang.String tab(int n)

usage

protected void usage(java.lang.String message)

instanceMain

protected void instanceMain(java.lang.String[] args)

main

public static void main(java.lang.String[] args)
Main.



Copyright © 1999-2002 Clarkware Consulting, Inc. All Rights Reserved.