✗
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
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
- ✓public abstract <R, P> R accept(javax.lang.model.type.TypeVisitor<R, P> arg0, P arg1)
- ✓public abstract boolean equals(java.lang.Object arg0)
- ✓public abstract <A> A getAnnotation(java.lang.Class<A> arg0)
- ✓public abstract java.util.List<? extends javax.lang.model.element.AnnotationMirror> getAnnotationMirrors()
- ✓public abstract <A> A[] getAnnotationsByType(java.lang.Class<A> arg0)
- ✓public abstract javax.lang.model.type.TypeKind getKind()
- ✗public abstract int hashCode()Comparing jdk-21-ga and jdk-22+36
hashCode
int hashCode()Obeys the general contract ofObject.hashCode. - ✓public abstract java.lang.String toString()
Summary
| Elements | Comments | Descriptions | Total | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed | ||
| TypeMirror | 8 | 8 | ||||||||
| hashCode() | 2 | 2 | ||||||||
| Total | 8 | 2 | 10 | |||||||