Interface LoadableConstantEntry
- 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.- Since:
- 22
-
Field Summary
Fields declared in interface java.lang.classfile.constantpool.PoolEntryPREVIEW
TAG_CLASS, TAG_DOUBLE, TAG_DYNAMIC, TAG_FIELDREF, TAG_FLOAT, TAG_INTEGER, TAG_INTERFACE_METHODREF, TAG_INVOKE_DYNAMIC, TAG_LONG, TAG_METHOD_HANDLE, TAG_METHOD_TYPE, TAG_METHODREF, TAG_MODULE, TAG_NAME_AND_TYPE, TAG_PACKAGE, TAG_STRING, TAG_UTF8
-
Method Summary
Modifier and TypeMethodDescriptionReturns the constant described by this entry.typeKind()
Returns the type of the constant.
-
Method Details
-
constantValue
ConstantDesc constantValue()Returns the constant described by this entry.- Returns:
- the constant described by this entry
-
typeKind
-
LoadableConstantEntry
when preview features are enabled.