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
(@NonNull V v) Called when this object is visited.@NonNull DoubleConstant
add
(@NonNull DoubleConstant c) @NonNull IntConstant
cmpg
(@NonNull DoubleConstant constant) Performs the indicated floating point comparison.@NonNull IntConstant
cmpl
(@NonNull DoubleConstant constant) Performs the indicated floating point comparison.@NonNull DoubleConstant
divide
(@NonNull DoubleConstant c) @NonNull BooleanConstant
equalEqual
(@NonNull DoubleConstant c) boolean
static DoubleConstant
getInstance
(double value) @NonNull Type
getType()
Returns the Soot type of this Value.double
getValue()
@NonNull BooleanConstant
greaterThan
(@NonNull DoubleConstant c) @NonNull BooleanConstant
greaterThanOrEqual
(@NonNull DoubleConstant c) int
hashCode()
Returns a hash code for this DoubleConstant object.@NonNull BooleanConstant
lessThan
(@NonNull DoubleConstant c) @NonNull BooleanConstant
lessThanOrEqual
(@NonNull DoubleConstant c) @NonNull DoubleConstant
multiply
(@NonNull DoubleConstant c) @NonNull DoubleConstant
negate()
@NonNull BooleanConstant
notEqual
(@NonNull DoubleConstant c) @NonNull DoubleConstant
remainder
(@NonNull DoubleConstant c) @NonNull DoubleConstant
subtract
(@NonNull DoubleConstant c) 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()
-