Class LongConstant
java.lang.Object
sootup.core.jimple.common.constant.LongConstant
- All Implemented Interfaces:
EquivTo
,Immediate
,Value
,ComparableConstant<LongConstant>
,Constant
,LogicalConstant<LongConstant>
,NumericConstant<LongConstant>
,ShiftableConstant<LongConstant>
,Acceptor<ConstantVisitor>
A 64-bit integer constant
-
Method Summary
Modifier and TypeMethodDescription<V extends ConstantVisitor>
Vaccept
(V v) Called when this object is visited.add
(LongConstant c) and
(LongConstant c) cmp
(LongConstant c) Compares the value of LongConstant.boolean
static LongConstant
getInstance
(long value) getType()
Returns the Soot type of this Value.long
getValue()
int
hashCode()
Returns a hash code for this DoubleConstant object.negate()
or
(LongConstant c) toString()
xor
(LongConstant 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
-
Method Details
-
getInstance
-
equals
-
hashCode
public int hashCode()Returns a hash code for this DoubleConstant object. -
add
- Specified by:
add
in interfaceNumericConstant<LongConstant>
-
subtract
- Specified by:
subtract
in interfaceNumericConstant<LongConstant>
-
multiply
- Specified by:
multiply
in interfaceNumericConstant<LongConstant>
-
divide
- Specified by:
divide
in interfaceNumericConstant<LongConstant>
-
remainder
- Specified by:
remainder
in interfaceNumericConstant<LongConstant>
-
equalEqual
- Specified by:
equalEqual
in interfaceComparableConstant<LongConstant>
-
notEqual
- Specified by:
notEqual
in interfaceComparableConstant<LongConstant>
-
lessThan
- Specified by:
lessThan
in interfaceNumericConstant<LongConstant>
-
lessThanOrEqual
- Specified by:
lessThanOrEqual
in interfaceNumericConstant<LongConstant>
-
greaterThan
- Specified by:
greaterThan
in interfaceNumericConstant<LongConstant>
-
greaterThanOrEqual
- Specified by:
greaterThanOrEqual
in interfaceNumericConstant<LongConstant>
-
cmp
Compares the value of LongConstant. -
negate
- Specified by:
negate
in interfaceNumericConstant<LongConstant>
-
and
- Specified by:
and
in interfaceLogicalConstant<LongConstant>
-
or
- Specified by:
or
in interfaceLogicalConstant<LongConstant>
-
xor
- Specified by:
xor
in interfaceLogicalConstant<LongConstant>
-
shiftLeft
- Specified by:
shiftLeft
in interfaceShiftableConstant<LongConstant>
-
shiftRight
- Specified by:
shiftRight
in interfaceShiftableConstant<LongConstant>
-
unsignedShiftRight
- Specified by:
unsignedShiftRight
in interfaceShiftableConstant<LongConstant>
-
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 long getValue()
-