javax.lang.model.type |
Interfaces used to model Java programming language types.
Unless otherwise specified in a particular implementation, the
collections returned by methods in this package should be expected
to be unmodifiable by the caller and unsafe for concurrent access.
Unless otherwise specified, methods in this package will throw
a
NullPointerException if given a
null argument.
author: Joseph D. |
Java Source File Name | Type | Comment |
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. |
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
TypeElement represents a class or interface
element, a
DeclaredType represents a class
or interface type, the latter being a use
(or invocation) of the former.
See
TypeElement for more on this distinction.
The supertypes (both class and interface types) of a declared
type may be found using the
Types.directSupertypes(TypeMirror) method. |
ErrorType.java | Interface | Represents a class or interface type that cannot be properly modeled.
This may be the result of a processing error,
such as a missing class file or erroneous source code.
Most queries for
information derived from such a type (such as its members or its
supertype) will not, in general, return meaningful results.
author: Joseph D. |
ExecutableType.java | Interface | Represents the type of an executable. |
MirroredTypeException.java | Class | Thrown when an application attempts to access the
Class object
corresponding to a
TypeMirror .
author: Joseph D. |
MirroredTypesException.java | Class | Thrown when an application attempts to access a sequence of
Class objects each corresponding to a
TypeMirror .
author: Joseph D. |
NoType.java | Interface | A pseudo-type used where no actual type is appropriate.
The kinds of
NoType are:
-
TypeKind.VOID VOID - corresponds to the keyword
void .
-
TypeKind.PACKAGE PACKAGE - the pseudo-type of a package element.
-
TypeKind.NONE NONE - used in other cases
where no actual type is appropriate; for example, the superclass
of
java.lang.Object .
author: Joseph D. |
NullType.java | Interface | Represents the null type.
This is the type of the expression
null ,
author: Joseph D. |
package-info.java | | |
PrimitiveType.java | Interface | Represents a primitive type. |
ReferenceType.java | Interface | Represents a reference type.
These include class and interface types, array types, type variables,
and the null type.
author: Joseph D. |
TypeKind.java | enum | The kind of a type mirror.
Note that it is possible additional type kinds will be added to
accommodate new, currently unknown, language structures added to
future versions of the Java™ programming language.
author: Joseph D. |
TypeMirror.java | Interface | Represents a type in the Java programming language.
Types include primitive types, declared types (class and interface types),
array types, type variables, and the null type.
Also represented are wildcard type arguments,
the signature and return types of executables,
and pseudo-types corresponding to packages and to the keyword
void .
Types should be compared using the utility methods in
Types . |
TypeVariable.java | Interface | Represents a type variable.
A type variable may be explicitly declared by a
of a
type, method, or constructor.
A type variable may also be declared implicitly, as by
the capture conversion of a wildcard type argument
(see chapter 5 of The Java Language Specification, Third
Edition).
author: Joseph D. |
TypeVisitor.java | Interface | A visitor of types, in the style of the
visitor design pattern. |
UnknownTypeException.java | Class | Indicates that an unknown kind of type was encountered. |
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. |