Top Description Interfaces Classes Enums
module java.compiler

Package 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.

Since
1.6
Java Language Specification
4.1 The Kinds of Types and Values, 4.2 Primitive Types and Values, 4.3 Reference Types and Values, 4.4 Type Variables, 4.5 Parameterized Types, 4.8 Raw Types, 4.9 Intersection Types, 10.1 Array Types
See Also
javax.lang.model.util.Types, Elements and Types, JSR 269: Pluggable Annotation Processing API

Interface Summary

Modifier and TypeInterface and Description
public interface
ArrayType

Represents an array type.

public interface
DeclaredType

Represents a declared type, either a class type or an interface type.

public interface
ErrorType

Represents a class or interface type that cannot be properly modeled.

public interface
ExecutableType

Represents the type of an executable.

public interface
IntersectionType

Represents an intersection type.

public interface
NoType

A pseudo-type used where no actual type is appropriate.

public interface
NullType

Represents the null type.

public interface
PrimitiveType

Represents a primitive type.

public interface
ReferenceType

Represents a reference type.

public interface
TypeMirror

Represents a type in the Java programming language.

public interface
TypeVariable

Represents a type variable.

public interface
TypeVisitor<
the return type of this visitor's methods. Use Void for visitors that do not need to return results.
R
,
the type of the additional parameter to this visitor's methods. Use Void for visitors that do not need an additional parameter.
P
>

A visitor of types, in the style of the visitor design pattern.

public interface
UnionType

Represents a union type.

public interface
WildcardType

Represents a wildcard type argument.

Class Summary

Modifier and TypeClass and Description
public class
MirroredTypeException

Thrown when an application attempts to access the Class object corresponding to a TypeMirror.

public class
MirroredTypesException

Thrown when an application attempts to access a sequence of Class objects each corresponding to a TypeMirror.

public class
UnknownTypeException

Indicates that an unknown kind of type was encountered.

Enum Summary

Modifier and TypeEnum and Description
public enum
TypeKind

The kind of a type mirror.