Class IntConstant
java.lang.Object
sootup.core.jimple.common.constant.IntConstant
- All Implemented Interfaces:
EquivTo,ComparableConstant<IntConstant>,Constant,LogicalConstant<IntConstant>,NumericConstant<IntConstant>,ShiftableConstant<IntConstant>,Immediate,Value,JimpleIR,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 IntConstantadd(@NonNull IntConstant c) @NonNull IntConstantand(@NonNull IntConstant c) @NonNull IntConstantdivide(@NonNull IntConstant c) @NonNull BooleanConstantequalEqual(@NonNull IntConstant c) booleanstatic IntConstantgetInstance(int value) @NonNull TypegetType()Returns the Soot type of this Value.intgetValue()@NonNull BooleanConstantgreaterThan(@NonNull IntConstant c) @NonNull BooleanConstantgreaterThanOrEqual(@NonNull IntConstant c) inthashCode()@NonNull BooleanConstantlessThan(@NonNull IntConstant c) @NonNull BooleanConstantlessThanOrEqual(@NonNull IntConstant c) @NonNull IntConstantmultiply(@NonNull IntConstant c) @NonNull IntConstantnegate()@NonNull BooleanConstantnotEqual(@NonNull IntConstant c) @NonNull IntConstantor(@NonNull IntConstant c) @NonNull IntConstantremainder(@NonNull IntConstant c) @NonNull IntConstantshiftLeft(@NonNull IntConstant c) @NonNull IntConstantshiftRight(@NonNull IntConstant c) @NonNull IntConstantsubtract(@NonNull IntConstant c) toString()@NonNull IntConstantunsignedShiftRight(@NonNull IntConstant c) @NonNull IntConstantxor(@NonNull IntConstant c) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
addin interfaceNumericConstant<IntConstant>
-
subtract
- Specified by:
subtractin interfaceNumericConstant<IntConstant>
-
multiply
- Specified by:
multiplyin interfaceNumericConstant<IntConstant>
-
divide
- Specified by:
dividein interfaceNumericConstant<IntConstant>
-
remainder
- Specified by:
remainderin interfaceNumericConstant<IntConstant>
-
equalEqual
- Specified by:
equalEqualin interfaceComparableConstant<IntConstant>
-
notEqual
- Specified by:
notEqualin interfaceComparableConstant<IntConstant>
-
lessThan
- Specified by:
lessThanin interfaceNumericConstant<IntConstant>
-
lessThanOrEqual
- Specified by:
lessThanOrEqualin interfaceNumericConstant<IntConstant>
-
greaterThan
- Specified by:
greaterThanin interfaceNumericConstant<IntConstant>
-
greaterThanOrEqual
- Specified by:
greaterThanOrEqualin interfaceNumericConstant<IntConstant>
-
negate
- Specified by:
negatein interfaceNumericConstant<IntConstant>
-
and
- Specified by:
andin interfaceLogicalConstant<IntConstant>
-
or
- Specified by:
orin interfaceLogicalConstant<IntConstant>
-
xor
- Specified by:
xorin interfaceLogicalConstant<IntConstant>
-
shiftLeft
- Specified by:
shiftLeftin interfaceShiftableConstant<IntConstant>
-
shiftRight
- Specified by:
shiftRightin interfaceShiftableConstant<IntConstant>
-
unsignedShiftRight
- Specified by:
unsignedShiftRightin interfaceShiftableConstant<IntConstant>
-
toString
-
getType
Description copied from interface:ValueReturns the Soot type of this Value. -
accept
Description copied from interface:AcceptorCalled when this object is visited.- Specified by:
acceptin interfaceAcceptor<ConstantVisitor>
-
getValue
public int getValue()
-