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

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

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

  Methods in java.lang.classfilePREVIEW with type parameters of type PoolEntryPREVIEW
  Modifier and Type
  Method
  Description
  `<T extends PoolEntryPREVIEW>
  T`
  ClassReader.`readEntry(int offset, Class<T> cls)`
  Returns the constant pool entry of a given type whose index is given at the specified offset within the classfile.
  Methods in java.lang.classfilePREVIEW that return PoolEntryPREVIEW
  Modifier and Type
  Method
  Description
  `PoolEntryPREVIEW`
  ClassReader.`readEntry(int offset)`
  Returns the constant pool entry whose index is given at the specified offset within the classfile.
  `PoolEntryPREVIEW`
  ClassReader.`readEntryOrNull(int offset)`
  Returns the constant pool entry whose index is given at the specified offset within the classfile, or null if the index at the specified offset is zero.
  Methods in java.lang.classfilePREVIEW with parameters of type PoolEntryPREVIEW
  Modifier and Type
  Method
  Description
  `void`
  BufWriter.`writeIndex(PoolEntryPREVIEW entry)`
  Write the index of the specified constant pool entry, as a `u2`, to the buffer
  `void`
  BufWriter.`writeIndexOrZero(PoolEntryPREVIEW entry)`
  Write the index of the specified constant pool entry, as a `u2`, to the buffer, or zero if the entry is null
  Method parameters in java.lang.classfilePREVIEW with type arguments of type PoolEntryPREVIEW
  Modifier and Type
  Method
  Description
  `void`
  BufWriter.`writeListIndices(List<? extends PoolEntryPREVIEW> list)`
  Write a list of constant pool entry indexes to the buffer.

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

  Subinterfaces of PoolEntryPREVIEW in java.lang.classfile.constantpoolPREVIEW
  Modifier and Type
  Interface
  Description
  `interface`
  `AnnotationConstantValueEntryPREVIEW`
  Preview.
  A constant pool entry that may be used as an annotation constant, which includes the four kinds of primitive constants, and UTF8 constants.
  `interface`
  `ClassEntryPREVIEW`
  Preview.
  Models a `CONSTANT_Class_info` constant in the constant pool of a classfile.
  `interface`
  `ConstantDynamicEntryPREVIEW`
  Preview.
  Models a `CONSTANT_Dynamic_info` constant in the constant pool of a classfile.
  `interface`
  `ConstantValueEntryPREVIEW`
  Preview.
  Models a constant pool entry that can be used as the constant in a `ConstantValue` attribute; this includes the four primitive constant types and String constants.
  `interface`
  `DoubleEntryPREVIEW`
  Preview.
  Models a `CONSTANT_Double_info` constant in the constant pool of a classfile.
  `interface`
  `DynamicConstantPoolEntryPREVIEW`
  Preview.
  Models a dynamic constant pool entry, which is either `ConstantDynamicEntry`PREVIEW or `InvokeDynamicEntry`PREVIEW.
  `interface`
  `FieldRefEntryPREVIEW`
  Preview.
  Models a `CONSTANT_Fieldref_info` constant in the constant pool of a classfile.
  `interface`
  `FloatEntryPREVIEW`
  Preview.
  Models a `CONSTANT_Float_info` constant in the constant pool of a classfile.
  `interface`
  `IntegerEntryPREVIEW`
  Preview.
  Models a `CONSTANT_Integer_info` constant in the constant pool of a classfile.
  `interface`
  `InterfaceMethodRefEntryPREVIEW`
  Preview.
  Models a `CONSTANT_InterfaceMethodRef_info` constant in the constant pool of a classfile.
  `interface`
  `InvokeDynamicEntryPREVIEW`
  Preview.
  Models a constant pool entry for a dynamic call site.
  `interface`
  `LoadableConstantEntryPREVIEW`
  Preview.
  Marker interface for constant pool entries suitable for loading via the `LDC` instructions.
  `interface`
  `LongEntryPREVIEW`
  Preview.
  Models a `CONSTANT_Long_info` constant in the constant pool of a classfile.
  `interface`
  `MemberRefEntryPREVIEW`
  Preview.
  Models a member reference constant in the constant pool of a classfile, which includes references to fields, methods, and interface methods.
  `interface`
  `MethodHandleEntryPREVIEW`
  Preview.
  Models a `CONSTANT_MethodHandle_info` constant in the constant pool of a classfile.
  `interface`
  `MethodRefEntryPREVIEW`
  Preview.
  Models a `CONSTANT_MethodRef_info` constant in the constant pool of a classfile.
  `interface`
  `MethodTypeEntryPREVIEW`
  Preview.
  Models a `CONSTANT_MethodType_info` constant in the constant pool of a classfile.
  `interface`
  `ModuleEntryPREVIEW`
  Preview.
  Models a `CONSTANT_Module_info` constant in the constant pool of a classfile.
  `interface`
  `NameAndTypeEntryPREVIEW`
  Preview.
  Models a `CONSTANT_NameAndType_info` constant in the constant pool of a classfile.
  `interface`
  `PackageEntryPREVIEW`
  Preview.
  Models a `CONSTANT_Package_info` constant in the constant pool of a classfile.
  `interface`
  `StringEntryPREVIEW`
  Preview.
  Models a `CONSTANT_String_info` constant in the constant pool of a classfile.
  `interface`
  `Utf8EntryPREVIEW`
  Preview.
  Models a `CONSTANT_UTF8_info` constant in the constant pool of a classfile.
  Methods in java.lang.classfile.constantpoolPREVIEW that return PoolEntryPREVIEW
  Modifier and Type
  Method
  Description
  `PoolEntryPREVIEW`
  ConstantPool.`entryByIndex(int index)`
  Returns the entry at the specified index.
  Methods in java.lang.classfile.constantpoolPREVIEW that return types with arguments of type PoolEntryPREVIEW
  Modifier and Type
  Method
  Description
  `default Iterator<PoolEntryPREVIEW>`
  ConstantPool.`iterator()`
  Returns an iterator over pool entries.