ConstantDynamicEntry and InvokeDynamicEntry, in the
constant pool of a class file.
Different types of dynamically-computed constant pool entries bear structural similarities, but they appear in distinct locations. As a result, their uses are represented by different symbolic descriptors, specific to each subtype.
A dynamic constant entry is composite:
DynamicConstantPoolEntry( BootstrapMethodEntry bootstrap, NameAndTypeEntry nameAndType )
CONSTANT_Dynamic_info and CONSTANT_InvokeDynamic_info Structures, 5.4.3.6 Dynamically-Computed Constant and Call Site Resolution
Dynamic resolution of call sites and constants
| Modifier and Type | Method and Description |
|---|---|
| public BootstrapMethodEntry | Returns: the entry in the bootstrap method table for this constantReturns the entry in the bootstrap method table for this constant. |
| public int | Returns: index of the entry in the bootstrap method table for this constantReturns index of the entry in the bootstrap method table for this constant. |
| public default Utf8Entry | Returns: the name indicated by this symbolic referenceReturns the name indicated by this symbolic reference. |
| public NameAndTypeEntry | Returns: the name and the descriptor string indicated by this symbolic referenceReturns the name and the descriptor string indicated by this symbolic reference. |
| public default Utf8Entry | Returns: the descriptor string indicated by this symbolic referenceReturns the descriptor string indicated by this symbolic reference. |
| bootstrap | back to summary |
|---|---|
| public BootstrapMethodEntry bootstrap() Returns the entry in the bootstrap method table for this constant.
| |
| bootstrapMethodIndex | back to summary |
|---|---|
| public int bootstrapMethodIndex() Returns index of the entry in the bootstrap method table for this
constant. The return value is equivalent to
| |
| name | back to summary |
|---|---|
| public default Utf8Entry name() Returns the name indicated by this symbolic reference.
| |
| nameAndType | back to summary |
|---|---|
| public NameAndTypeEntry nameAndType() Returns the name and the descriptor string indicated by this symbolic reference.
| |
| type | back to summary |
|---|---|
| public default Utf8Entry type() Returns the descriptor string indicated by this symbolic reference.
This is a field descriptor string if this entry is a API Note Each subinterface has its specific accessor named
| |