public class ObjectConstantOperand extends ConstantOperand
Operand
Modifier and Type | Field and Description |
---|---|
private boolean |
movable
Can this object be moved in memory?
|
Offset |
offset
Offset in JTOC where this object constant lives.
|
Object |
value
The non-
null object value |
instruction
Constructor and Description |
---|
ObjectConstantOperand(Object v,
Offset i)
Construct a new object constant operand
|
Modifier and Type | Method and Description |
---|---|
Operand |
copy()
Return a new operand that is semantically equivalent to
this . |
TypeReference |
getType()
Return the
TypeReference of the value represented by the operand. |
boolean |
isMovableObjectConstant()
Is the operand a movable
ObjectConstantOperand ? |
boolean |
isRef()
Does the operand represent a value of the reference data type?
|
boolean |
similar(Operand op)
Are two operands semantically equivalent?
|
String |
toString()
Returns the string representation of this operand.
|
asAddressConstant, asBlock, asBranch, asClassConstant, asCondition, asDoubleConstant, asFloatConstant, asIntConstant, asLocation, asLongConstant, asMemory, asMethod, asNullConstant, asObjectConstant, asRegister, asStackLocation, asStringConstant, asTIBConstant, asType, conservativelyApproximates, getIndexInInstruction, isAddress, isAddressConstant, isBlock, isBranch, isClassConstant, isConstant, isDefinitelyNull, isDouble, isDoubleConstant, isFloat, isFloatConstant, isInt, isIntConstant, isIntLike, isLocation, isLong, isLongConstant, isMemory, isMethod, isNullConstant, isObjectConstant, isRegister, isStackLocation, isStringConstant, isTIBConstant, isTrueGuard, isType, meet
private final boolean movable
public ObjectConstantOperand(Object v, Offset i)
v
- the object constanti
- JTOC offset of the object constantpublic Operand copy()
Operand
this
.public TypeReference getType()
Operand
TypeReference
of the value represented by the operand.public final boolean isRef()
Operand
isRef
in class Operand
true
if the data type of this
is a reference as defined by TypeReference.isReferenceType()
or false
if it is not.public boolean isMovableObjectConstant()
Operand
ObjectConstantOperand
?isMovableObjectConstant
in class Operand
movable
public boolean similar(Operand op)
Operand