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