Module java.base

Interface ClassReader

All Superinterfaces:
ConstantPoolPREVIEW, Iterable<PoolEntryPREVIEW>

public sealed interface ClassReader extends ConstantPoolPREVIEW
ClassReader is a preview API of the Java platform.
Programs can only use ClassReader when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Supports reading from a classfile. Methods are provided to read data of various numeric types (e.g., u2, u4) at a given offset within the classfile, copying raw bytes, and reading constant pool entries. Encapsulates additional reading context such as mappers for custom attributes and processing options.
Since:
22