xjavadoc
public abstract class AbstractClass extends AbstractProgramElement implements XClass
UNKNOWN: 18. oktober 2002
Field Summary | |
---|---|
List | _allInterfaces
The implemented interfaces according to the hierarchy |
List | _allSubclasses |
List | _constructors |
XPackage | _containingPackage |
List | _declaredInterfaces
The implemented interfaces according to the source |
List | _directSubclasses |
List | _extendingInterfaces |
List | _fields |
int | _hash |
List | _implementingClasses |
List | _importedClasses |
List | _importedClassNames |
List | _importedPackages |
List | _innerClasses |
boolean | _isAnonymous |
boolean | _isInterface |
List | _methods |
String | _name |
Map | _namedConstructors |
HashMap | _namedMethods |
String | _qualifiedName |
XClass | _superclass |
String | _transformedName |
String | _transformedQualifiedName |
Constructor Summary | |
---|---|
protected | AbstractClass(AbstractClass containingClass, XTagFactory tagFactory) |
protected | AbstractClass(XJavaDoc xJavaDoc, XTagFactory tagFactory) |
Method Summary | |
---|---|
void | addConstructor(XConstructor constructor)
Gets the Constructors attribute of the AbstractClass object
|
void | addField(XField field)
Gets the Fields attribute of the AbstractClass object
|
void | addImportedClass(String importedClass)
Sets the ImportedClasses attribute of the AbstractClass object
|
void | addImportedPackage(String importedPackage)
Sets the ImportedPackages attribute of the AbstractClass object
|
protected void | addInnerClass(XClass clazz) |
void | addInterface(String interfaceName)
Adds an interface that this class implements (if this is a class) or an
interface that this interface extends (if this is an interface)
|
void | addMethod(XMethod method)
Gets the Methods attribute of the AbstractClass object
|
int | compareTo(Object o) |
boolean | equals(Object obj) |
List | getAllSubclasses() |
XConstructor | getConstructor(String constructorNameWithSignature)
Gets the Constructor attribute of the AbstractClass object
|
List | getConstructors()
Gets the constructors.
|
XPackage | getContainingPackage()
Describe what the method does
|
Collection | getDeclaredInterfaces()
Returns the interfaces that are declared in the source code. |
List | getDirectSubclasses() |
List | getExtendingInterfaces() |
XField | getField(String fieldName)
Returns an XField with the given name. |
List | getFields(Predicate predicate, boolean superclasses) |
List | getFields(boolean superclasses) |
List | getFields()
Describe what the method does
|
List | getImplementingClasses() |
List | getImportedClasses()
Describe what the method does
|
List | getImportedPackages()
Describe what the method does
|
List | getInnerClasses()
Describe what the method does
|
List | getInterfaces()
Returns all the implemented interfaces (if this is a class) or all the
extended interfaces (if this is an interface)
|
List | getMembers(boolean superclasses, boolean forFields)
Returns all the fields or methods.
|
XMethod | getMethod(String methodNameWithSignature) |
XMethod | getMethod(String methodNameWithSignature, boolean superclasses) |
List | getMethods() |
List | getMethods(Predicate predicate, boolean superclasses) |
List | getMethods(boolean superclasses) |
List | getMethodTags(String tagName, boolean superclasses) |
String | getName() |
String | getQualifiedName()
Describe what the method does
|
XClass | getSuperclass()
Describe what the method does
|
XProgramElement | getSuperElement()
Describe what the method does
|
List | getSuperInterfaceElements() |
String | getTransformedName()
Gets the transformed class name, for example: Character$Subset
|
String | getTransformedQualifiedName()
Gets the transformed qualified class name, for example: java.lang.Character$Subset
|
String | getType() |
int | hashCode() |
protected boolean | hasImportedClasses() |
protected boolean | hasImportedPackages() |
protected boolean | hasInnerClasses() |
void | initializeNamedConstructorsHashMap() |
void | initializeNamedMethodsHashMap() |
boolean | isA(String full_qualified_type_name) |
boolean | isA(String full_qualified_type_name, boolean superclasses) |
boolean | isAnonymous() |
boolean | isImplementingInterface(String full_qualified_type_name) |
boolean | isImplementingInterface(String full_qualified_type_name, boolean superclasses) |
boolean | isInner() |
boolean | isInterface()
Gets the Interface attribute of the SourceClass object
|
boolean | isSubclassOf(String full_qualified_type_name) |
boolean | isSubclassOf(String full_qualified_type_name, boolean superclasses) |
long | lastModified() |
XClass | qualify(String unqualifiedClassName) |
void | reset() |
void | resolveImportedClasses() |
String | save(File rootDir) |
void | setContainingPackage(String containingPackage)
Sets the ContainingPackage attribute of the AbstractProgramElement object
Use package name specified in class, and do not complain about directory
struct.
|
void | setInterface(boolean flag)
Sets the Interface attribute of the SourceClass object
|
void | setName(String name)
Sets the unqualified name of the class. |
void | setQualifiedName(String qualifiedName)
Sets the qualified name of the class. |
void | setRealised(String clazz)
This method is called for anonymous classes only. |
void | setSuperclass(String superclass)
Sets the SuperClass attribute of the SourceClass object
|
String | toString() |
void | updateDoc()
update javadoc |
void | validate(XMember member) |
Parameters: constructor Describe the method parameter
Parameters: field Describe the method parameter
Parameters: importedClass Describe the method parameter
Parameters: importedPackage Describe the method parameter
Parameters: interfaceName Describe the method parameter
Parameters: method Describe the method parameter
Parameters: constructorNameWithSignature Describe what the parameter does
Returns: The Constructor value
Returns: the constructors.
Returns: Describe the return value
Returns: A Collection of XClass
Parameters: fieldName Describe what the parameter does
Returns: The Field value
Returns: Describe the return value for method for return value
Returns: Describe the return value for method for return value
Returns: Describe the return value for method for return value
Returns: Describe the return value
Returns: Describe the return value for method for return value
Parameters: forFields true if you want the fields, false if you want methods superclasses
Returns: A List of XMember
Returns: Describe the return value for method for return value
Returns: Describe the return value for method for return value
Returns: Describe the return value
Character$Subset
Returns: the transformed class name.
java.lang.Character$Subset
Returns: the transformed qualified class name.
Returns: The Interface value
Parameters: containingPackage The new ContainingPackage value
Parameters: flag The new Interface value
Parameters: name The new Name value
Parameters: qualifiedName The new QualifiedName value
Parameters: clazz
Parameters: superclass The new Superclass value