jdk-21-ga : jdk-22+36
Module java.compiler
Package javax.lang.model.type

Interface TypeMirror

public abstract interface TypeMirror
extends javax.lang.model.AnnotatedConstruct
Comparing jdk-21-ga and jdk-22+36
All Superinterfaces:
AnnotatedConstruct
All Known Subinterfaces:
ArrayType , DeclaredType , ErrorType , ExecutableType , IntersectionType , NoType , NullType , PrimitiveType , ReferenceType , TypeVariable , UnionType , WildcardType

public interface TypeMirror extends AnnotatedConstruct
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, modules, and the keyword void .

Types should be compared using the utility methods in Types . There is no guarantee that any particular type will always be represented by the same object.

To implement operations based on the class of an TypeMirror object, either use a visitor or use the result of the getKind() method. Using instanceof is not necessarily a reliable idiom for determining the effective class of an object in this modeling hierarchy since an implementation may choose to have a single object implement multiple TypeMirror subinterfaces.

See Java Language Specification:
Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-4.html#jls-4.1.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se22/html/jls-4.html#jls-4.1. Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-4.html#jls-4.1.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se22/html/jls-4.html#jls-4.1.4.1 The Kinds of Types and Values
Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-4.html#jls-4.2.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se22/html/jls-4.html#jls-4.2.4.2 Primitive Types and Values
Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-4.html#jls-4.3.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se22/html/jls-4.html#jls-4.3.4.3 Reference Types and Values
Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-4.html#jls-4.4.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se22/html/jls-4.html#jls-4.4.4.4 Type Variables
Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-4.html#jls-4.5.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se22/html/jls-4.html#jls-4.5.4.5 Parameterized Types
Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-4.html#jls-4.8.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se22/html/jls-4.html#jls-4.8.4.8 Raw Types
Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-4.html#jls-4.9.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se22/html/jls-4.html#jls-4.9.4.9 Intersection Types
Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-10.html#jls-10.1.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se22/html/jls-10.html#jls-10.1.10.1 Array Types
Since:
1.6
See Also:

Methods

Summary

Differences
Elements Comments Descriptions Total
Added Changed Removed Added Changed Removed Added Changed Removed
TypeMirror 8 8
hashCode() 2 2
Total 8 2 10