final class Item
extends java.lang.Object
ClassWriter class.| Modifier and Type | Field and Description | 
|---|---|
| (package private) int | hashCodeThe hash code value of this constant pool item. | 
| (package private) int | indexIndex of this item in the constant pool. | 
| (package private) int | intValValue of this item, for an integer item. | 
| (package private) long | longValValue of this item, for a long item. | 
| (package private) Item | nextLink to another constant pool item, used for collision lists in the
 constant pool's hash table. | 
| (package private) java.lang.String | strVal1First part of the value of this item, for items that do not hold a
 primitive value. | 
| (package private) java.lang.String | strVal2Second part of the value of this item, for items that do not hold a
 primitive value. | 
| (package private) java.lang.String | strVal3Third part of the value of this item, for items that do not hold a
 primitive value. | 
| (package private) int | typeType of this constant pool item. | 
| Constructor and Description | 
|---|
| Item()Constructs an uninitialized  Item. | 
| Item(int index)Constructs an uninitialized  Itemfor constant pool element at
 given position. | 
| Item(int index,
    Item i)Constructs a copy of the given item. | 
| Modifier and Type | Method and Description | 
|---|---|
| (package private) boolean | isEqualTo(Item i)Indicates if the given item is equal to this one. | 
| (package private) void | set(double doubleVal)Sets this item to a double item. | 
| (package private) void | set(float floatVal)Sets this item to a float item. | 
| (package private) void | set(int intVal)Sets this item to an integer item. | 
| (package private) void | set(int type,
   java.lang.String strVal1,
   java.lang.String strVal2,
   java.lang.String strVal3)Sets this item to an item that do not hold a primitive value. | 
| (package private) void | set(long longVal)Sets this item to a long item. | 
int index
int type
ClassWriter.INT,
 ClassWriter.LONG, ClassWriter.FLOAT,
 ClassWriter.DOUBLE, ClassWriter.UTF8,
 ClassWriter.STR, ClassWriter.CLASS,
 ClassWriter.NAME_TYPE, ClassWriter.FIELD,
 ClassWriter.METH, ClassWriter.IMETH.
 
 Special Item types are used for Items that are stored in the ClassWriter
 ClassWriter.typeTable, instead of the constant pool, in order to
 avoid clashes with normal constant pool items in the ClassWriter constant
 pool's hash table. These special item types are
 ClassWriter.TYPE_NORMAL, ClassWriter.TYPE_UNINIT and
 ClassWriter.TYPE_MERGED.int intVal
long longVal
java.lang.String strVal1
java.lang.String strVal2
java.lang.String strVal3
int hashCode
Item next
Item()
Item.Item(int index)
Item for constant pool element at
 given position.index - index of the item to be constructed.Item(int index,
    Item i)
index - index of the item to be constructed.i - the item that must be copied into the item to be constructed.void set(int intVal)
intVal - the value of this item.void set(long longVal)
longVal - the value of this item.void set(float floatVal)
floatVal - the value of this item.void set(double doubleVal)
doubleVal - the value of this item.void set(int type,
       java.lang.String strVal1,
       java.lang.String strVal2,
       java.lang.String strVal3)
type - the type of this item.strVal1 - first part of the value of this item.strVal2 - second part of the value of this item.strVal3 - third part of the value of this item.boolean isEqualTo(Item i)
i - the item to be compared to this one.