Module java.base

Interface ConstantPool

All Superinterfaces:
Iterable<PoolEntryPREVIEW>
All Known Subinterfaces:
ClassReaderPREVIEW, ConstantPoolBuilderPREVIEW

public sealed interface ConstantPool extends Iterable<PoolEntryPREVIEW> permits ClassReaderPREVIEW, ConstantPoolBuilderPREVIEW
ConstantPool is a preview API of the Java platform.
Programs can only use ConstantPool when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Provides read access to the constant pool and bootstrap method table of a classfile.
See Java Virtual Machine Specification:
4.4 The Constant Pool
Sealed Class Hierarchy Graph:
Sealed class hierarchy graph for ConstantPoolSealed class hierarchy graph for ConstantPool
Since:
22