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

Class JavaClass

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


public class JavaClass
extends java.lang.Object

The JavaClass class represents a Java class or interface.
Authors:
(mike@clarkware.com)
Clarkware Consulting, Inc.

Constructor Summary

JavaClass(java.lang.String name)

Constructs a JavaClass instance.

Method Summary

void

addImportedPackage(JavaPackage jPackage)

Adds the specified package to the collection of imported packages.

boolean

equals(java.lang.Object other)

Indicates whether the specified class is equal to this class.

java.util.Collection

getImportedPackages()

Returns a collection of imported package names.

java.lang.String

getName()

Returns the class name.

java.lang.String

getPackageName()

Returns the package name.

java.lang.String

getSourceFile()

Returns the source file name.

boolean

isAbstract()

Indicates whether this class is abstract.

void

isAbstract(boolean isAbstract)

Determines whether this class is abstract.

void

setName(java.lang.String name)

Sets the class name.

void

setPackageName(java.lang.String name)

Sets the package name.

void

setSourceFile(java.lang.String name)

Sets the source file name.

Constructor Details

JavaClass

public JavaClass(java.lang.String name)

Constructs a JavaClass instance.

Parameters:
name

Method Details

addImportedPackage

public void addImportedPackage(JavaPackage jPackage)

Adds the specified package to the collection of imported packages.

Parameters:
jPackage - Package to add.

equals

public boolean equals(java.lang.Object other)

Indicates whether the specified class is equal to this class.

Parameters:
other - Other class.
Returns:
true if the classes are equal; false otherwise.

getImportedPackages

public Collection getImportedPackages()

Returns a collection of imported package names.

Returns:
Imported package names.

getName

public String getName()

Returns the class name.

Returns:
Class name.

getPackageName

public String getPackageName()

Returns the package name.

Returns:
Package name.

getSourceFile

public String getSourceFile()

Returns the source file name.

Returns:
Source file name.

isAbstract

public boolean isAbstract()

Indicates whether this class is abstract.

Returns:
true if this class is abstract; false otherwise.

isAbstract

public void isAbstract(boolean isAbstract)

Determines whether this class is abstract.

Parameters:
isAbstract - true if this class is abstract; false otherwise.

setName

public void setName(java.lang.String name)

Sets the class name.

Parameters:
name - Class name.

setPackageName

public void setPackageName(java.lang.String name)

Sets the package name.

Parameters:
name - Package name.

setSourceFile

public void setSourceFile(java.lang.String name)

Sets the source file name.

Parameters:
name - Source file name.