Module java.base

Interface AttributeMapper<A>

Type Parameters:
A - the attribute type

public interface AttributeMapper<A>
AttributeMapper is a preview API of the Java platform.
Programs can only use AttributeMapper when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Bidirectional mapper between the classfile representation of an attribute and how that attribute is modeled in the API. The attribute mapper is used to parse the classfile representation into a model, and to write the model representation back to a classfile. For each standard attribute, there is a predefined attribute mapper defined in AttributesPREVIEW. For nonstandard attributes, clients can define their own AttributeMapperPREVIEW. Classes that model nonstandard attributes should extend CustomAttributePREVIEW.