Adds a dynamic constant reference to the constant pool of the class being build. Does nothing if the constant pool already contains a similar item. This method is intended for Attribute sub classes, and is normally not needed by class generators or adapters. @param name name of the i
(
final String name,
final String descriptor,
final Handle bootstrapMethodHandle,
final Object... bootstrapMethodArguments)
| 850 | * @return the index of a new or already existing dynamic constant reference item. |
| 851 | */ |
| 852 | public int newConstantDynamic( |
| 853 | final String name, |
| 854 | final String descriptor, |
| 855 | final Handle bootstrapMethodHandle, |
| 856 | final Object... bootstrapMethodArguments) { |
| 857 | return symbolTable.addConstantDynamic( |
| 858 | name, descriptor, bootstrapMethodHandle, bootstrapMethodArguments) |
| 859 | .index; |
| 860 | } |
| 861 | |
| 862 | /** |
| 863 | * Adds an invokedynamic reference to the constant pool of the class being build. Does nothing if |
nothing calls this directly
no test coverage detected