Package soot.jimple
Class IntConstant
- java.lang.Object
-
- soot.jimple.Constant
-
- soot.jimple.NumericConstant
-
- soot.jimple.ArithmeticConstant
-
- soot.jimple.IntConstant
-
- All Implemented Interfaces:
Serializable,EquivTo,Immediate,ConvertToBaf,Switchable,Value
- Direct Known Subclasses:
BooleanConstant,ByteConstant,CharConstant,DIntConstant,ShortConstant,UByteConstant,UIntConstant,UShortConstant
public class IntConstant extends ArithmeticConstant
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description intvalue
-
Constructor Summary
Constructors Modifier Constructor Description protectedIntConstant(int value)
-
Method Summary
-
Methods inherited from class soot.jimple.Constant
clone, convertToBaf, equivHashCode, equivTo, getUseBoxes, toString
-
-
-
-
Method Detail
-
v
public static IntConstant v(int value)
-
add
public NumericConstant add(NumericConstant c)
- Specified by:
addin classNumericConstant
-
subtract
public NumericConstant subtract(NumericConstant c)
- Specified by:
subtractin classNumericConstant
-
multiply
public NumericConstant multiply(NumericConstant c)
- Specified by:
multiplyin classNumericConstant
-
divide
public NumericConstant divide(NumericConstant c)
- Specified by:
dividein classNumericConstant
-
remainder
public NumericConstant remainder(NumericConstant c)
- Specified by:
remainderin classNumericConstant
-
equalEqual
public NumericConstant equalEqual(NumericConstant c)
- Specified by:
equalEqualin classNumericConstant
-
notEqual
public NumericConstant notEqual(NumericConstant c)
- Specified by:
notEqualin classNumericConstant
-
isLessThan
public boolean isLessThan(NumericConstant c)
- Specified by:
isLessThanin classNumericConstant
-
lessThan
public NumericConstant lessThan(NumericConstant c)
- Specified by:
lessThanin classNumericConstant
-
lessThanOrEqual
public NumericConstant lessThanOrEqual(NumericConstant c)
- Specified by:
lessThanOrEqualin classNumericConstant
-
greaterThan
public NumericConstant greaterThan(NumericConstant c)
- Specified by:
greaterThanin classNumericConstant
-
greaterThanOrEqual
public NumericConstant greaterThanOrEqual(NumericConstant c)
- Specified by:
greaterThanOrEqualin classNumericConstant
-
negate
public NumericConstant negate()
- Specified by:
negatein classNumericConstant
-
and
public ArithmeticConstant and(ArithmeticConstant c)
- Specified by:
andin classArithmeticConstant
-
or
public ArithmeticConstant or(ArithmeticConstant c)
- Specified by:
orin classArithmeticConstant
-
xor
public ArithmeticConstant xor(ArithmeticConstant c)
- Specified by:
xorin classArithmeticConstant
-
shiftLeft
public ArithmeticConstant shiftLeft(ArithmeticConstant c)
- Specified by:
shiftLeftin classArithmeticConstant
-
shiftRight
public ArithmeticConstant shiftRight(ArithmeticConstant c)
- Specified by:
shiftRightin classArithmeticConstant
-
unsignedShiftRight
public ArithmeticConstant unsignedShiftRight(ArithmeticConstant c)
- Specified by:
unsignedShiftRightin classArithmeticConstant
-
getType
public Type getType()
Description copied from interface:ValueReturns the Soot type of this Value.
-
apply
public void apply(Switch sw)
Description copied from interface:SwitchableCalled when this object is visited.
-
getNumericValue
public Number getNumericValue()
- Specified by:
getNumericValuein classNumericConstant
-
-