Package soot.jimple
Class LongConstant
- java.lang.Object
-
- soot.jimple.Constant
-
- soot.jimple.NumericConstant
-
- soot.jimple.ArithmeticConstant
-
- soot.jimple.LongConstant
-
- All Implemented Interfaces:
Serializable,EquivTo,Immediate,ConvertToBaf,Switchable,Value
- Direct Known Subclasses:
ULongConstant
public class LongConstant extends ArithmeticConstant
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static LongConstantONElongvaluestatic LongConstantZERO
-
Constructor Summary
Constructors Modifier Constructor Description protectedLongConstant(long value)
-
Method Summary
-
Methods inherited from class soot.jimple.Constant
clone, convertToBaf, equivHashCode, equivTo, getUseBoxes, toString
-
-
-
-
Field Detail
-
value
public final long value
-
ZERO
public static final LongConstant ZERO
-
ONE
public static final LongConstant ONE
-
-
Method Detail
-
v
public static LongConstant v(long value)
-
hashCode
public int hashCode()
Returns a hash code for this DoubleConstant object.
-
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
-
cmp
public IntConstant cmp(LongConstant c)
-
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
-
-