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

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

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

  Subinterfaces of ConstantPoolPREVIEW in java.lang.classfilePREVIEW
  Modifier and Type
  Interface
  Description
  `interface`
  `ClassReaderPREVIEW`
  Preview.
  Supports reading from a classfile.
  Methods in java.lang.classfilePREVIEW that return ConstantPoolPREVIEW
  Modifier and Type
  Method
  Description
  `ConstantPoolPREVIEW`
  BootstrapMethodEntry.`constantPool()`
  Returns the constant pool associated with this entry.
  `ConstantPoolPREVIEW`
  ClassModel.`constantPool()`
  Returns the constant pool for this class.
  Methods in java.lang.classfilePREVIEW with parameters of type ConstantPoolPREVIEW
  Modifier and Type
  Method
  Description
  `boolean`
  BufWriter.`canWriteDirect(ConstantPoolPREVIEW other)`
  Returns whether the provided constant pool is index-compatible with this one.
  `default boolean`
  ClassFileBuilder.`canWriteDirect(ConstantPoolPREVIEW source)`
  Returns whether the provided constant pool is compatible with this builder.

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

  Subinterfaces of ConstantPoolPREVIEW in java.lang.classfile.constantpoolPREVIEW
  Modifier and Type
  Interface
  Description
  `interface`
  `ConstantPoolBuilderPREVIEW`
  Preview.
  Builder for the constant pool of a classfile.
  Subinterfaces with type arguments of type ConstantPoolPREVIEW in java.lang.classfile.constantpoolPREVIEW
  Modifier and Type
  Interface
  Description
  `interface`
  `ConstantPoolBuilderPREVIEW`
  Preview.
  Builder for the constant pool of a classfile.
  Methods in java.lang.classfile.constantpoolPREVIEW that return ConstantPoolPREVIEW
  Modifier and Type
  Method
  Description
  `ConstantPoolPREVIEW`
  PoolEntry.`constantPool()`
  Returns the constant pool this entry is from.
  Methods in java.lang.classfile.constantpoolPREVIEW with parameters of type ConstantPoolPREVIEW
  Modifier and Type
  Method
  Description
  `boolean`
  ConstantPoolBuilder.`canWriteDirect(ConstantPoolPREVIEW constantPool)`
  Returns whether the provided constant pool is index-compatible with this one.