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

# Uses of Interface
java.lang.classfile.constantpool.ConstantPoolBuilder

Packages that use ConstantPoolBuilderPREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.
java.lang.classfile.constantpool
Provides interfaces describing classfile constant pool entries for the `java.lang.classfile`PREVIEW library.

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

  Methods in java.lang.classfilePREVIEW that return ConstantPoolBuilderPREVIEW
  Modifier and Type
  Method
  Description
  `ConstantPoolBuilderPREVIEW`
  BufWriter.`constantPool()`
  Returns the constant pool builder associated with this buffer.
  `ConstantPoolBuilderPREVIEW`
  ClassFileBuilder.`constantPool()`
  Returns the constant pool builder associated with this builder.
  Methods in java.lang.classfilePREVIEW with parameters of type ConstantPoolBuilderPREVIEW
  Modifier and Type
  Method
  Description
  `byte[]`
  ClassFile.`build(ClassEntryPREVIEW thisClassEntry, ConstantPoolBuilderPREVIEW constantPool, Consumer<? super ClassBuilderPREVIEW> handler)`
  Build a classfile into a byte array using the provided constant pool builder.
  `default void`
  ClassFile.`buildTo(Path path, ClassEntryPREVIEW thisClassEntry, ConstantPoolBuilderPREVIEW constantPool, Consumer<? super ClassBuilderPREVIEW> handler)`
  Build a classfile into a file using the provided constant pool builder.

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

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