Top Description Methods
java.lang.classfile.attribute

public sealed Interface UnknownAttribute

extends Attribute<UnknownAttribute>, ClassElement, MethodElement, FieldElement
Known Direct Implementers
jdk.internal.classfile.impl.BoundAttribute.BoundUnknownAttribute
Annotations
@PreviewFeature
feature:CLASSFILE_API
Imports
java.lang.classfile.Attribute, .ClassElement, .FieldElement, .MethodElement, jdk.internal.classfile.impl.BoundAttribute, jdk.internal.javac.PreviewFeature

Models an unknown attribute on a class, method, or field.
Since
22

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the uninterpreted contents of the attribute payload
contents
()

Returns the uninterpreted contents of the attribute payload.

Inherited from java.lang.classfile.Attribute:
attributeMapperattributeName

Method Detail

contentsback to summary
public byte[] contents()

Returns the uninterpreted contents of the attribute payload.

Returns:byte[]

the uninterpreted contents of the attribute payload