# Uses of Interface
java.lang.classfile.CodeModel

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

  Methods in java.lang.classfilePREVIEW that return types with arguments of type CodeModelPREVIEW
  Modifier and Type
  Method
  Description
  `Optional<CodeModelPREVIEW>`
  MethodModel.`code()`
  Returns the body of this method, if there is one.
  `Optional<CodeModelPREVIEW>`
  CodeBuilder.`original()`
  Returns the `CodeModel`PREVIEW representing the method body being transformed, if this code builder represents the transformation of some `CodeModel`PREVIEW.
  Methods in java.lang.classfilePREVIEW with parameters of type CodeModelPREVIEW
  Modifier and Type
  Method
  Description
  `MethodBuilderPREVIEW`
  MethodBuilder.`transformCode(CodeModelPREVIEW code, CodeTransformPREVIEW transform)`
  Build the method body for this method by transforming the body of another method.

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

  Subinterfaces of CodeModelPREVIEW in java.lang.classfile.attributePREVIEW
  Modifier and Type
  Interface
  Description
  `interface`
  `CodeAttributePREVIEW`
  Preview.
  Models the `Code` attribute 4.7.3, appears on non-native, non-abstract methods and contains the bytecode of the method body.