APIdia Launch Partner
Top Description Methods
java.lang.classfile.attribute

public sealed Interface UnknownAttribute

extends Attribute<UnknownAttribute>, ClassElement, MethodElement, FieldElement, CodeElement
permits BoundUnknownAttribute
Known Direct Implementers
jdk.internal.classfile.impl.BoundAttribute.BoundUnknownAttribute
Imports
java.lang.classfile.*, .AttributeMapper.AttributeStability, jdk.internal.classfile.impl.BoundAttribute

Models an unknown attribute read from a class file. An attribute is unknown if it is not recognized by one of the mappers in Attributes and is not recognized by the ClassFile.AttributesProcessingOption.

An unknown attribute may appear anywhere where an attribute may appear, and has an unknown data dependency.

Since
24
See Also
CustomAttribute

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