spring-framework / org.springframework.asm / ClassWriter / newInvokeDynamic

newInvokeDynamic

open fun newInvokeDynamic(name: String, desc: String, bsm: Handle, vararg bsmArgs: Any): Int

Adds an invokedynamic 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.

Parameters

name - name of the invoked method.

desc - descriptor of the invoke method.

bsm - the bootstrap method.

bsmArgs - the bootstrap method constant arguments.

Return
the index of a new or already existing invokedynamic reference item.