| java.lang.Object net.sf.retrotranslator.runtime.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.
author: Eric Bruneton |
Field Summary | |
double | doubleVal Value of this item, for a double item. | float | floatVal Value of this item, for a float item. | int | hashCode The hash code value of this constant pool item. | int | index Index of this item in the constant pool. | int | intVal Value of this item, for an integer item. | long | longVal Value of this item, for a 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(int index) | | Item(int index, Item i) Constructs a copy of the given item. |
Method Summary | |
boolean | isEqualTo(Item i) Indicates if the given item is equal to this one.
Parameters: i - the item to be compared to this one. | void | set(int intVal) Sets this item to an integer item. | void | set(long longVal) Sets this item to a long item. | void | set(float floatVal) Sets this item to a float item. | void | set(double doubleVal) Sets this item to a double item. | void | set(int type, String strVal1, String strVal2, String strVal3) Sets this item to an item that do not hold a primitive value. |
doubleVal | double doubleVal(Code) | | Value of this item, for a double item.
|
floatVal | float floatVal(Code) | | Value of this item, for a float item.
|
hashCode | int hashCode(Code) | | The hash code value of this constant pool item.
|
index | int index(Code) | | Index of this item in the constant pool.
|
intVal | int intVal(Code) | | Value of this item, for an integer item.
|
longVal | long longVal(Code) | | Value of this item, for a long item.
|
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
ClassWriter.INT ,
ClassWriter.LONG ,
ClassWriter.FLOAT ,
ClassWriter.DOUBLE ,
ClassWriter.UTF8 ,
ClassWriter.STR ,
ClassWriter.CLASS ,
ClassWriter.NAME_TYPE ,
ClassWriter.FIELD ,
ClassWriter.METH ,
ClassWriter.IMETH .
|
Item | Item()(Code) | | Constructs an uninitialized
Item .
|
Item | Item(int 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 integer item.
Parameters: intVal - the value of this item. |
set | void set(long longVal)(Code) | | Sets this item to a long item.
Parameters: longVal - the value of this item. |
set | void set(float floatVal)(Code) | | Sets this item to a float item.
Parameters: floatVal - the value of this item. |
set | void set(double doubleVal)(Code) | | Sets this item to a 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. |
|
|