MCPcopy Create free account
hub / github.com/beanshell/beanshell / newItfMethod

Method newItfMethod

src/bsh/org/objectweb/asm/ClassWriter.java:766–779  ·  view source on GitHub ↗

Adds an interface method reference to the constant pool of the class being build. Does nothing if the constant pool already contains a similar item. @param ownerItf the internal name of the method's owner interface. @param name the method's name. @param desc the method's descriptor. @return a new o

(
    final String ownerItf,
    final String name,
    final String desc)

Source from the content-addressed store, hash-verified

764 */
765
766 Item newItfMethod (
767 final String ownerItf,
768 final String name,
769 final String desc)
770 {
771 key3.set(IMETH, ownerItf, name, desc);
772 Item result = get(key3);
773 if (result == null) {
774 put122(IMETH, newClass(ownerItf).index, newNameType(name, desc).index);
775 result = new Item(index++, key3);
776 put(result);
777 }
778 return result;
779 }
780
781 /**
782 * Adds an integer to the constant pool of the class being build. Does nothing

Callers 1

visitMethodInsnMethod · 0.80

Calls 6

getMethod · 0.95
put122Method · 0.95
newClassMethod · 0.95
newNameTypeMethod · 0.95
putMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected