⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
jdepend.framework

Class JavaClassBuilder

java.lang.Object
|
+--jdepend.framework.JavaClassBuilder


public class JavaClassBuilder
extends java.lang.Object

The JavaClassBuilder builds JavaClass instances from .class and .jar (or .zip) files.
Authors:
(mike@clarkware.com)
Clarkware Consulting, Inc.

Constructor Summary

JavaClassBuilder()

Constructs a JavaClassBuilder instance.

JavaClassBuilder(FileManager fm)

Constructs a JavaClassBuilder instance with the specified file manager.

JavaClassBuilder(AbstractParser parser, FileManager fm)

Constructs a JavaClassBuilder instance with the specified parser and file manager.

Method Summary

java.util.Collection

build()

Builds the JavaClass instances.

java.util.Collection

buildClasses(java.io.File file)

Builds the JavaClass instances from the specified file.

java.util.Collection

buildClasses(JarFile file)

Builds the JavaClass instances from the specified jar (or zip) file.

int

countClasses()

Returns the number of Java classes to be built.

Constructor Details

JavaClassBuilder

public JavaClassBuilder()

Constructs a JavaClassBuilder instance.


JavaClassBuilder

public JavaClassBuilder(AbstractParser parser, FileManager fm)

Constructs a JavaClassBuilder instance with the specified parser and file manager.

Parameters:
parser - Parser.
fm - File manager.

JavaClassBuilder

public JavaClassBuilder(FileManager fm)

Constructs a JavaClassBuilder instance with the specified file manager.

Parameters:
fm - File manager.

Method Details

build

public Collection build()

Builds the JavaClass instances.

Returns:
Collection of JavaClass instances.

buildClasses

public Collection buildClasses(JarFile file)

Builds the JavaClass instances from the specified jar (or zip) file.

Parameters:
file - Jar (or zip) file.
Returns:
Collection of JavaClass instances.

buildClasses

public Collection buildClasses(java.io.File file)

Builds the JavaClass instances from the specified file.

Parameters:
file - Class or Jar file.
Returns:
Collection of JavaClass instances.

countClasses

public int countClasses()

Returns the number of Java classes to be built.

Returns:
Number of classes.