Class DoubleConstant
java.lang.Object
sootup.core.jimple.common.constant.DoubleConstant
- All Implemented Interfaces:
EquivTo
,Immediate
,Value
,ComparableConstant<DoubleConstant>
,Constant
,NumericConstant<DoubleConstant>
,RealConstant<DoubleConstant>
,Acceptor<ConstantVisitor>
Floating point constant with double precision.
-
Method Summary
Modifier and TypeMethodDescription<V extends ConstantVisitor>
Vaccept
(V v) Called when this object is visited.cmpg
(DoubleConstant constant) Performs the indicated floating point comparison.cmpl
(DoubleConstant constant) Performs the indicated floating point comparison.boolean
static DoubleConstant
getInstance
(double value) getType()
Returns the Soot type of this Value.double
getValue()
int
hashCode()
Returns a hash code for this DoubleConstant object.negate()
toString()
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<DoubleConstant>
-
subtract
- Specified by:
subtract
in interfaceNumericConstant<DoubleConstant>
-
multiply
- Specified by:
multiply
in interfaceNumericConstant<DoubleConstant>
-
divide
- Specified by:
divide
in interfaceNumericConstant<DoubleConstant>
-
remainder
- Specified by:
remainder
in interfaceNumericConstant<DoubleConstant>
-
equalEqual
- Specified by:
equalEqual
in interfaceComparableConstant<DoubleConstant>
-
notEqual
- Specified by:
notEqual
in interfaceComparableConstant<DoubleConstant>
-
lessThan
- Specified by:
lessThan
in interfaceNumericConstant<DoubleConstant>
-
lessThanOrEqual
- Specified by:
lessThanOrEqual
in interfaceNumericConstant<DoubleConstant>
-
greaterThan
- Specified by:
greaterThan
in interfaceNumericConstant<DoubleConstant>
-
greaterThanOrEqual
- Specified by:
greaterThanOrEqual
in interfaceNumericConstant<DoubleConstant>
-
cmpg
Description copied from interface:RealConstant
Performs the indicated floating point comparison. ForNaN
comparisons1
is returned.- Specified by:
cmpg
in interfaceRealConstant<DoubleConstant>
- Parameters:
constant
- the value to compare with- Returns:
0
if values are equal,1
if passed value less, or-1
if passed value greater. When any of the values isNaN
returns1
.
-
cmpl
Description copied from interface:RealConstant
Performs the indicated floating point comparison. ForNaN
comparisons-1
is returned.- Specified by:
cmpl
in interfaceRealConstant<DoubleConstant>
- Parameters:
constant
- the value to compare with- Returns:
0
if values are equal,1
if passed value less, or-1
if passed value greater. When any of the values isNaN
returns-1
.
-
negate
- Specified by:
negate
in interfaceNumericConstant<DoubleConstant>
-
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 double getValue()
-