Class FloatConstant
java.lang.Object
sootup.core.jimple.common.constant.FloatConstant
- All Implemented Interfaces:
EquivTo,ComparableConstant<FloatConstant>,Constant,NumericConstant<FloatConstant>,RealConstant<FloatConstant>,Immediate,Value,JimpleIR,Acceptor<ConstantVisitor>
Floating point constant with single precision.
-
Method Summary
Modifier and TypeMethodDescription<V extends ConstantVisitor>
Vaccept(@NonNull V v) Called when this object is visited.@NonNull FloatConstantadd(@NonNull FloatConstant c) @NonNull IntConstantcmpg(@NonNull FloatConstant constant) Performs the indicated floating point comparison.@NonNull IntConstantcmpl(@NonNull FloatConstant constant) Performs the indicated floating point comparison.@NonNull FloatConstantdivide(@NonNull FloatConstant c) @NonNull BooleanConstantequalEqual(@NonNull FloatConstant c) booleanstatic FloatConstantgetInstance(float value) @NonNull TypegetType()Returns the Soot type of this Value.floatgetValue()@NonNull BooleanConstantgreaterThan(@NonNull FloatConstant c) @NonNull BooleanConstantgreaterThanOrEqual(@NonNull FloatConstant c) inthashCode()Returns a hash code for this FloatConstant object.@NonNull BooleanConstantlessThan(@NonNull FloatConstant c) @NonNull BooleanConstantlessThanOrEqual(@NonNull FloatConstant c) @NonNull FloatConstantmultiply(@NonNull FloatConstant c) @NonNull FloatConstantnegate()@NonNull BooleanConstantnotEqual(@NonNull FloatConstant c) @NonNull FloatConstantremainder(@NonNull FloatConstant c) @NonNull FloatConstantsubtract(@NonNull FloatConstant c) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
addin interfaceNumericConstant<FloatConstant>
-
subtract
- Specified by:
subtractin interfaceNumericConstant<FloatConstant>
-
multiply
- Specified by:
multiplyin interfaceNumericConstant<FloatConstant>
-
divide
- Specified by:
dividein interfaceNumericConstant<FloatConstant>
-
remainder
- Specified by:
remainderin interfaceNumericConstant<FloatConstant>
-
equalEqual
- Specified by:
equalEqualin interfaceComparableConstant<FloatConstant>
-
notEqual
- Specified by:
notEqualin interfaceComparableConstant<FloatConstant>
-
lessThan
- Specified by:
lessThanin interfaceNumericConstant<FloatConstant>
-
lessThanOrEqual
- Specified by:
lessThanOrEqualin interfaceNumericConstant<FloatConstant>
-
greaterThan
- Specified by:
greaterThanin interfaceNumericConstant<FloatConstant>
-
greaterThanOrEqual
- Specified by:
greaterThanOrEqualin interfaceNumericConstant<FloatConstant>
-
cmpg
Description copied from interface:RealConstantPerforms the indicated floating point comparison. ForNaNcomparisons1is returned.- Specified by:
cmpgin interfaceRealConstant<FloatConstant>- 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 isNaNreturns1.
-
cmpl
Description copied from interface:RealConstantPerforms the indicated floating point comparison. ForNaNcomparisons-1is returned.- Specified by:
cmplin interfaceRealConstant<FloatConstant>- 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 isNaNreturns-1.
-
negate
- Specified by:
negatein interfaceNumericConstant<FloatConstant>
-
toString
-
getType
Description copied from interface:ValueReturns the Soot type of this Value. -
accept
Description copied from interface:AcceptorCalled when this object is visited.- Specified by:
acceptin interfaceAcceptor<ConstantVisitor>
-
getValue
public float getValue()
-