Adds a CONSTANT_InvokeDynamic_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 method descriptor. @pa
(
final String name,
final String descriptor,
final Handle bootstrapMethodHandle,
final Object... bootstrapMethodArguments)
| 911 | * @return a new or already existing Symbol with the given value. |
| 912 | */ |
| 913 | Symbol addConstantInvokeDynamic( |
| 914 | final String name, |
| 915 | final String descriptor, |
| 916 | final Handle bootstrapMethodHandle, |
| 917 | final Object... bootstrapMethodArguments) { |
| 918 | Symbol bootstrapMethod = addBootstrapMethod(bootstrapMethodHandle, bootstrapMethodArguments); |
| 919 | return addConstantDynamicOrInvokeDynamicReference( |
| 920 | Symbol.CONSTANT_INVOKE_DYNAMIC_TAG, name, descriptor, bootstrapMethod.index); |
| 921 | } |
| 922 | |
| 923 | /** |
| 924 | * Adds a CONSTANT_Dynamic or a CONSTANT_InvokeDynamic_info to the constant pool of this symbol |
no test coverage detected