# Uses of Interface
java.lang.classfile.MethodModel

Packages that use MethodModelPREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.

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

  Methods in java.lang.classfilePREVIEW that return types with arguments of type MethodModelPREVIEW
  Modifier and Type
  Method
  Description
  `List<MethodModelPREVIEW>`
  ClassModel.`methods()`
  Returns the methods of this class.
  `Optional<MethodModelPREVIEW>`
  MethodBuilder.`original()`
  Returns the `MethodModel`PREVIEW representing the method being transformed, if this method builder represents the transformation of some `MethodModel`PREVIEW.
  `Optional<MethodModelPREVIEW>`
  CodeModel.`parent()`
  Returns the enclosing method, if known.
  Methods in java.lang.classfilePREVIEW with parameters of type MethodModelPREVIEW
  Modifier and Type
  Method
  Description
  `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 MethodModelPREVIEW
  Modifier and Type
  Method
  Description
  `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(Predicate<MethodModelPREVIEW> filter, MethodTransformPREVIEW xform)`
  Create a class transform that transforms `MethodModel`PREVIEW elements with the supplied method transform.