|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectharpoon.IR.Bytecode.Operand
harpoon.IR.Bytecode.OpConstant
public final class OpConstant
OpConstant represents a constant operand of a java bytecode
instruction. This would typically be taken from the
constant_pool.
OpConstant represents constant pool entries of type
CONSTANT_Double, CONSTANT_Float,
CONSTANT_Integer, CONSTANT_Long,
and CONSTANT_String.
Operand,
Instr,
ConstantDouble,
ConstantFloat,
ConstantInteger,
ConstantLong,
ConstantString,
ConstantClass| Field Summary |
|---|
| Fields inherited from class harpoon.IR.Bytecode.Operand |
|---|
arrayFactory |
| Constructor Summary | |
|---|---|
OpConstant(Code parent,
int constant_pool_index)
Make a new OpConstant from a
constant_pool entry. |
|
OpConstant(Object value,
HClass type)
Make a new OpConstant with the specified value and type. |
|
| Method Summary | |
|---|---|
HClass |
getType()
Return the HClass type of this Operand. |
Object |
getValue()
Return the value of this Operand. |
String |
toString()
Return a human-readable representation of this OpConstant. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OpConstant(Object value,
HClass type)
OpConstant with the specified value and type.
public OpConstant(Code parent,
int constant_pool_index)
OpConstant from a
constant_pool entry.
| Method Detail |
|---|
public Object getValue()
Operand.
public HClass getType()
HClass type of this Operand.
public String toString()
toString in class Operand
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||