✗
public abstract interface Element
extends javax.lang.model.AnnotatedConstruct
Methods
- ✓public abstract <R, P> R accept(javax.lang.model.element.ElementVisitor<R, P> arg0, P arg1)
- ✗public abstract javax.lang.model.type.TypeMirror asType()Comparing jdk-21-ga and jdk-22+36
asType
TypeMirror asType()Returns the type defined by this element.- Returns:
- the type defined by this element
- See Also:
- ✓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 java.util.List<? extends javax.lang.model.element.Element> getEnclosedElements()Comparing jdk-21-ga and jdk-22+36
getEnclosedElements
Returns the elements that are, loosely speaking, directly enclosed by this element. A class or interface is considered to enclose the fields, methods, constructors, record components, and member classes and interfaces that it directly declares. A package encloses the top-level classes and interfaces within it, but is not considered to enclose subpackages. A module encloses packages within it. Enclosed elements may include implicitly declared mandated elements. Other kinds of elements are not currently considered to enclose any elements; however, that may change as this API or the programming language evolves.- API Note:
- Elements of certain kinds can be isolated using methods in
ElementFilter. - Returns:
- the enclosed elements, or an empty list if none
- See Java Language Specification:
- Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-8.html#jls-8.8.9.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se22/html/jls-8.html#jls-8.8.9. Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-8.html#jls-8.8.9.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se22/html/jls-8.html#jls-8.8.9.8.8.9 Default Constructor
Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-8.html#jls-8.9.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se22/html/jls-8.html#jls-8.9.8.9 Enum Classes
Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-8.html#jls-8.10.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se22/html/jls-8.html#jls-8.10.8.10 Record Classes
- See Also:
- ✓public abstract javax.lang.model.element.Element getEnclosingElement()
- ✓public abstract javax.lang.model.element.ElementKind getKind()
- ✗public abstract java.util.Set<javax.lang.model.element.Modifier> getModifiers()Comparing jdk-21-ga and jdk-22+36
getModifiers
Returns the modifiers of this element, excluding annotations. Implicit modifiers, such as thepublicandstaticmodifiers of interface members (JLS section Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-9.html#jls-9.3.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se22/html/jls-9.html#jls-9.3.9.3), are included.- Returns:
- the modifiers of this element, or an empty set if there are none
- ✓public abstract javax.lang.model.element.Name getSimpleName()
- ✗public abstract int hashCode()Comparing jdk-21-ga and jdk-22+36
hashCode
int hashCode()Obeys the general contract ofObject.hashCode.
Summary
| Elements | Comments | Descriptions | Total | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed | ||
| asType() | 4 | 13 | 17 | |||||||
| getEnclosedElements() | 3 | 3 | ||||||||
| getModifiers() | 1 | 1 | ||||||||
| hashCode() | 2 | 2 | ||||||||
| Total | 4 | 17 | 2 | 23 | ||||||