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

newNameType

open fun newNameType(name: String, desc: String): Int

Adds a name and type 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 - a name.

desc - a type descriptor.

Return
the index of a new or already existing name and type item.