# Uses of Interface
java.lang.classfile.MethodTransform

Packages that use MethodTransformPREVIEW
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 MethodTransformPREVIEW in java.lang.classfilePREVIEW

  Fields in java.lang.classfilePREVIEW declared as MethodTransformPREVIEW
  Modifier and Type
  Field
  Description
  `static final MethodTransformPREVIEW`
  MethodTransform.`ACCEPT_ALL`
  A method transform that sends all elements to the builder.
  Methods in java.lang.classfilePREVIEW that return MethodTransformPREVIEW
  Modifier and Type
  Method
  Description
  `default MethodTransformPREVIEW`
  MethodTransform.`andThen(MethodTransformPREVIEW t)`
  `static MethodTransformPREVIEW`
  MethodTransform.`dropping(Predicate<MethodElementPREVIEW> filter)`
  Create a method transform that passes each element through to the builder, except for those that the supplied `Predicate` is true for.
  `static MethodTransformPREVIEW`
  MethodTransform.`endHandler(Consumer<MethodBuilderPREVIEW> finisher)`
  Create a method transform that passes each element through to the builder, and calls the specified function when transformation is complete.
  `static MethodTransformPREVIEW`
  MethodTransform.`ofStateful(Supplier<MethodTransformPREVIEW> supplier)`
  Create a stateful method transform from a `Supplier`.
  `static MethodTransformPREVIEW`
  MethodTransform.`transformingCode(CodeTransformPREVIEW xform)`
  Create a method transform that transforms `CodeModel`PREVIEW elements with the supplied code transform.
  Methods in java.lang.classfilePREVIEW with parameters of type MethodTransformPREVIEW
  Modifier and Type
  Method
  Description
  `default MethodTransformPREVIEW`
  MethodTransform.`andThen(MethodTransformPREVIEW t)`
  `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.
  `ClassBuilderPREVIEW`
  ClassBuilder.`transformMethod(MethodModelPREVIEW method, MethodTransformPREVIEW transform)`
  Adds a method by transforming a method from another class.
  Method parameters in java.lang.classfilePREVIEW with type arguments of type MethodTransformPREVIEW
  Modifier and Type
  Method
  Description
  `static MethodTransformPREVIEW`
  MethodTransform.`ofStateful(Supplier<MethodTransformPREVIEW> supplier)`
  Create a stateful method transform from a `Supplier`.

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

  Methods in java.lang.classfile.componentsPREVIEW that return MethodTransformPREVIEW
  Modifier and Type
  Method
  Description
  `MethodTransformPREVIEW`
  ClassRemapper.`asMethodTransform()`
  Returns this `ClassRemapper` as `MethodTransform`PREVIEW instance.