Adds an UTF string to the constant pool of the class being build. Does nothing if the constant pool already contains a similar item. @param value the String value. @return a new or already existing UTF8 item.
(final String value)
| 674 | */ |
| 675 | |
| 676 | Item newUTF8 (final String value) { |
| 677 | key.set(UTF8, value, null, null); |
| 678 | Item result = get(key); |
| 679 | if (result == null) { |
| 680 | pool.put1(UTF8).putUTF(value); |
| 681 | result = new Item(index++, key); |
| 682 | put(result); |
| 683 | } |
| 684 | return result; |
| 685 | } |
| 686 | |
| 687 | /** |
| 688 | * Adds a class reference to the constant pool of the class being build. Does |
no test coverage detected