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.
- Mike Clark (mike@clarkware.com)
- Clarkware Consulting, Inc.
static class | JavaClass.ClassComparator - The
ClassComparator class is
a Comparator used to compare
two JavaClass instances for order.
|
JavaClass(String name) - Constructs a
JavaClass instance.
|
void | addImportedPackage(JavaPackage jPackage) - Adds the specified package to the collection
of imported packages.
|
boolean | equals(Object other) - Indicates whether the specified class is equal
to this class.
|
Collection | getImportedPackages() - Returns a collection of imported
package names.
|
String | getName() - Returns the class name.
|
String | getPackageName() - Returns the package name.
|
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(String name) - Sets the class name.
|
void | setPackageName(String name) - Sets the package name.
|
void | setSourceFile(String name) - Sets the source file name.
|
JavaClass
public JavaClass(String name)
Constructs a JavaClass
instance.
addImportedPackage
public void addImportedPackage(JavaPackage jPackage)
Adds the specified package to the collection
of imported packages.
jPackage
- Package to add.
equals
public boolean equals(Object other)
Indicates whether the specified class is equal
to this class.
other
- Other class.
true
if the classes are equal;
false
otherwise.
getImportedPackages
public Collection getImportedPackages()
Returns a collection of imported
package names.
- Imported package names.
getName
public String getName()
Returns the class name.
- Class name.
getPackageName
public String getPackageName()
Returns the package name.
- Package name.
getSourceFile
public String getSourceFile()
Returns the source file name.
- Source file name.
isAbstract
public boolean isAbstract()
Indicates whether this class is abstract.
true
if this class is abstract;
false
otherwise.
isAbstract
public void isAbstract(boolean isAbstract)
Determines whether this class is abstract.
isAbstract
- true
if this class
is abstract; false
otherwise.
setName
public void setName(String name)
Sets the class name.
name
- Class name.
setPackageName
public void setPackageName(String name)
Sets the package name.
name
- Package name.
setSourceFile
public void setSourceFile(String name)
Sets the source file name.
name
- Source file name.
Copyright B) 1999-2003 Clarkware Consulting, Inc.