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

# Uses of Interface
java.lang.classfile.ClassTransform

Packages that use ClassTransformPREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.components
Provides specific components, transformations, and tools built on top of the `java.lang.classfile`PREVIEW library.

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

  Fields in java.lang.classfilePREVIEW declared as ClassTransformPREVIEW
  Modifier and Type
  Field
  Description
  `static final ClassTransformPREVIEW`
  ClassTransform.`ACCEPT_ALL`
  A class transform that sends all elements to the builder.
  Methods in java.lang.classfilePREVIEW that return ClassTransformPREVIEW
  Modifier and Type
  Method
  Description
  `default ClassTransformPREVIEW`
  ClassTransform.`andThen(ClassTransformPREVIEW t)`
  `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.
  `static ClassTransformPREVIEW`
  ClassTransform.`endHandler(Consumer<ClassBuilderPREVIEW> finisher)`
  Create a class transform that passes each element through to the builder, and calls the specified function when transformation is complete.
  `static ClassTransformPREVIEW`
  ClassTransform.`ofStateful(Supplier<ClassTransformPREVIEW> supplier)`
  Create a stateful class transform from a `Supplier`.
  `static ClassTransformPREVIEW`
  ClassTransform.`transformingFields(FieldTransformPREVIEW xform)`
  Create a class transform that transforms `FieldModel`PREVIEW elements with the supplied field transform.
  `static ClassTransformPREVIEW`
  ClassTransform.`transformingMethodBodies(CodeTransformPREVIEW xform)`
  Create a class transform that transforms the `CodeAttribute`PREVIEW (method body) of `MethodModel`PREVIEW elements with the supplied code transform.
  `static ClassTransformPREVIEW`
  ClassTransform.`transformingMethodBodies(Predicate<MethodModelPREVIEW> filter, CodeTransformPREVIEW xform)`
  Create a class transform that transforms the `CodeAttribute`PREVIEW (method body) of `MethodModel`PREVIEW elements with the supplied code transform.
  `static ClassTransformPREVIEW`
  ClassTransform.`transformingMethods(MethodTransformPREVIEW xform)`
  Create a class transform that transforms `MethodModel`PREVIEW elements with the supplied method transform.
  `static ClassTransformPREVIEW`
  ClassTransform.`transformingMethods(Predicate<MethodModelPREVIEW> filter, MethodTransformPREVIEW xform)`
  Create a class transform that transforms `MethodModel`PREVIEW elements with the supplied method transform.
  Methods in java.lang.classfilePREVIEW with parameters of type ClassTransformPREVIEW
  Modifier and Type
  Method
  Description
  `default ClassTransformPREVIEW`
  ClassTransform.`andThen(ClassTransformPREVIEW t)`
  `default byte[]`
  ClassFile.`transform(ClassModelPREVIEW model, ClassTransformPREVIEW transform)`
  Transform one classfile into a new classfile with the aid of a `ClassTransform`PREVIEW.
  `byte[]`
  ClassFile.`transform(ClassModelPREVIEW model, ClassEntryPREVIEW newClassName, ClassTransformPREVIEW transform)`
  Transform one classfile into a new classfile with the aid of a `ClassTransform`PREVIEW.
  `default byte[]`
  ClassFile.`transform(ClassModelPREVIEW model, ClassDesc newClassName, ClassTransformPREVIEW transform)`
  Transform one classfile into a new classfile with the aid of a `ClassTransform`PREVIEW.
  Method parameters in java.lang.classfilePREVIEW with type arguments of type ClassTransformPREVIEW
  Modifier and Type
  Method
  Description
  `static ClassTransformPREVIEW`
  ClassTransform.`ofStateful(Supplier<ClassTransformPREVIEW> supplier)`
  Create a stateful class transform from a `Supplier`.

- ## Uses of ClassTransformPREVIEW in java.lang.classfile.componentsPREVIEW

  Subinterfaces of ClassTransformPREVIEW in java.lang.classfile.componentsPREVIEW
  Modifier and Type
  Interface
  Description
  `interface`
  `ClassRemapperPREVIEW`
  Preview.
  `ClassRemapper` is a `ClassTransform`PREVIEW, `FieldTransform`PREVIEW, `MethodTransform`PREVIEW and `CodeTransform`PREVIEW deeply re-mapping all class references in any form, according to given map or map function.