Interface UnknownAttribute

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

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 Summary

    Modifier and Type
    Method
    Description
    byte[]
    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