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

Method newMethod

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

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

(
    final String owner,
    final String name,
    final String desc)

Source from the content-addressed store, hash-verified

739 */
740
741 Item newMethod (
742 final String owner,
743 final String name,
744 final String desc)
745 {
746 key3.set(METH, owner, name, desc);
747 Item result = get(key3);
748 if (result == null) {
749 put122(METH, newClass(owner).index, newNameType(name, desc).index);
750 result = new Item(index++, key3);
751 put(result);
752 }
753 return result;
754 }
755
756 /**
757 * Adds an interface method reference to the constant pool of the class being

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