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

newClass

open fun newClass(value: String): Int

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

value - the internal name of the class.

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