Interface UnknownAttribute

All Superinterfaces:
AttributePREVIEW<UnknownAttributePREVIEW>, ClassElementPREVIEW, ClassFileElementPREVIEW, FieldElementPREVIEW, MethodElementPREVIEW, WritableElementPREVIEW<UnknownAttributePREVIEW>

UnknownAttribute is a preview API of the Java platform.
Programs can only use UnknownAttribute when preview features are enabled.
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 Details

    • contents

      byte[] contents()
      Returns the uninterpreted contents of the attribute payload.
      Returns:
      the uninterpreted contents of the attribute payload