Interface PoolEntry

All Known Subinterfaces:
AnnotationConstantValueEntry, ClassEntry, ConstantDynamicEntry, ConstantValueEntry, DoubleEntry, DynamicConstantPoolEntry, FieldRefEntry, FloatEntry, IntegerEntry, InterfaceMethodRefEntry, InvokeDynamicEntry, LoadableConstantEntry, LongEntry, MemberRefEntry, MethodHandleEntry, MethodRefEntry, MethodTypeEntry, ModuleEntry, NameAndTypeEntry, PackageEntry, StringEntry, Utf8Entry

Models an entry in the constant pool of a class file. Entries are read from class files, and can be created with a ConstantPoolBuilder to write to class files.
Implementation Note:

Unbound Constant Pool Entries

Implementations may create unbound constant pool entries not belonging to an actual constant pool. They conveniently represent constant pool entries referred by unbound attributes not read from a class file. Their index() return a non-positive invalid value, and behaviors of their constantPool() are unspecified. They are considered alien to any contextual constant pool and will be converted when they are written to class files.
Sealed Class Hierarchy Graph:
Sealed class hierarchy graph for PoolEntrySealed class hierarchy graph for PoolEntry
Since:
24
See Also: