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

# Uses of Interface
java.lang.classfile.ClassFile

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

  Methods in java.lang.classfilePREVIEW that return ClassFilePREVIEW
  Modifier and Type
  Method
  Description
  `static ClassFilePREVIEW`
  ClassFile.`of()`
  Returns a context with default options.
  `static ClassFilePREVIEW`
  ClassFile.`of(ClassFile.OptionPREVIEW... options)`
  Returns a new context with options altered from the default.
  `ClassFilePREVIEW`
  ClassFile.`withOptions(ClassFile.OptionPREVIEW... options)`
  Returns a copy of the context with altered options.

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

  Methods in java.lang.classfile.componentsPREVIEW with parameters of type ClassFilePREVIEW
  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.