| java.lang.Object bsh.org.objectweb.asm.Item
Item | final class Item (Code) | | A constant pool item. Constant pool items can be created with the 'newXXX'
methods in the
ClassWriter class.
|
Field Summary | |
double | doubleVal Value of this item, for a
ClassWriter.DOUBLE DOUBLE item. | float | floatVal Value of this item, for a
ClassWriter.FLOAT FLOAT item. | int | hashCode The hash code value of this constant pool item. | short | index Index of this item in the constant pool. | int | intVal Value of this item, for a
ClassWriter.INT INT item. | long | longVal Value of this item, for a
ClassWriter.LONG LONG item. | Item | next Link to another constant pool item, used for collision lists in the
constant pool's hash table. | String | strVal1 First part of the value of this item, for items that do not hold a
primitive value. | String | strVal2 Second part of the value of this item, for items that do not hold a
primitive value. | String | strVal3 Third part of the value of this item, for items that do not hold a
primitive value. | int | type Type of this constant pool item. |
Constructor Summary | |
| Item() Constructs an uninitialized
Item Item object. | | Item(short index, Item i) Constructs a copy of the given item. |
hashCode | int hashCode(Code) | | The hash code value of this constant pool item.
|
index | short index(Code) | | Index of this item in the constant pool.
|
next | Item next(Code) | | Link to another constant pool item, used for collision lists in the
constant pool's hash table.
|
strVal1 | String strVal1(Code) | | First part of the value of this item, for items that do not hold a
primitive value.
|
strVal2 | String strVal2(Code) | | Second part of the value of this item, for items that do not hold a
primitive value.
|
strVal3 | String strVal3(Code) | | Third part of the value of this item, for items that do not hold a
primitive value.
|
type | int type(Code) | | Type of this constant pool item. A single class is used to represent all
constant pool item types, in order to minimize the bytecode size of this
package. The value of this field is one of the constants defined in the
ClassWriter ClassWriter class.
|
Item | Item()(Code) | | Constructs an uninitialized
Item Item object.
|
Item | Item(short index, Item i)(Code) | | Constructs a copy of the given item.
Parameters: index - index of the item to be constructed. Parameters: i - the item that must be copied into the item to be constructed. |
isEqualTo | boolean isEqualTo(Item i)(Code) | | Indicates if the given item is equal to this one.
Parameters: i - the item to be compared to this one. true if the given item if equal to this one,false otherwise. |
set | void set(int intVal)(Code) | | Sets this item to an
ClassWriter.INT INT item.
Parameters: intVal - the value of this item. |
set | void set(long longVal)(Code) | | Sets this item to a
ClassWriter.LONG LONG item.
Parameters: longVal - the value of this item. |
set | void set(float floatVal)(Code) | | Sets this item to a
ClassWriter.FLOAT FLOAT item.
Parameters: floatVal - the value of this item. |
set | void set(double doubleVal)(Code) | | Sets this item to a
ClassWriter.DOUBLE DOUBLE item.
Parameters: doubleVal - the value of this item. |
set | void set(int type, String strVal1, String strVal2, String strVal3)(Code) | | Sets this item to an item that do not hold a primitive value.
Parameters: type - the type of this item. Parameters: strVal1 - first part of the value of this item. Parameters: strVal2 - second part of the value of this item. Parameters: strVal3 - third part of the value of this item. |
|
|