Interface SyntheticAttribute
- All Superinterfaces:
AttributePREVIEW<SyntheticAttributePREVIEW>
,ClassElementPREVIEW
,ClassFileElementPREVIEW
,FieldElementPREVIEW
,MethodElementPREVIEW
,WritableElementPREVIEW<SyntheticAttributePREVIEW>
public sealed interface SyntheticAttribute
extends AttributePREVIEW<SyntheticAttributePREVIEW>, ClassElementPREVIEW, MethodElementPREVIEW, FieldElementPREVIEW
SyntheticAttribute
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.
Models the
Synthetic
attribute 4.7.8, which can appear on
classes, methods, and fields. Delivered as a ClassElement
PREVIEW,
MethodElement
PREVIEW, or FieldElement
PREVIEW when traversing the elements
of a corresponding model.
The attribute permits multiple instances in a given location.
- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionstatic SyntheticAttributePREVIEW
of()
Returns aSynthetic
attribute.Methods declared in interface java.lang.classfile.AttributePREVIEW
attributeMapper, attributeName
Methods declared in interface java.lang.classfile.WritableElementPREVIEW
writeTo
-
Method Details
-
of
-
SyntheticAttribute
when preview features are enabled.