Adds a class reference to the constant pool of the class being build. Does nothing if the constant pool already contains a similar item. @param value the internal name of the class. @return a new or already existing class reference item.
(final String value)
| 693 | */ |
| 694 | |
| 695 | Item newClass (final String value) { |
| 696 | key2.set(CLASS, value, null, null); |
| 697 | Item result = get(key2); |
| 698 | if (result == null) { |
| 699 | pool.put12(CLASS, newUTF8(value).index); |
| 700 | result = new Item(index++, key2); |
| 701 | put(result); |
| 702 | } |
| 703 | return result; |
| 704 | } |
| 705 | |
| 706 | /** |
| 707 | * Adds a field reference to the constant pool of the class being build. Does |
no test coverage detected