Module java.base

Class CustomAttribute<T extends CustomAttributePREVIEW<T>>

Type Parameters:
T - the custom attribute type
All Implemented Interfaces:
AttributePREVIEW<T>, ClassElementPREVIEW, ClassFileElementPREVIEW, CodeElementPREVIEW, FieldElementPREVIEW, MethodElementPREVIEW, WritableElementPREVIEW<T>

public abstract non-sealed class CustomAttribute<T extends CustomAttributePREVIEW<T>> extends Object implements AttributePREVIEW<T>, CodeElementPREVIEW, ClassElementPREVIEW, MethodElementPREVIEW, FieldElementPREVIEW
CustomAttribute is a preview API of the Java platform.
Programs can only use CustomAttribute when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models a non-standard attribute of a classfile. Clients should extend this class to provide an implementation class for non-standard attributes, and provide an AttributeMapperPREVIEW to mediate between the classfile format and the CustomAttributePREVIEW representation.