com.sun.mirror.declaration |
Interfaces used to model program element declarations.
A declaration is represented by the appropriate subinterface of
{@link com.sun.mirror.declaration.Declaration},
and an annotation is represented as an
{@link com.sun.mirror.declaration.AnnotationMirror}.
Note that the apt tool and its associated APIs may be
changed or superseded in future j2se releases.
@since 1.5
|
Java Source File Name | Type | Comment |
AnnotationMirror.java | Interface | Represents an annotation. |
AnnotationTypeDeclaration.java | Interface | Represents the declaration of an annotation type.
author: Joseph D. |
AnnotationTypeElementDeclaration.java | Interface | Represents an element of an annotation type. |
AnnotationValue.java | Interface | Represents a value of an annotation type element.
author: Joseph D. |
ClassDeclaration.java | Interface | 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
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.
com.sun.mirror.util.DeclarationFilter provides a simple way to select just the items of interest
when a method returns a collection of declarations.
author: Joseph D. |
ConstructorDeclaration.java | Interface | Represents a constructor of a class or interface. |
Declaration.java | Interface | Represents the declaration of a program element such as a package,
class, or method. |
EnumConstantDeclaration.java | Interface | Represents an enum constant declaration.
author: Joseph D. |
EnumDeclaration.java | Interface | Represents the declaration of an enum type.
author: Joseph D. |
ExecutableDeclaration.java | Interface | Represents a method or constructor of a class or interface.
author: Joseph D. |
FieldDeclaration.java | Interface | Represents a field of a type declaration.
author: Joseph D. |
InterfaceDeclaration.java | Interface | Represents the declaration of an interface.
Provides access to information about the interface and its members.
Note that an
is
a kind of interface.
While an InterfaceDeclaration represents the
declaration of an interface, an
InterfaceType represents an interface type.
See
TypeDeclaration for more on this distinction.
author: Joseph D. |
MemberDeclaration.java | Interface | Represents a declaration that may be a member or constructor of a declared
type. |
MethodDeclaration.java | Interface | Represents a method of a class or interface.
Note that an
is a kind of method.
author: Joseph D. |
Modifier.java | enum | Represents a modifier on the declaration of a program element such
as a class, method, or field.
Not all modifiers are applicable to all kinds of declarations.
When two or more modifiers appear in the source code of a declaration,
then it is customary, though not required, that they appear in the same
order as the constants listed in the detail section below.
author: Joseph D. |
PackageDeclaration.java | Interface | Represents the declaration of a package. |
ParameterDeclaration.java | Interface | Represents a formal parameter of a method or constructor.
author: Joseph D. |
TypeDeclaration.java | Interface | Represents the declaration of a class or interface.
Provides access to information about the type and its members.
Note that an
is a kind of class,
and an
is
a kind of interface.
While a TypeDeclaration represents the declaration
of a class or interface, a
DeclaredType represents a class
or interface type, the latter being a use
(or invocation) of the former.
The distinction is most apparent with generic types,
for which a single declaration can define a whole
family of types. |
TypeParameterDeclaration.java | Interface | Represents a formal type parameter of a generic type, method,
or constructor declaration.
A type parameter declares a
TypeVariable .
author: Joseph D. |