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

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

## Uses of PoolEntry in java.lang.classfile

Methods in java.lang.classfile with type parameters of type PoolEntry
Modifier and Type
Method
Description
`<T extends PoolEntry>
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 `class` file.
`<T extends PoolEntry>
T`
ClassReader.`readEntryOrNull(int offset, Class<T> cls)`
Returns the constant pool entry of a given type whose index is given at the specified offset within the `class` file, or `null` if the index at the specified offset is zero.
Methods in java.lang.classfile that return PoolEntry
Modifier and Type
Method
Description
`PoolEntry`
ClassReader.`readEntry(int offset)`
Returns the constant pool entry whose index is given at the specified offset within the `class` file.
`PoolEntry`
ClassReader.`readEntryOrNull(int offset)`
Returns the constant pool entry whose index is given at the specified offset within the `class` file, or `null` if the index at the specified offset is zero.
Methods in java.lang.classfile with parameters of type PoolEntry
Modifier and Type
Method
Description
`void`
BufWriter.`writeIndex(PoolEntry entry)`
Writes the index of the specified constant pool entry as a `u2`.
`void`
BufWriter.`writeIndexOrZero(PoolEntry entry)`
Writes the index of the specified constant pool entry, or the value `0` if the specified entry is `null`, as a `u2`.

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

Subinterfaces of PoolEntry in java.lang.classfile.constantpool
Modifier and Type
Interface
Description
`interface`
`AnnotationConstantValueEntry`
Marker interface for constant pool entries that can represent constant values associated with elements of annotations.
`interface`
`ClassEntry`
Models a `CONSTANT_Class_info` structure, representing a reference type, in the constant pool of a `class` file.
`interface`
`ConstantDynamicEntry`
Models a `CONSTANT_Dynamic_info` structure, representing a dynamically-computed constant, in the constant pool of a `class` file.
`interface`
`ConstantValueEntry`
Marker interface for constant pool entries that can represent constant values in the `ConstantValue` attribute.
`interface`
`DoubleEntry`
Models a `CONSTANT_Double_info` structure, representing a `double` constant, in the constant pool of a `class` file.
`interface`
`DynamicConstantPoolEntry`
Superinterface modeling dynamically-computed constant pool entries, which include `ConstantDynamicEntry` and `InvokeDynamicEntry`, in the constant pool of a `class` file.
`interface`
`FieldRefEntry`
Models a `CONSTANT_Fieldref_info` structure, or a symbolic reference to a field, in the constant pool of a `class` file.
`interface`
`FloatEntry`
Models a `CONSTANT_Float_info` structure, or a `float` constant, in the constant pool of a `class` file.
`interface`
`IntegerEntry`
Models a `CONSTANT_Integer_info` structure, or an `int` constant, in the constant pool of a `class` file.
`interface`
`InterfaceMethodRefEntry`
Models a `CONSTANT_InterfaceMethodRef_info` structure, or a symbolic reference to an interface method, in the constant pool of a `class` file.
`interface`
`InvokeDynamicEntry`
Models a `CONSTANT_InvokeDynamic_info` structure, or the symbolic reference to a dynamically-computed call site, in the constant pool of a `class` file.
`interface`
`LoadableConstantEntry`
Marker interface for constant pool entries suitable for loading via the `ldc` instructions.
`interface`
`LongEntry`
Models a `CONSTANT_Long_info` structure, or a `long` constant, in the constant pool of a `class` file.
`interface`
`MemberRefEntry`
Superinterface modeling symbolic references to a member of a class or interface in the constant pool of a `class` file, which include references to fields, class methods, and interface methods.
`interface`
`MethodHandleEntry`
Models a `CONSTANT_MethodHandle_info` structure, or a symbolic reference to a method handle, in the constant pool of a `class` file.
`interface`
`MethodRefEntry`
Models a `CONSTANT_MethodRef_info` structure, or a symbolic reference to a class method, in the constant pool of a `class` file.
`interface`
`MethodTypeEntry`
Models a `CONSTANT_MethodType_info` structure, or a symbolic reference to a method type, in the constant pool of a `class` file.
`interface`
`ModuleEntry`
Models a `CONSTANT_Module_info` structure, denoting a module, in the constant pool of a `class` file.
`interface`
`NameAndTypeEntry`
Models a `CONSTANT_NameAndType_info` structure, representing a field or method, in the constant pool of a `class` file.
`interface`
`PackageEntry`
Models a `CONSTANT_Package_info`, representing a package, in the constant pool of a `class` file.
`interface`
`StringEntry`
Models a `CONSTANT_String_info` structure, or a string constant, in the constant pool of a `class` file.
`interface`
`Utf8Entry`
Models a `CONSTANT_UTF8_info` constant, representing strings, in the constant pool of a `class` file.
Subinterfaces with type arguments of type PoolEntry in java.lang.classfile.constantpool
Modifier and Type
Interface
Description
`interface`
`ConstantPool`
Provides read access to the constant pool and the bootstrap method table of a `class` file.
Methods in java.lang.classfile.constantpool with type parameters of type PoolEntry
Modifier and Type
Method
Description
`<T extends PoolEntry>
T`
ConstantPool.`entryByIndex(int index, Class<T> cls)`
Returns the entry of a given type at the specified index.
Methods in java.lang.classfile.constantpool that return PoolEntry
Modifier and Type
Method
Description
`PoolEntry`
ConstantPool.`entryByIndex(int index)`
Returns the entry at the specified index.
Methods in java.lang.classfile.constantpool that return types with arguments of type PoolEntry
Modifier and Type
Method
Description
`default Iterator<PoolEntry>`
ConstantPool.`iterator()`
Returns an iterator over pool entries.