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 LongConstant
ONE
long
value
static LongConstant
ZERO
-
Constructor Summary
Constructors Modifier Constructor Description protected
LongConstant(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:
add
in classNumericConstant
-
subtract
public NumericConstant subtract(NumericConstant c)
- Specified by:
subtract
in classNumericConstant
-
multiply
public NumericConstant multiply(NumericConstant c)
- Specified by:
multiply
in classNumericConstant
-
divide
public NumericConstant divide(NumericConstant c)
- Specified by:
divide
in classNumericConstant
-
remainder
public NumericConstant remainder(NumericConstant c)
- Specified by:
remainder
in classNumericConstant
-
equalEqual
public NumericConstant equalEqual(NumericConstant c)
- Specified by:
equalEqual
in classNumericConstant
-
notEqual
public NumericConstant notEqual(NumericConstant c)
- Specified by:
notEqual
in classNumericConstant
-
isLessThan
public boolean isLessThan(NumericConstant c)
- Specified by:
isLessThan
in classNumericConstant
-
lessThan
public NumericConstant lessThan(NumericConstant c)
- Specified by:
lessThan
in classNumericConstant
-
lessThanOrEqual
public NumericConstant lessThanOrEqual(NumericConstant c)
- Specified by:
lessThanOrEqual
in classNumericConstant
-
greaterThan
public NumericConstant greaterThan(NumericConstant c)
- Specified by:
greaterThan
in classNumericConstant
-
greaterThanOrEqual
public NumericConstant greaterThanOrEqual(NumericConstant c)
- Specified by:
greaterThanOrEqual
in classNumericConstant
-
cmp
public IntConstant cmp(LongConstant c)
-
negate
public NumericConstant negate()
- Specified by:
negate
in classNumericConstant
-
and
public ArithmeticConstant and(ArithmeticConstant c)
- Specified by:
and
in classArithmeticConstant
-
or
public ArithmeticConstant or(ArithmeticConstant c)
- Specified by:
or
in classArithmeticConstant
-
xor
public ArithmeticConstant xor(ArithmeticConstant c)
- Specified by:
xor
in classArithmeticConstant
-
shiftLeft
public ArithmeticConstant shiftLeft(ArithmeticConstant c)
- Specified by:
shiftLeft
in classArithmeticConstant
-
shiftRight
public ArithmeticConstant shiftRight(ArithmeticConstant c)
- Specified by:
shiftRight
in classArithmeticConstant
-
unsignedShiftRight
public ArithmeticConstant unsignedShiftRight(ArithmeticConstant c)
- Specified by:
unsignedShiftRight
in classArithmeticConstant
-
getType
public Type getType()
Description copied from interface:Value
Returns the Soot type of this Value.
-
apply
public void apply(Switch sw)
Description copied from interface:Switchable
Called when this object is visited.
-
getNumericValue
public Number getNumericValue()
- Specified by:
getNumericValue
in classNumericConstant
-
-