Interface UnknownAttribute
- All Superinterfaces:
AttributePREVIEW<UnknownAttributePREVIEW>
,ClassElementPREVIEW
,ClassFileElementPREVIEW
,FieldElementPREVIEW
,MethodElementPREVIEW
public sealed interface UnknownAttribute
extends AttributePREVIEW<UnknownAttributePREVIEW>, ClassElementPREVIEW, MethodElementPREVIEW, FieldElementPREVIEW
UnknownAttribute
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 an unknown attribute on a class, method, or field.
- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
contents()
Returns the uninterpreted contents of the attribute payload.Methods declared in interface java.lang.classfile.AttributePREVIEW
attributeMapper, attributeName
-
Method Details
-
contents
byte[] contents()Returns the uninterpreted contents of the attribute payload.- Returns:
- the uninterpreted contents of the attribute payload
-
UnknownAttribute
when preview features are enabled.