Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Mirror API DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
TypeElement
.
@Deprecated public interface ClassDeclaration extends TypeDeclaration
Represents the declaration of a class.
For the declaration of an interface, see 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()
Deprecated. Returns the constructors of this class. |
Collection<MethodDeclaration> |
getMethods()
Deprecated. Returns the methods that are directly declared by this class or interface. |
ClassType |
getSuperclass()
Deprecated. Returns the class type directly extended by this class. |
Methods inherited from interface com.sun.mirror.declaration.TypeDeclaration |
---|
getFields, getFormalTypeParameters, getNestedTypes, getPackage, getQualifiedName, getSuperinterfaces |
Methods inherited from interface com.sun.mirror.declaration.MemberDeclaration |
---|
getDeclaringType |
Methods inherited from interface com.sun.mirror.declaration.Declaration |
---|
accept, equals, getAnnotation, getAnnotationMirrors, getDocComment, getModifiers, getPosition, getSimpleName |
Method Detail |
---|
ClassType getSuperclass()
Collection<ConstructorDeclaration> getConstructors()
DeclarationFilter
Collection<MethodDeclaration> getMethods()
getMethods
in interface TypeDeclaration
DeclarationFilter
|
Mirror API DRAFT ea-b118 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2004, 2010, Oracle Corporation. All rights reserved.