|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.logicalcobwebs.asm.Item
final class Item
A constant pool item. Constant pool items can be created with the 'newXXX'
methods in the ClassWriter
class.
Field Summary | |
---|---|
(package private) double |
doubleVal
Value of this item, for a DOUBLE item. |
(package private) float |
floatVal
Value of this item, for a FLOAT item. |
(package private) int |
hashCode
The hash code value of this constant pool item. |
(package private) short |
index
Index of this item in the constant pool. |
(package private) int |
intVal
Value of this item, for a INT item. |
(package private) long |
longVal
Value of this item, for a LONG item. |
(package private) Item |
next
Link to another constant pool item, used for collision lists in the constant pool's hash table. |
(package private) java.lang.String |
strVal1
First part of the value of this item, for items that do not hold a primitive value. |
(package private) java.lang.String |
strVal2
Second part of the value of this item, for items that do not hold a primitive value. |
(package private) java.lang.String |
strVal3
Third part of the value of this item, for items that do not hold a primitive value. |
(package private) int |
type
Type of this constant pool item. |
Constructor Summary | |
---|---|
Item()
Constructs an uninitialized Item object. |
|
Item(short index,
Item i)
Constructs a copy of the given item. |
Method Summary | |
---|---|
(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 INT 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
short index
int type
ClassWriter
class.
int intVal
INT
item.
long longVal
LONG
item.
float floatVal
FLOAT
item.
double doubleVal
DOUBLE
item.
java.lang.String strVal1
java.lang.String strVal2
java.lang.String strVal3
int hashCode
Item next
Constructor Detail |
---|
Item()
Item
object.
Item(short index, Item i)
index
- index of the item to be constructed.i
- the item that must be copied into the item to be constructed.Method Detail |
---|
void set(int intVal)
INT
item.
intVal
- the value of this item.void set(long longVal)
LONG
item.
longVal
- the value of this item.void set(float floatVal)
FLOAT
item.
floatVal
- the value of this item.void set(double doubleVal)
DOUBLE
item.
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |