class file format.
Attributes exist on certain class file structures modeled by AttributedElement, which provides basic read access to the attributes.
This sealed interface hierarchy includes attributes predefined in the JVMS
and JDK-specific nonstandard attributes. Their mappers are available in Attributes. Two special subtypes of Attribute are CustomAttribute, which all user-defined attributes
should extend from, and UnknownAttribute, representing attributes
read from class file but are not recognized by the ClassFile..
Attributes are read through AttributedElement or element traversal of
a CompoundElement; they are written through ClassFileBuilder.
See Reading Attributes
and Writing Attributes
for more details.
java.lang.classfile.attribute , AttributeMapper, AttributedElement, CustomAttribute, UnknownAttribute
| Modifier and Type | Method and Description |
|---|---|
| public AttributeMapper | Returns: theAttributeMapper associated with this attributeReturns the |
| public Utf8Entry |
| attributeMapper | back to summary |
|---|---|
| public AttributeMapper Returns the
| |
| attributeName | back to summary |
|---|---|
| public Utf8Entry attributeName() Returns the name of the attribute. The string value of the name is equivalent to the
value of
If this attribute is read from a
| |