Interface RealConstant<R extends RealConstant<R>>
- All Superinterfaces:
Acceptor<ConstantVisitor>
,ComparableConstant<R>
,Constant
,EquivTo
,Immediate
,NumericConstant<R>
,Value
- All Known Implementing Classes:
DoubleConstant
,FloatConstant
Base type for floating point constants.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionPerforms the indicated floating point comparison.Performs the indicated floating point comparison.Methods inherited from interface sootup.core.jimple.common.constant.ComparableConstant
equalEqual, notEqual
Methods inherited from interface sootup.core.jimple.common.constant.Constant
equivHashCode, equivTo, getUses, toString
Methods inherited from interface sootup.core.jimple.common.constant.NumericConstant
add, divide, greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual, multiply, negate, remainder, subtract
-
Method Details
-
cmpl
Performs the indicated floating point comparison. ForNaN
comparisons-1
is returned.- 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
.
-
cmpg
Performs the indicated floating point comparison. ForNaN
comparisons1
is returned.- 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
.
-