All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----harpoon.IR.Bytecode.Operand | +----harpoon.IR.Bytecode.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
.
OpConstant
from a
constant_pool
entry.
OpConstant
with the specified value and type.
HClass
type of this Operand
.
Operand
.
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.
public Object getValue()
Operand
.
public HClass getType()
HClass
type of this Operand
.
public String toString()
All Packages Class Hierarchy This Package Previous Next Index