src/org/nutz/repo/org/objectweb/asm/ClassWriter.java
public int newMethod(final String owner, final String name,
            final String desc, final boolean itf) {
        return newMethodItem(owner, name, desc, itf).index;
    }
public int newMethod(final String owner, final String name,
            final String desc, final boolean itf) {
        return newMethodItem(owner, name, desc, itf).index;
    }
Adds a method reference to the constant pool of the class being build.
Does nothing if the constant pool already contains a similar item.
<i>This method is intended for {@link Attribute} sub classes, and is
normally not needed by class generators or adapters.</i>

@param owner
the internal name of the method's owner class.
@param name
the method's name.
@param desc
the method's descriptor.
@param itf
<tt>true</tt> if <tt>owner</tt> is an interface.
@return the index of a new or already existing method reference item.