- All Superinterfaces:
- ClassFileElementPREVIEW,- PoolEntryPREVIEW,- WritableElementPREVIEW<PoolEntryPREVIEW>
- All Known Subinterfaces:
- ClassEntryPREVIEW,- ConstantDynamicEntryPREVIEW,- ConstantValueEntryPREVIEW,- DoubleEntryPREVIEW,- FloatEntryPREVIEW,- IntegerEntryPREVIEW,- LongEntryPREVIEW,- MethodHandleEntryPREVIEW,- MethodTypeEntryPREVIEW,- StringEntryPREVIEW
public sealed interface LoadableConstantEntry
extends PoolEntryPREVIEW
permits ClassEntryPREVIEW, ConstantDynamicEntryPREVIEW, ConstantValueEntryPREVIEW, MethodHandleEntryPREVIEW, MethodTypeEntryPREVIEW
LoadableConstantEntry is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Marker interface for constant pool entries suitable for loading via the
 
LDC instructions.- 
Method SummaryModifier and TypeMethodDescriptionReturns the constant described by this entry.typeKind()Returns the type of the constant.Methods declared in interface java.lang.classfile.constantpool.PoolEntryPREVIEWconstantPool, index, tag, widthMethods declared in interface java.lang.classfile.WritableElementPREVIEWwriteTo
- 
Method Details- 
constantValueConstantDesc constantValue()Returns the constant described by this entry.- Returns:
- the constant described by this entry
 
- 
typeKind
 
- 
LoadableConstantEntrywhen preview features are enabled.