- All Superinterfaces:
ClassFileElement,DynamicConstantPoolEntry,LoadableConstantEntry,PoolEntry,WritableElement<PoolEntry>
- All Known Implementing Classes:
AbstractPoolEntry.ConstantDynamicEntryImpl
public sealed interface ConstantDynamicEntry
extends DynamicConstantPoolEntry, LoadableConstantEntry
permits AbstractPoolEntry.ConstantDynamicEntryImpl
Models a
CONSTANT_Dynamic_info constant in the constant pool of a
classfile.- Since:
- 22
- Jvms:
- 4.4.10 The CONSTANT_Dynamic_info and CONSTANT_InvokeDynamic_info Structures
-
Method Summary
Modifier and TypeMethodDescriptiondefault DynamicConstantDesc<?> asSymbol()Returns the symbolic descriptor for theinvokedynamicconstant.default ConstantDescReturns the constant described by this entry.default TypeKindtypeKind()Returns the type of the constant.default ClassDescReturns a symbolic descriptor for the dynamic constant's type.Methods inherited from interface org.glavo.classfile.constantpool.DynamicConstantPoolEntry
bootstrap, bootstrapMethodIndex, name, nameAndType, typeMethods inherited from interface org.glavo.classfile.constantpool.PoolEntry
constantPool, index, tag, widthMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
Method Details
-
typeSymbol
Returns a symbolic descriptor for the dynamic constant's type.- Returns:
- a symbolic descriptor for the dynamic constant's type
-
constantValue
Description copied from interface:LoadableConstantEntryReturns the constant described by this entry.- Specified by:
constantValuein interfaceLoadableConstantEntry- Returns:
- the constant described by this entry
-
asSymbol
Returns the symbolic descriptor for theinvokedynamicconstant.- Returns:
- the symbolic descriptor for the
invokedynamicconstant
-
typeKind
Returns the type of the constant.- Specified by:
typeKindin interfaceLoadableConstantEntry- Returns:
- the type of the constant
-