Class IntConstant
java.lang.Object
sootup.core.jimple.common.constant.IntConstant
- All Implemented Interfaces:
EquivTo
,Immediate
,Value
,ComparableConstant<IntConstant>
,Constant
,LogicalConstant<IntConstant>
,NumericConstant<IntConstant>
,ShiftableConstant<IntConstant>
,Acceptor<ConstantVisitor>
A 32-bit integer constant.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<V extends ConstantVisitor>
Vaccept
(V v) Called when this object is visited.add
(IntConstant c) and
(IntConstant c) boolean
static IntConstant
getInstance
(int value) getType()
Returns the Soot type of this Value.int
getValue()
int
hashCode()
negate()
or
(IntConstant c) toString()
xor
(IntConstant c) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface sootup.core.jimple.common.constant.Constant
equivHashCode, equivTo, getUses, toString
-
Constructor Details
-
IntConstant
-
-
Method Details
-
getInstance
-
equals
-
hashCode
public int hashCode() -
add
- Specified by:
add
in interfaceNumericConstant<IntConstant>
-
subtract
- Specified by:
subtract
in interfaceNumericConstant<IntConstant>
-
multiply
- Specified by:
multiply
in interfaceNumericConstant<IntConstant>
-
divide
- Specified by:
divide
in interfaceNumericConstant<IntConstant>
-
remainder
- Specified by:
remainder
in interfaceNumericConstant<IntConstant>
-
equalEqual
- Specified by:
equalEqual
in interfaceComparableConstant<IntConstant>
-
notEqual
- Specified by:
notEqual
in interfaceComparableConstant<IntConstant>
-
lessThan
- Specified by:
lessThan
in interfaceNumericConstant<IntConstant>
-
lessThanOrEqual
- Specified by:
lessThanOrEqual
in interfaceNumericConstant<IntConstant>
-
greaterThan
- Specified by:
greaterThan
in interfaceNumericConstant<IntConstant>
-
greaterThanOrEqual
- Specified by:
greaterThanOrEqual
in interfaceNumericConstant<IntConstant>
-
negate
- Specified by:
negate
in interfaceNumericConstant<IntConstant>
-
and
- Specified by:
and
in interfaceLogicalConstant<IntConstant>
-
or
- Specified by:
or
in interfaceLogicalConstant<IntConstant>
-
xor
- Specified by:
xor
in interfaceLogicalConstant<IntConstant>
-
shiftLeft
- Specified by:
shiftLeft
in interfaceShiftableConstant<IntConstant>
-
shiftRight
- Specified by:
shiftRight
in interfaceShiftableConstant<IntConstant>
-
unsignedShiftRight
- Specified by:
unsignedShiftRight
in interfaceShiftableConstant<IntConstant>
-
toString
-
getType
Description copied from interface:Value
Returns the Soot type of this Value. -
accept
Description copied from interface:Acceptor
Called when this object is visited.- Specified by:
accept
in interfaceAcceptor<ConstantVisitor>
-
getValue
public int getValue()
-