Interface DeprecatedAttribute
- All Superinterfaces:
AttributePREVIEW<DeprecatedAttributePREVIEW>,ClassElementPREVIEW,ClassFileElementPREVIEW,FieldElementPREVIEW,MethodElementPREVIEW,WritableElementPREVIEW<DeprecatedAttributePREVIEW>
public sealed interface DeprecatedAttribute
extends AttributePREVIEW<DeprecatedAttributePREVIEW>, ClassElementPREVIEW, MethodElementPREVIEW, FieldElementPREVIEW
DeprecatedAttribute 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
Deprecated attribute 4.7.15, which can appear on
classes, methods, and fields. Delivered as a ClassElementPREVIEW,
MethodElementPREVIEW, or FieldElementPREVIEW when traversing the elements
of a corresponding model.
The attribute permits multiple instances in a given location.
- Since:
- 22
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic DeprecatedAttributePREVIEWof()Returns aDeprecatedattribute.Methods declared in interface java.lang.classfile.AttributePREVIEW
attributeMapper, attributeNameMethods declared in interface java.lang.classfile.WritableElementPREVIEW
writeTo
-
Method Details
-
of
Returns aDeprecatedattribute.- Returns:
- a
Deprecatedattribute
-
DeprecatedAttributewhen preview features are enabled.