Module java.base

Interface ClassModel

All Superinterfaces:
AttributedElementPREVIEW, ClassFileElementPREVIEW, CompoundElementPREVIEW<ClassElementPREVIEW>, Iterable<ClassElementPREVIEW>

public sealed interface ClassModel extends CompoundElementPREVIEW<ClassElementPREVIEW>, AttributedElementPREVIEW
ClassModel is a preview API of the Java platform.
Programs can only use ClassModel when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models a classfile. The contents of the classfile can be traversed via a streaming view (e.g., CompoundElement.elements()PREVIEW), or via random access (e.g., flags()), or by freely mixing the two.
Since:
22