Top Description
java.lang.classfile

public sealed Interface ClassFileElement

Known Direct Subinterfaces
java.lang.classfile.CodeElement, java.lang.classfile.CompoundElement, java.lang.classfile.FieldElement, java.lang.classfile.MethodElement, java.lang.classfile.WritableElement, java.lang.classfile.AttributedElement, java.lang.classfile.ClassElement
Annotations
@PreviewFeature
feature:CLASSFILE_API
Imports
jdk.internal.javac.PreviewFeature

Immutable model for a portion of (or the entirety of) a classfile. Elements that model parts of the classfile that have attributes will implement AttributedElement; elements that model complex parts of the classfile that themselves contain their own child elements will implement CompoundElement. Elements specific to various locations in the classfile will implement ClassElement, MethodElement, etc.
Since
22