Adds a name and type to the constant pool of the class being build. Does nothing if the constant pool already contains a similar item. @param name a name. @param desc a type descriptor. @return a new or already existing name and type item.
(final String name, final String desc)
| 885 | */ |
| 886 | |
| 887 | private Item newNameType (final String name, final String desc) { |
| 888 | key2.set(NAME_TYPE, name, desc, null); |
| 889 | Item result = get(key2); |
| 890 | if (result == null) { |
| 891 | put122(NAME_TYPE, newUTF8(name).index, newUTF8(desc).index); |
| 892 | result = new Item(index++, key2); |
| 893 | put(result); |
| 894 | } |
| 895 | return result; |
| 896 | } |
| 897 | |
| 898 | /** |
| 899 | * Returns the constant pool's hash table item which is equal to the given |