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
Constructors -
Method Summary
Modifier and TypeMethodDescription<V extends ConstantVisitor>
Vaccept
(@NonNull V v) Called when this object is visited.@NonNull IntConstant
add
(@NonNull IntConstant c) @NonNull IntConstant
and
(@NonNull IntConstant c) @NonNull IntConstant
divide
(@NonNull IntConstant c) @NonNull BooleanConstant
equalEqual
(@NonNull IntConstant c) boolean
static IntConstant
getInstance
(int value) @NonNull Type
getType()
Returns the Soot type of this Value.int
getValue()
@NonNull BooleanConstant
greaterThan
(@NonNull IntConstant c) @NonNull BooleanConstant
greaterThanOrEqual
(@NonNull IntConstant c) int
hashCode()
@NonNull BooleanConstant
lessThan
(@NonNull IntConstant c) @NonNull BooleanConstant
lessThanOrEqual
(@NonNull IntConstant c) @NonNull IntConstant
multiply
(@NonNull IntConstant c) @NonNull IntConstant
negate()
@NonNull BooleanConstant
notEqual
(@NonNull IntConstant c) @NonNull IntConstant
or
(@NonNull IntConstant c) @NonNull IntConstant
remainder
(@NonNull IntConstant c) @NonNull IntConstant
shiftLeft
(@NonNull IntConstant c) @NonNull IntConstant
shiftRight
(@NonNull IntConstant c) @NonNull IntConstant
subtract
(@NonNull IntConstant c) toString()
@NonNull IntConstant
unsignedShiftRight
(@NonNull IntConstant c) @NonNull IntConstant
xor
(@NonNull 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
protected IntConstant(int value)
-
-
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()
-