Class FloatConstant
java.lang.Object
sootup.core.jimple.common.constant.FloatConstant
- All Implemented Interfaces:
EquivTo
,Immediate
,Value
,ComparableConstant<FloatConstant>
,Constant
,NumericConstant<FloatConstant>
,RealConstant<FloatConstant>
,Acceptor<ConstantVisitor>
Floating point constant with single precision.
-
Method Summary
Modifier and TypeMethodDescription<V extends ConstantVisitor>
Vaccept
(V v) Called when this object is visited.add
(FloatConstant c) cmpg
(FloatConstant constant) Performs the indicated floating point comparison.cmpl
(FloatConstant constant) Performs the indicated floating point comparison.boolean
static FloatConstant
getInstance
(float value) getType()
Returns the Soot type of this Value.float
getValue()
int
hashCode()
Returns a hash code for this FloatConstant 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 FloatConstant object. -
add
- Specified by:
add
in interfaceNumericConstant<FloatConstant>
-
subtract
- Specified by:
subtract
in interfaceNumericConstant<FloatConstant>
-
multiply
- Specified by:
multiply
in interfaceNumericConstant<FloatConstant>
-
divide
- Specified by:
divide
in interfaceNumericConstant<FloatConstant>
-
remainder
- Specified by:
remainder
in interfaceNumericConstant<FloatConstant>
-
equalEqual
- Specified by:
equalEqual
in interfaceComparableConstant<FloatConstant>
-
notEqual
- Specified by:
notEqual
in interfaceComparableConstant<FloatConstant>
-
lessThan
- Specified by:
lessThan
in interfaceNumericConstant<FloatConstant>
-
lessThanOrEqual
- Specified by:
lessThanOrEqual
in interfaceNumericConstant<FloatConstant>
-
greaterThan
- Specified by:
greaterThan
in interfaceNumericConstant<FloatConstant>
-
greaterThanOrEqual
- Specified by:
greaterThanOrEqual
in interfaceNumericConstant<FloatConstant>
-
cmpg
Description copied from interface:RealConstant
Performs the indicated floating point comparison. ForNaN
comparisons1
is returned.- Specified by:
cmpg
in interfaceRealConstant<FloatConstant>
- 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<FloatConstant>
- 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<FloatConstant>
-
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 float getValue()
-