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

newUTF8

open fun newUTF8(value: String): Int

Adds an UTF8 string 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 String value.

Return
the index of a new or already existing UTF8 item.