# Uses of Interface
java.lang.classfile.ClassModel

Packages that use ClassModelPREVIEW
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.
java.lang.classfile.constantpool
Provides interfaces describing classfile constant pool entries for the `java.lang.classfile`PREVIEW library.

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

  Methods in java.lang.classfilePREVIEW that return ClassModelPREVIEW
  Modifier and Type
  Method
  Description
  `ClassModelPREVIEW`
  ClassFile.`parse(byte[] bytes)`
  Parse a classfile into a `ClassModel`PREVIEW.
  `default ClassModelPREVIEW`
  ClassFile.`parse(Path path)`
  Parse a classfile into a `ClassModel`PREVIEW.
  Methods in java.lang.classfilePREVIEW that return types with arguments of type ClassModelPREVIEW
  Modifier and Type
  Method
  Description
  `Optional<ClassModelPREVIEW>`
  ClassBuilder.`original()`
  Returns the `ClassModel`PREVIEW representing the class being transformed, if this class builder represents the transformation of some `ClassModel`PREVIEW.
  `Optional<ClassModelPREVIEW>`
  FieldModel.`parent()`
  Returns the class model this field is a member of, if known.
  `Optional<ClassModelPREVIEW>`
  MethodModel.`parent()`
  Returns the class model this method is a member of, if known.
  Methods in java.lang.classfilePREVIEW with parameters of type ClassModelPREVIEW
  Modifier and Type
  Method
  Description
  `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.

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

  Methods in java.lang.classfile.componentsPREVIEW with parameters of type ClassModelPREVIEW
  Modifier and Type
  Method
  Description
  `default byte[]`
  ClassRemapper.`remapClass(ClassFilePREVIEW context, ClassModelPREVIEW clm)`
  Remaps the whole ClassModel into a new class file, including the class name.

- ## Uses of ClassModelPREVIEW in java.lang.classfile.constantpoolPREVIEW

  Methods in java.lang.classfile.constantpoolPREVIEW with parameters of type ClassModelPREVIEW
  Modifier and Type
  Method
  Description
  `static ConstantPoolBuilderPREVIEW`
  ConstantPoolBuilder.`of(ClassModelPREVIEW classModel)`
  Returns a new constant pool builder.