- All Superinterfaces:
ClassfileElement,PoolEntry,WritableElement<PoolEntry>
- All Known Subinterfaces:
ClassEntry,ConstantDynamicEntry,ConstantValueEntry,DoubleEntry,FloatEntry,IntegerEntry,LongEntry,MethodHandleEntry,MethodTypeEntry,StringEntry
- All Known Implementing Classes:
AbstractPoolEntry.ClassEntryImpl,AbstractPoolEntry.ConstantDynamicEntryImpl,AbstractPoolEntry.DoubleEntryImpl,AbstractPoolEntry.FloatEntryImpl,AbstractPoolEntry.IntegerEntryImpl,AbstractPoolEntry.LongEntryImpl,AbstractPoolEntry.MethodHandleEntryImpl,AbstractPoolEntry.MethodTypeEntryImpl,AbstractPoolEntry.StringEntryImpl
public sealed interface LoadableConstantEntry
extends PoolEntry
permits ClassEntry, ConstantDynamicEntry, ConstantValueEntry, MethodHandleEntry, MethodTypeEntry
Marker interface for constant pool entries suitable for loading via the
LDC instructions.-
Method Summary
Methods inherited from interface org.glavo.classfile.constantpool.PoolEntry
constantPool, index, tag, widthMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
Method Details
-
constantValue
ConstantDesc constantValue()Returns the constant described by this entry.- Returns:
- the constant described by this entry
-
typeKind
Returns the type of the constant.- Returns:
- the type of the constant
-