Package soot.jimple
Class RealConstant
- java.lang.Object
-
- soot.jimple.Constant
-
- soot.jimple.NumericConstant
-
- soot.jimple.RealConstant
-
- All Implemented Interfaces:
Serializable,EquivTo,Immediate,ConvertToBaf,Switchable,Value
- Direct Known Subclasses:
DecimalConstant,DoubleConstant,FloatConstant
public abstract class RealConstant extends NumericConstant
Base type for floating point constants.- See Also:
DoubleConstant,FloatConstant, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RealConstant()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract IntConstantcmpg(RealConstant constant)Performs the indicated floating point comparison.abstract IntConstantcmpl(RealConstant constant)Performs the indicated floating point comparison.-
Methods inherited from class soot.jimple.NumericConstant
add, divide, equalEqual, getNumericValue, greaterThan, greaterThanOrEqual, isLessThan, lessThan, lessThanOrEqual, multiply, negate, notEqual, remainder, subtract
-
Methods inherited from class soot.jimple.Constant
clone, convertToBaf, equivHashCode, equivTo, getUseBoxes, toString
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface soot.util.Switchable
apply
-
-
-
-
Method Detail
-
cmpl
public abstract IntConstant cmpl(RealConstant constant)
Performs the indicated floating point comparison. ForNaNcomparisons-1is returned.- Parameters:
constant- the value to compare with- Returns:
0if values are equal,1if passed value less, or-1if passed value greater. When any of the values isNaNmethod returns-1.
-
cmpg
public abstract IntConstant cmpg(RealConstant constant)
Performs the indicated floating point comparison. ForNaNcomparisons1is returned.- Parameters:
constant- the value to compare with- Returns:
0if values are equal,1if passed value less, or-1if passed value greater. When any of the values isNaNmethod returns1.
-
-