Class DoubleConstant
java.lang.Object
sootup.core.jimple.common.constant.DoubleConstant
- All Implemented Interfaces:
EquivTo,ComparableConstant<DoubleConstant>,Constant,NumericConstant<DoubleConstant>,RealConstant<DoubleConstant>,Immediate,Value,JimpleIR,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 DoubleConstantadd(@NonNull DoubleConstant c) @NonNull IntConstantcmpg(@NonNull DoubleConstant constant) Performs the indicated floating point comparison.@NonNull IntConstantcmpl(@NonNull DoubleConstant constant) Performs the indicated floating point comparison.@NonNull DoubleConstantdivide(@NonNull DoubleConstant c) @NonNull BooleanConstantequalEqual(@NonNull DoubleConstant c) booleanstatic DoubleConstantgetInstance(double value) @NonNull TypegetType()Returns the Soot type of this Value.doublegetValue()@NonNull BooleanConstantgreaterThan(@NonNull DoubleConstant c) @NonNull BooleanConstantgreaterThanOrEqual(@NonNull DoubleConstant c) inthashCode()Returns a hash code for this DoubleConstant object.@NonNull BooleanConstantlessThan(@NonNull DoubleConstant c) @NonNull BooleanConstantlessThanOrEqual(@NonNull DoubleConstant c) @NonNull DoubleConstantmultiply(@NonNull DoubleConstant c) @NonNull DoubleConstantnegate()@NonNull BooleanConstantnotEqual(@NonNull DoubleConstant c) @NonNull DoubleConstantremainder(@NonNull DoubleConstant c) @NonNull DoubleConstantsubtract(@NonNull DoubleConstant 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 DoubleConstant object. -
add
- Specified by:
addin interfaceNumericConstant<DoubleConstant>
-
subtract
- Specified by:
subtractin interfaceNumericConstant<DoubleConstant>
-
multiply
- Specified by:
multiplyin interfaceNumericConstant<DoubleConstant>
-
divide
- Specified by:
dividein interfaceNumericConstant<DoubleConstant>
-
remainder
- Specified by:
remainderin interfaceNumericConstant<DoubleConstant>
-
equalEqual
- Specified by:
equalEqualin interfaceComparableConstant<DoubleConstant>
-
notEqual
- Specified by:
notEqualin interfaceComparableConstant<DoubleConstant>
-
lessThan
- Specified by:
lessThanin interfaceNumericConstant<DoubleConstant>
-
lessThanOrEqual
- Specified by:
lessThanOrEqualin interfaceNumericConstant<DoubleConstant>
-
greaterThan
- Specified by:
greaterThanin interfaceNumericConstant<DoubleConstant>
-
greaterThanOrEqual
- Specified by:
greaterThanOrEqualin interfaceNumericConstant<DoubleConstant>
-
cmpg
Description copied from interface:RealConstantPerforms the indicated floating point comparison. ForNaNcomparisons1is returned.- Specified by:
cmpgin interfaceRealConstant<DoubleConstant>- 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<DoubleConstant>- 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<DoubleConstant>
-
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 double getValue()
-