Adds a 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 string item.
(final String value)
| 865 | */ |
| 866 | |
| 867 | private Item newString (final String value) { |
| 868 | key2.set(STR, value, null, null); |
| 869 | Item result = get(key2); |
| 870 | if (result == null) { |
| 871 | pool.put12(STR, newUTF8(value).index); |
| 872 | result = new Item(index++, key2); |
| 873 | put(result); |
| 874 | } |
| 875 | return result; |
| 876 | } |
| 877 | |
| 878 | /** |
| 879 | * Adds a name and type to the constant pool of the class being build. Does |