FieldElement (Java SE 25 & JDK 25)
Description: declaration: module: java.base, package: java.lang.classfile, interface: FieldElement
Keywords: java.lang.classfile.FieldElement interface

# Interface FieldElement

All Superinterfaces:
  `ClassFileElement`

All Known Subinterfaces:
  `AccessFlags, ConstantValueAttribute, DeprecatedAttribute, RuntimeInvisibleAnnotationsAttribute, RuntimeInvisibleTypeAnnotationsAttribute, RuntimeVisibleAnnotationsAttribute, RuntimeVisibleTypeAnnotationsAttribute, SignatureAttribute, SyntheticAttribute, UnknownAttribute`

All Known Implementing Classes:
  `CustomAttribute`

public sealed interface FieldElement extends ClassFileElement permits AccessFlags, CustomAttribute<T>, ConstantValueAttribute, DeprecatedAttribute, RuntimeInvisibleAnnotationsAttribute, RuntimeInvisibleTypeAnnotationsAttribute, RuntimeVisibleAnnotationsAttribute, RuntimeVisibleTypeAnnotationsAttribute, SignatureAttribute, SyntheticAttribute, UnknownAttribute
Marker interface for a member element of a `FieldModel`. Such an element can appear when traversing a `FieldModel` unless otherwise specified, be supplied to a `FieldBuilder`, and be processed by a `FieldTransform`.

`AccessFlags` is the only member element of a field that appear exactly once during the traversal of a `FieldModel`.

Sealed Class Hierarchy Graph:
Since:
  24
See Also:
  - Membership Elements
  - `ClassElement`
  - `MethodElement`
  - `CodeElement`