Package proguard.evaluation.value
Class ParticularDoubleValue
- java.lang.Object
-
- proguard.evaluation.value.Value
-
- proguard.evaluation.value.Category2Value
-
- proguard.evaluation.value.DoubleValue
-
- proguard.evaluation.value.SpecificDoubleValue
-
- proguard.evaluation.value.ParticularDoubleValue
-
public final class ParticularDoubleValue extends SpecificDoubleValue
ThisDoubleValuerepresents a particular double value.
-
-
Field Summary
-
Fields inherited from class proguard.evaluation.value.Value
ALWAYS, MAYBE, NEVER, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INSTRUCTION_OFFSET, TYPE_INTEGER, TYPE_LONG, TYPE_REFERENCE, TYPE_TOP, TYPE_UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description ParticularDoubleValue(double value)Creates a new particular double value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleValueadd(DoubleValue other)Returns the sum of this DoubleValue and the given DoubleValue.DoubleValueadd(ParticularDoubleValue other)Returns the sum of this DoubleValue and the given ParticularDoubleValue.IntegerValuecompare(DoubleValue other)Returns an IntegerValue with value -1, 0, or 1, if this DoubleValue is less than, equal to, or greater than the given DoubleValue, respectively.IntegerValuecompare(ParticularDoubleValue other)Returns an IntegerValue with value -1, 0, or 1, if this DoubleValue is less than, equal to, or greater than the given ParticularDoubleValue, respectively.FloatValueconvertToFloat()Converts this DoubleValue to a FloatValue.IntegerValueconvertToInteger()Converts this DoubleValue to an IntegerValue.LongValueconvertToLong()Converts this DoubleValue to a LongValue.DoubleValuedivide(DoubleValue other)Returns the quotient of this DoubleValue and the given DoubleValue.DoubleValuedivide(ParticularDoubleValue other)Returns the quotient of this DoubleValue and the given ParticularDoubleValue.DoubleValuedivideOf(DoubleValue other)Returns the quotient of the given DoubleValue and this DoubleValue.DoubleValuedivideOf(ParticularDoubleValue other)Returns the quotient of the given ParticularDoubleValue and this DoubleValue.booleanequals(java.lang.Object object)DoubleValuegeneralize(DoubleValue other)Returns the generalization of this DoubleValue and the given other DoubleValue.DoubleValuegeneralize(ParticularDoubleValue other)Returns the generalization of this DoubleValue and the given other ParticularDoubleValue.inthashCode()booleanisParticular()Returns whether this Value represents a single particular (known) value.DoubleValuemultiply(DoubleValue other)Returns the product of this DoubleValue and the given DoubleValue.DoubleValuemultiply(ParticularDoubleValue other)Returns the product of this DoubleValue and the given ParticularDoubleValue.DoubleValuenegate()Returns the negated value of this DoubleValue.DoubleValueremainder(DoubleValue other)Returns the remainder of this DoubleValue divided by the given DoubleValue.DoubleValueremainder(ParticularDoubleValue other)Returns the remainder of this DoubleValue divided by the given ParticularDoubleValue.DoubleValueremainderOf(DoubleValue other)Returns the remainder of the given DoubleValue divided by this DoubleValue.DoubleValueremainderOf(ParticularDoubleValue other)Returns the remainder of the given ParticularDoubleValue and this DoubleValue.DoubleValuesubtract(DoubleValue other)Returns the difference of this DoubleValue and the given DoubleValue.DoubleValuesubtract(ParticularDoubleValue other)Returns the difference of this DoubleValue and the given ParticularDoubleValue.DoubleValuesubtractFrom(DoubleValue other)Returns the difference of the given DoubleValue and this DoubleValue.DoubleValuesubtractFrom(ParticularDoubleValue other)Returns the difference of the given ParticularDoubleValue and this DoubleValue.java.lang.StringtoString()doublevalue()Returns the specific double value, if applicable.-
Methods inherited from class proguard.evaluation.value.SpecificDoubleValue
add, compare, divide, divideOf, generalize, isSpecific, multiply, remainder, remainderOf, subtract, subtractFrom
-
Methods inherited from class proguard.evaluation.value.DoubleValue
compareReverse, compareReverse, compareReverse, computationalType, doubleValue, generalize, internalType
-
Methods inherited from class proguard.evaluation.value.Category2Value
category2Value, isCategory2
-
Methods inherited from class proguard.evaluation.value.Value
category1Value, copyIfMutable, floatValue, instructionOffsetValue, integerValue, longValue, referenceValue
-
-
-
-
Method Detail
-
value
public double value()
Description copied from class:DoubleValueReturns the specific double value, if applicable.- Overrides:
valuein classDoubleValue
-
negate
public DoubleValue negate()
Description copied from class:DoubleValueReturns the negated value of this DoubleValue.- Overrides:
negatein classSpecificDoubleValue
-
convertToInteger
public IntegerValue convertToInteger()
Description copied from class:DoubleValueConverts this DoubleValue to an IntegerValue.- Overrides:
convertToIntegerin classSpecificDoubleValue
-
convertToLong
public LongValue convertToLong()
Description copied from class:DoubleValueConverts this DoubleValue to a LongValue.- Overrides:
convertToLongin classSpecificDoubleValue
-
convertToFloat
public FloatValue convertToFloat()
Description copied from class:DoubleValueConverts this DoubleValue to a FloatValue.- Overrides:
convertToFloatin classSpecificDoubleValue
-
generalize
public DoubleValue generalize(DoubleValue other)
Description copied from class:DoubleValueReturns the generalization of this DoubleValue and the given other DoubleValue.- Overrides:
generalizein classSpecificDoubleValue
-
add
public DoubleValue add(DoubleValue other)
Description copied from class:DoubleValueReturns the sum of this DoubleValue and the given DoubleValue.- Overrides:
addin classSpecificDoubleValue
-
subtract
public DoubleValue subtract(DoubleValue other)
Description copied from class:DoubleValueReturns the difference of this DoubleValue and the given DoubleValue.- Overrides:
subtractin classSpecificDoubleValue
-
subtractFrom
public DoubleValue subtractFrom(DoubleValue other)
Description copied from class:DoubleValueReturns the difference of the given DoubleValue and this DoubleValue.- Overrides:
subtractFromin classSpecificDoubleValue
-
multiply
public DoubleValue multiply(DoubleValue other)
Description copied from class:DoubleValueReturns the product of this DoubleValue and the given DoubleValue.- Overrides:
multiplyin classSpecificDoubleValue
-
divide
public DoubleValue divide(DoubleValue other)
Description copied from class:DoubleValueReturns the quotient of this DoubleValue and the given DoubleValue.- Overrides:
dividein classSpecificDoubleValue
-
divideOf
public DoubleValue divideOf(DoubleValue other)
Description copied from class:DoubleValueReturns the quotient of the given DoubleValue and this DoubleValue.- Overrides:
divideOfin classSpecificDoubleValue
-
remainder
public DoubleValue remainder(DoubleValue other)
Description copied from class:DoubleValueReturns the remainder of this DoubleValue divided by the given DoubleValue.- Overrides:
remainderin classSpecificDoubleValue
-
remainderOf
public DoubleValue remainderOf(DoubleValue other)
Description copied from class:DoubleValueReturns the remainder of the given DoubleValue divided by this DoubleValue.- Overrides:
remainderOfin classSpecificDoubleValue
-
compare
public IntegerValue compare(DoubleValue other)
Description copied from class:DoubleValueReturns an IntegerValue with value -1, 0, or 1, if this DoubleValue is less than, equal to, or greater than the given DoubleValue, respectively.- Overrides:
comparein classSpecificDoubleValue
-
generalize
public DoubleValue generalize(ParticularDoubleValue other)
Description copied from class:DoubleValueReturns the generalization of this DoubleValue and the given other ParticularDoubleValue.- Overrides:
generalizein classDoubleValue
-
add
public DoubleValue add(ParticularDoubleValue other)
Description copied from class:DoubleValueReturns the sum of this DoubleValue and the given ParticularDoubleValue.- Overrides:
addin classDoubleValue
-
subtract
public DoubleValue subtract(ParticularDoubleValue other)
Description copied from class:DoubleValueReturns the difference of this DoubleValue and the given ParticularDoubleValue.- Overrides:
subtractin classDoubleValue
-
subtractFrom
public DoubleValue subtractFrom(ParticularDoubleValue other)
Description copied from class:DoubleValueReturns the difference of the given ParticularDoubleValue and this DoubleValue.- Overrides:
subtractFromin classDoubleValue
-
multiply
public DoubleValue multiply(ParticularDoubleValue other)
Description copied from class:DoubleValueReturns the product of this DoubleValue and the given ParticularDoubleValue.- Overrides:
multiplyin classDoubleValue
-
divide
public DoubleValue divide(ParticularDoubleValue other)
Description copied from class:DoubleValueReturns the quotient of this DoubleValue and the given ParticularDoubleValue.- Overrides:
dividein classDoubleValue
-
divideOf
public DoubleValue divideOf(ParticularDoubleValue other)
Description copied from class:DoubleValueReturns the quotient of the given ParticularDoubleValue and this DoubleValue.- Overrides:
divideOfin classDoubleValue
-
remainder
public DoubleValue remainder(ParticularDoubleValue other)
Description copied from class:DoubleValueReturns the remainder of this DoubleValue divided by the given ParticularDoubleValue.- Overrides:
remainderin classDoubleValue
-
remainderOf
public DoubleValue remainderOf(ParticularDoubleValue other)
Description copied from class:DoubleValueReturns the remainder of the given ParticularDoubleValue and this DoubleValue.- Overrides:
remainderOfin classDoubleValue
-
compare
public IntegerValue compare(ParticularDoubleValue other)
Description copied from class:DoubleValueReturns an IntegerValue with value -1, 0, or 1, if this DoubleValue is less than, equal to, or greater than the given ParticularDoubleValue, respectively.- Overrides:
comparein classDoubleValue
-
isParticular
public boolean isParticular()
Description copied from class:ValueReturns whether this Value represents a single particular (known) value.- Overrides:
isParticularin classValue
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classSpecificDoubleValue
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSpecificDoubleValue
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-