Uses of Interface java.lang.classfile.ClassElement (Java SE 23 & JDK 23)
Description: use: module: java.base, package: java.lang.classfile, interface: ClassElement

# Uses of Interface
java.lang.classfile.ClassElement

Packages that use ClassElementPREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.attribute
Provides interfaces describing classfile attributes for the `java.lang.classfile`PREVIEW library.

- ## Uses of ClassElementPREVIEW in java.lang.classfilePREVIEW

  Subinterfaces of ClassElementPREVIEW in java.lang.classfilePREVIEW
  Modifier and Type
  Interface
  Description
  `interface`
  `AccessFlagsPREVIEW`
  Preview.
  Models the access flags for a class, method, or field.
  `interface`
  `ClassFileVersionPREVIEW`
  Preview.
  Models the classfile version information for a class.
  `interface`
  `FieldModelPREVIEW`
  Preview.
  Models a field.
  `interface`
  `InterfacesPREVIEW`
  Preview.
  Models the interfaces of a class.
  `interface`
  `MethodModelPREVIEW`
  Preview.
  Models a method.
  `interface`
  `SuperclassPREVIEW`
  Preview.
  Models the superclass of a class.
  Classes in java.lang.classfilePREVIEW that implement ClassElementPREVIEW
  Modifier and Type
  Class
  Description
  `class`
  `CustomAttributePREVIEW<T extends CustomAttributePREVIEW<T>>`
  Preview.
  Models a non-standard attribute of a classfile.
  Subinterfaces with type arguments of type ClassElementPREVIEW in java.lang.classfilePREVIEW
  Modifier and Type
  Interface
  Description
  `interface`
  `ClassBuilderPREVIEW`
  Preview.
  A builder for classfiles.
  `interface`
  `ClassModelPREVIEW`
  Preview.
  Models a classfile.
  `interface`
  `ClassTransformPREVIEW`
  Preview.
  A transformation on streams of `ClassElement`PREVIEW.
  Methods in java.lang.classfilePREVIEW that return types with arguments of type ClassElementPREVIEW
  Modifier and Type
  Method
  Description
  `default ClassFileTransform.ResolvedTransformPREVIEW<ClassElementPREVIEW>`
  ClassTransform.`resolve(ClassBuilderPREVIEW builder)`
  Method parameters in java.lang.classfilePREVIEW with type arguments of type ClassElementPREVIEW
  Modifier and Type
  Method
  Description
  `static ClassTransformPREVIEW`
  ClassTransform.`dropping(Predicate<ClassElementPREVIEW> filter)`
  Create a class transform that passes each element through to the builder, except for those that the supplied `Predicate` is true for.

- ## Uses of ClassElementPREVIEW in java.lang.classfile.attributePREVIEW

  Subinterfaces of ClassElementPREVIEW in java.lang.classfile.attributePREVIEW
  Modifier and Type
  Interface
  Description
  `interface`
  `CompilationIDAttributePREVIEW`
  Preview.
  Models the `CompilationID` attribute (@@@ need reference), which can appear on classes and records the compilation time of the class.
  `interface`
  `DeprecatedAttributePREVIEW`
  Preview.
  Models the `Deprecated` attribute 4.7.15, which can appear on classes, methods, and fields.
  `interface`
  `EnclosingMethodAttributePREVIEW`
  Preview.
  Models the `EnclosingMethod` attribute 4.7.7, which can appear on classes, and indicates that the class is a local or anonymous class.
  `interface`
  `InnerClassesAttributePREVIEW`
  Preview.
  Models the `InnerClasses` attribute 4.7.6, which can appear on classes, and records which classes referenced by this classfile are inner classes.
  `interface`
  `ModuleAttributePREVIEW`
  Preview.
  Models the `Module` attribute 4.7.25, which can appear on classes that represent module descriptors.
  `interface`
  `ModuleHashesAttributePREVIEW`
  Preview.
  Models the `ModuleHashes` attribute, which can appear on classes that represent module descriptors.
  `interface`
  `ModuleMainClassAttributePREVIEW`
  Preview.
  Models the `ModuleMainClass` attribute 4.7.27, which can appear on classes that represent module descriptors.
  `interface`
  `ModulePackagesAttributePREVIEW`
  Preview.
  Models the `ModulePackages` attribute 4.7.26, which can appear on classes that represent module descriptors.
  `interface`
  `ModuleResolutionAttributePREVIEW`
  Preview.
  Models the `ModuleResolution` attribute, which can appear on classes that represent module descriptors.
  `interface`
  `ModuleTargetAttributePREVIEW`
  Preview.
  Models the `ModuleTarget` attribute, which can appear on classes that represent module descriptors.
  `interface`
  `NestHostAttributePREVIEW`
  Preview.
  Models the `NestHost` attribute 4.7.28, which can appear on classes to indicate that this class is a member of a nest.
  `interface`
  `NestMembersAttributePREVIEW`
  Preview.
  Models the `NestMembers` attribute 4.7.29, which can appear on classes to indicate that this class is the host of a nest.
  `interface`
  `PermittedSubclassesAttributePREVIEW`
  Preview.
  Models the `PermittedSubclasses` attribute 4.7.31, which can appear on classes to indicate which classes may extend this class.
  `interface`
  `RecordAttributePREVIEW`
  Preview.
  Models the `Record` attribute 4.7.30, which can appear on classes to indicate that this class is a record class.
  `interface`
  `RuntimeInvisibleAnnotationsAttributePREVIEW`
  Preview.
  Models the `RuntimeInvisibleAnnotations` attribute 4.7.17, which can appear on classes, methods, and fields.
  `interface`
  `RuntimeInvisibleTypeAnnotationsAttributePREVIEW`
  Preview.
  Models the `RuntimeInvisibleTypeAnnotations` attribute 4.7.21, which can appear on classes, methods, fields, and code attributes.
  `interface`
  `RuntimeVisibleAnnotationsAttributePREVIEW`
  Preview.
  Models the `RuntimeVisibleAnnotations` attribute 4.7.16, which can appear on classes, methods, and fields.
  `interface`
  `RuntimeVisibleTypeAnnotationsAttributePREVIEW`
  Preview.
  Models the `RuntimeVisibleTypeAnnotations` attribute 4.7.20, which can appear on classes, methods, fields, and code attributes.
  `interface`
  `SignatureAttributePREVIEW`
  Preview.
  Models the `Signature` attribute 4.7.9, which can appear on classes, methods, or fields.
  `interface`
  `SourceDebugExtensionAttributePREVIEW`
  Preview.
  Models the `SourceDebugExtension` attribute.
  `interface`
  `SourceFileAttributePREVIEW`
  Preview.
  Models the `SourceFile` attribute 4.7.10, which can appear on classes.
  `interface`
  `SourceIDAttributePREVIEW`
  Preview.
  Models the `SourceID` attribute, which can appear on classes.
  `interface`
  `SyntheticAttributePREVIEW`
  Preview.
  Models the `Synthetic` attribute 4.7.8, which can appear on classes, methods, and fields.
  `interface`
  `UnknownAttributePREVIEW`
  Preview.
  Models an unknown attribute on a class, method, or field.