public final class HeapOperand<T> extends Operand
Operand
,
HeapVariable
Modifier and Type | Field and Description |
---|---|
HeapVariable<T> |
value
The heap variable corresponding to this operand.
|
instruction
Constructor and Description |
---|
HeapOperand(HeapVariable<T> heap)
Construct an operand corresponding to a heap variable.
|
Modifier and Type | Method and Description |
---|---|
HeapOperand<T> |
copy()
Construct a new heap operand associated with the same heap variable as
this operand
|
T |
getHeapType()
Return the type corresponding to the heap variable associated with
this operand.
|
HeapVariable<T> |
getHeapVariable()
Return the heap variable corresponding to this operand.
|
Instruction |
getInstruction()
Return the instruction associated with this operand.
|
int |
getNumber()
Return the number of the heap variable corresponding to this
operand.
|
void |
setInstruction(Instruction s)
Associate this operand with a given instruction.
|
boolean |
similar(Operand op)
Does this operand correspond to the same heap variable as another
heap operand?
|
String |
toString()
Return a 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, getType, isAddress, isAddressConstant, isBlock, isBranch, isClassConstant, isConstant, isDefinitelyNull, isDouble, isDoubleConstant, isFloat, isFloatConstant, isInt, isIntConstant, isIntLike, isLocation, isLong, isLongConstant, isMemory, isMethod, isMovableObjectConstant, isNullConstant, isObjectConstant, isRef, isRegister, isStackLocation, isStringConstant, isTIBConstant, isTrueGuard, isType, meet
public final HeapVariable<T> value
public HeapOperand(HeapVariable<T> heap)
heap
- the heap variable corresponding to this operand.public HeapVariable<T> getHeapVariable()
public int getNumber()
public T getHeapType()
public HeapOperand<T> copy()
public boolean similar(Operand op)
public void setInstruction(Instruction s)
s
- the associated instructionpublic Instruction getInstruction()