Adds a CONSTANT_Dynamic_info to the constant pool of this symbol table. Also adds the related bootstrap method to the BootstrapMethods of this symbol table. Does nothing if the constant pool already contains a similar item. @param name a method name. @param descriptor a field descriptor. @param boo
(
final String name,
final String descriptor,
final Handle bootstrapMethodHandle,
final Object... bootstrapMethodArguments)
| 890 | * @return a new or already existing Symbol with the given value. |
| 891 | */ |
| 892 | Symbol addConstantDynamic( |
| 893 | final String name, |
| 894 | final String descriptor, |
| 895 | final Handle bootstrapMethodHandle, |
| 896 | final Object... bootstrapMethodArguments) { |
| 897 | Symbol bootstrapMethod = addBootstrapMethod(bootstrapMethodHandle, bootstrapMethodArguments); |
| 898 | return addConstantDynamicOrInvokeDynamicReference( |
| 899 | Symbol.CONSTANT_DYNAMIC_TAG, name, descriptor, bootstrapMethod.index); |
| 900 | } |
| 901 | |
| 902 | /** |
| 903 | * Adds a CONSTANT_InvokeDynamic_info to the constant pool of this symbol table. Also adds the |
no test coverage detected