Interface AttributedElement
- All Superinterfaces:
ClassFileElementPREVIEW
- All Known Subinterfaces:
ClassModelPREVIEW
,CodeAttributePREVIEW
,CodeModelPREVIEW
,FieldModelPREVIEW
,MethodModelPREVIEW
,RecordComponentInfoPREVIEW
public sealed interface AttributedElement
extends ClassFileElementPREVIEW
permits ClassModelPREVIEW, CodeModelPREVIEW, FieldModelPREVIEW, MethodModelPREVIEW, RecordComponentInfoPREVIEW (not exhaustive)
AttributedElement
is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
A
ClassFileElement
PREVIEW describing an entity that has attributes, such
as a class, field, method, code attribute, or record component.- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionReturns the attributes of this element.findAttribute
(AttributeMapperPREVIEW<T> attr) Finds an attribute by name.findAttributes
(AttributeMapperPREVIEW<T> attr) Finds one or more attributes by name.
-
Method Details
-
attributes
-
findAttribute
-
findAttributes
-
AttributedElement
when preview features are enabled.