Adds an integer to the constant pool of the class being build. Does nothing if the constant pool already contains a similar item. @param value the int value. @return a new or already existing int item.
(final int value)
| 787 | */ |
| 788 | |
| 789 | private Item newInteger (final int value) { |
| 790 | key.set(value); |
| 791 | Item result = get(key); |
| 792 | if (result == null) { |
| 793 | pool.put1(INT).put4(value); |
| 794 | result = new Item(index++, key); |
| 795 | put(result); |
| 796 | } |
| 797 | return result; |
| 798 | } |
| 799 | |
| 800 | /** |
| 801 | * Adds a float to the constant pool of the class being build. Does nothing if |