Module java.base
Package java.lang.classfile

# Interface AttributedElement

≠
public abstract sealed interface AttributedElement
extends java.lang.classfile.ClassFileElement
permits java.lang.classfile.ClassModel, java.lang.classfile.CodeModel, java.lang.classfile.FieldModel, java.lang.classfile.MethodModel, java.lang.classfile.attribute.RecordComponentInfo, jdk.internal.classfile.impl.AbstractUnboundModel<E>
Comparing master and cf

All Superinterfaces:
  `ClassFileElement`

All Known Subinterfaces:
  `ClassModel, CodeAttribute, CodeModel, FieldModel, MethodModel, RecordComponentInfo`

public sealed interface AttributedElement extends ClassFileElement permits ClassModel, CodeModel, FieldModel, MethodModel, RecordComponentInfo (not exhaustive)
A `ClassFileElement` describing a `class` file structure that has attributes, such as a `class` file, a field, a method, a `Code` attribute, or a record component.

Moved to a paragraph. Unless otherwise specified, most attributes that can be discovered in a `CompoundElement` implements the corresponding membership subinterface of `ClassFileElement` , and can be sent to a `ClassFileBuilder` to be integrated into the built structure.

See Java Virtual Machine Specification:
  4.7 Attributes
Sealed Class Hierarchy Graph:
Since:
  24
See Also:
  Moved to a definition list with class notes.Moved to a definition.Moved to an unordered list with class tag-list.
  - `java.lang.classfile.attribute`

## Methods

- =
  public abstract java.util.List<java.lang.classfile.Attribute<?>> attributes()
- =
  public default <T> java.util.Optional<T> findAttribute(java.lang.classfile.AttributeMapper<T> arg0)
- =
  public default <T> java.util.List<T> findAttributes(java.lang.classfile.AttributeMapper<T> arg0)

## Summary

Differences
| Elements | Comments | Descriptions | Total
Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed
--- | --- | --- | --- | --- | --- | --- | --- | ---
AttributedElement |  |  |  |  |  |  | 9 | 1 |  | 10
Total |  |  |  |  |  |  | 9 | 1 |  | 10