Module org.glavo.classfile
Package org.glavo.classfile.constantpool
Interface DynamicConstantPoolEntry
- All Superinterfaces:
ClassFileElement,PoolEntry,WritableElement<PoolEntry>
- All Known Subinterfaces:
ConstantDynamicEntry,InvokeDynamicEntry
- All Known Implementing Classes:
AbstractPoolEntry.ConstantDynamicEntryImpl,AbstractPoolEntry.InvokeDynamicEntryImpl
public sealed interface DynamicConstantPoolEntry
extends PoolEntry
permits ConstantDynamicEntry, InvokeDynamicEntry
Models a dynamic constant pool entry, which is either
ConstantDynamicEntry
or InvokeDynamicEntry.- Since:
- 22
- Jvms:
- 4.4.10 The CONSTANT_Dynamic_info and CONSTANT_InvokeDynamic_info Structures
-
Method Summary
Modifier and TypeMethodDescriptionReturns the entry in the bootstrap method table for this constant.intReturns index of the entry in the bootstrap method table for this constant.default Utf8Entryname()Returns the invocation name.Returns the invocation name and type.default Utf8Entrytype()Returns the invocation type.Methods inherited from interface org.glavo.classfile.constantpool.PoolEntry
constantPool, index, tag, widthMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
Method Details
-
bootstrap
BootstrapMethodEntry bootstrap()Returns the entry in the bootstrap method table for this constant.- Returns:
- the entry in the bootstrap method table for this constant
-
bootstrapMethodIndex
int bootstrapMethodIndex()Returns index of the entry in the bootstrap method table for this constant.- Returns:
- index of the entry in the bootstrap method table for this constant
-
nameAndType
NameAndTypeEntry nameAndType()Returns the invocation name and type.- Returns:
- the invocation name and type
-
name
Returns the invocation name.- Returns:
- the invocation name
-
type
Returns the invocation type.- Returns:
- the invocation type
-