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)
| 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 |
no test coverage detected