com.sun.mirror.type |
Interfaces used to model types.
A type is represented by the appropriate subinterface of
{@link com.sun.mirror.type.TypeMirror}.
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 |
AnnotationType.java | Interface | Represents an annotation type.
author: Joseph D. |
ArrayType.java | Interface | Represents an array type.
A multidimensional array type is represented as an array type
whose component type is also an array type.
author: Joseph D. |
ClassType.java | Interface | Represents a class type.
Interface types are represented separately by
InterfaceType .
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.
author: Joseph D. |
DeclaredType.java | Interface | Represents a declared type, either a class type or an interface type.
This includes parameterized types such as
java.util.Set as well as raw types.
While a TypeDeclaration represents the declaration
of a class or interface, a DeclaredType represents a class
or interface type, the latter being a use of the former.
See
TypeDeclaration for more on this distinction.
A DeclaredType may represent a type
for which details (declaration, supertypes, etc.) are unknown.
This may be the result of a processing error, such as a missing class file,
and is indicated by
DeclaredType.getDeclaration() returning null.
Other method invocations on such an unknown type will not, in general,
return meaningful results.
author: Joseph D. |
EnumType.java | Interface | Represents an enum type.
author: Joseph D. |
InterfaceType.java | Interface | Represents an interface type.
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. |
MirroredTypeException.java | Class | Thrown when an application attempts to access the
Class object
corresponding to a
TypeMirror . |
MirroredTypesException.java | Class | Thrown when an application attempts to access a sequence of
Class objects each corresponding to a
TypeMirror . |
PrimitiveType.java | Interface | Represents a primitive type. |
ReferenceType.java | Interface | Represents a reference type.
These include class and interface types, array types, and type variables.
author: Joseph D. |
TypeMirror.java | Interface | Represents a type in the Java programming language.
Types include primitive types, class and interface types, array
types, and type variables. |
TypeVariable.java | Interface | Represents a type variable. |
VoidType.java | Interface | A pseudo-type representing the type of void.
author: Joseph D. |
WildcardType.java | Interface | Represents a wildcard type argument.
Examples include:
?
? extends Number
? super T
A wildcard may have its upper bound explicitly set by an
extends clause, its lower bound explicitly set by a
super clause, or neither (but not both).
author: Joseph D. |