| java.lang.Object org.objectweb.asm.optimizer.Constant
Constant | class Constant (Code) | | A constant pool item.
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 | intVal Value of this item, for an integer item. | long | longVal Value of this item, for a long item. | 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. | char | type Type of this constant pool item. |
Method Summary | |
public boolean | equals(Object o) | public int | hashCode() | 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(char type, String strVal1, String strVal2, String strVal3) Sets this item to an item that do not hold a primitive value. | void | write(ClassWriter cw) |
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.
|
intVal | int intVal(Code) | | Value of this item, for an integer item.
|
longVal | long longVal(Code) | | Value of this item, for a long item.
|
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 | char 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 I, J, F, D, S, s, C, T, G, M, or N
(for Constant Integer, Long, Float, Double, STR, UTF8, Class, NameType,
Fieldref, Methodref, or InterfaceMethodref constant pool items
respectively).
|
Constant | public Constant()(Code) | | |
hashCode | public int hashCode()(Code) | | |
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(char 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. |
|
|