public interface ClassDeclaration extends TypeDeclaration
InterfaceDeclaration.
Provides access to information about the class, its members, and
its constructors.
Note that an enum is a kind of class.
While a ClassDeclaration represents the declaration
of a class, a ClassType represents a class type.
See TypeDeclaration for more on this distinction.
DeclarationFilter
provides a simple way to select just the items of interest
when a method returns a collection of declarations.
ClassType| Modifier and Type | Method and Description |
|---|---|
Collection<ConstructorDeclaration> |
getConstructors()
Returns the constructors of this class.
|
Collection<MethodDeclaration> |
getMethods()
Returns the methods that are directly declared by this class or
interface.
|
ClassType |
getSuperclass()
Returns the class type directly extended by this class.
|
getFields, getFormalTypeParameters, getNestedTypes, getPackage, getQualifiedName, getSuperinterfacesgetDeclaringTypeaccept, equals, getAnnotation, getAnnotationMirrors, getDocComment, getModifiers, getPosition, getSimpleNameClassType getSuperclass()
Collection<ConstructorDeclaration> getConstructors()
DeclarationFilterCollection<MethodDeclaration> getMethods()
getMethods in interface TypeDeclarationDeclarationFilterCopyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.