public final class IntConstantOperand extends ConstantOperand
Operand
Modifier and Type | Field and Description |
---|---|
int |
value
Value of this operand.
|
static IntConstantOperand |
zero
Constant 0, can be copied as convenient
|
instruction
Constructor and Description |
---|
IntConstantOperand(int v)
Constructs a new int constant operand with the specified value.
|
Modifier and Type | Method and Description |
---|---|
Operand |
copy()
Return a new operand that is semantically equivalent to
this . |
boolean |
equals(Object o) |
TypeReference |
getType()
Return the
TypeReference of the value represented by
the operand. |
int |
hashCode() |
boolean |
isInt()
Does the operand represent a value of the int data type?
|
boolean |
isIntLike()
Does the operand represent a value of an int-like data type?
|
int |
lower16() |
int |
lower8() |
boolean |
similar(Operand op)
Are two operands semantically equivalent?
|
String |
toString()
Returns the string representation of this operand.
|
int |
upper16() |
int |
upper24() |
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, isIntConstant, isLocation, isLong, isLongConstant, isMemory, isMethod, isMovableObjectConstant, isNullConstant, isObjectConstant, isRef, isRegister, isStackLocation, isStringConstant, isTIBConstant, isTrueGuard, isType, meet
public static final IntConstantOperand zero
public final int value
public IntConstantOperand(int v)
v
- valuepublic TypeReference getType()
TypeReference
of the value represented by
the operand. For int constants we speculate on the type
dependenent on the constant value.public boolean isIntLike()
Operand
public boolean isInt()
Operand
public Operand copy()
Operand
this
.public int lower8()
public int lower16()
public int upper16()
public int upper24()
public boolean similar(Operand op)
Operand