open fun newHandle(tag: Int, owner: String, name: String, desc: String): Int
Adds a handle 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.
tag - the kind of this handle. Must be Opcodes#H_GETFIELD, Opcodes#H_GETSTATIC, Opcodes#H_PUTFIELD, Opcodes#H_PUTSTATIC, Opcodes#H_INVOKEVIRTUAL, Opcodes#H_INVOKESTATIC, Opcodes#H_INVOKESPECIAL, Opcodes#H_NEWINVOKESPECIAL or Opcodes#H_INVOKEINTERFACE.
owner - the internal name of the field or method owner class.
name - the name of the field or method.
desc - the descriptor of the field or method.
Return
the index of a new or already existing method type reference item.
open fun newHandle(tag: Int, owner: String, name: String, desc: String, itf: Boolean): Int
Adds a handle 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.
tag - the kind of this handle. Must be Opcodes#H_GETFIELD, Opcodes#H_GETSTATIC, Opcodes#H_PUTFIELD, Opcodes#H_PUTSTATIC, Opcodes#H_INVOKEVIRTUAL, Opcodes#H_INVOKESTATIC, Opcodes#H_INVOKESPECIAL, Opcodes#H_NEWINVOKESPECIAL or Opcodes#H_INVOKEINTERFACE.
owner - the internal name of the field or method owner class.
name - the name of the field or method.
desc - the descriptor of the field or method.
itf - true if the owner is an interface.
Return
the index of a new or already existing method type reference item.