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

newMethod

open fun newMethod(owner: String, name: String, desc: String, itf: Boolean): Int

Adds a method 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

owner - the internal name of the method's owner class.

name - the method's name.

desc - the method's descriptor.

itf - true if owner is an interface.

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