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
This
DoubleValue represents 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 -
Method Summary
Modifier and TypeMethodDescriptionadd(DoubleValue other) Returns the sum of this DoubleValue and the given DoubleValue.add(ParticularDoubleValue other) Returns the sum of this DoubleValue and the given ParticularDoubleValue.compare(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.compare(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.Converts this DoubleValue to a FloatValue.Converts this DoubleValue to an IntegerValue.Converts this DoubleValue to a LongValue.divide(DoubleValue other) Returns the quotient of this DoubleValue and the given DoubleValue.divide(ParticularDoubleValue other) Returns the quotient of this DoubleValue and the given ParticularDoubleValue.divideOf(DoubleValue other) Returns the quotient of the given DoubleValue and this DoubleValue.divideOf(ParticularDoubleValue other) Returns the quotient of the given ParticularDoubleValue and this DoubleValue.booleangeneralize(DoubleValue other) Returns the generalization of this DoubleValue and the given other DoubleValue.generalize(ParticularDoubleValue other) Returns the generalization of this DoubleValue and the given other ParticularDoubleValue.inthashCode()booleanReturns whether this Value represents a single particular (known) value.multiply(DoubleValue other) Returns the product of this DoubleValue and the given DoubleValue.multiply(ParticularDoubleValue other) Returns the product of this DoubleValue and the given ParticularDoubleValue.negate()Returns the negated value of this DoubleValue.remainder(DoubleValue other) Returns the remainder of this DoubleValue divided by the given DoubleValue.remainder(ParticularDoubleValue other) Returns the remainder of this DoubleValue divided by the given ParticularDoubleValue.remainderOf(DoubleValue other) Returns the remainder of the given DoubleValue divided by this DoubleValue.remainderOf(ParticularDoubleValue other) Returns the remainder of the given ParticularDoubleValue and this DoubleValue.subtract(DoubleValue other) Returns the difference of this DoubleValue and the given DoubleValue.subtract(ParticularDoubleValue other) Returns the difference of this DoubleValue and the given ParticularDoubleValue.subtractFrom(DoubleValue other) Returns the difference of the given DoubleValue and this DoubleValue.Returns the difference of the given ParticularDoubleValue and this DoubleValue.toString()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, subtractFromMethods inherited from class proguard.evaluation.value.DoubleValue
compareReverse, compareReverse, compareReverse, computationalType, doubleValue, generalize, internalTypeMethods inherited from class proguard.evaluation.value.Category2Value
category2Value, isCategory2Methods inherited from class proguard.evaluation.value.Value
category1Value, copyIfMutable, floatValue, instructionOffsetValue, integerValue, longValue, referenceValue
-
Constructor Details
-
ParticularDoubleValue
public ParticularDoubleValue(double value) Creates a new particular double value.
-
-
Method Details
-
value
public double value()Description copied from class:DoubleValueReturns the specific double value, if applicable.- Overrides:
valuein classDoubleValue
-
negate
Description copied from class:DoubleValueReturns the negated value of this DoubleValue.- Overrides:
negatein classSpecificDoubleValue
-
convertToInteger
Description copied from class:DoubleValueConverts this DoubleValue to an IntegerValue.- Overrides:
convertToIntegerin classSpecificDoubleValue
-
convertToLong
Description copied from class:DoubleValueConverts this DoubleValue to a LongValue.- Overrides:
convertToLongin classSpecificDoubleValue
-
convertToFloat
Description copied from class:DoubleValueConverts this DoubleValue to a FloatValue.- Overrides:
convertToFloatin classSpecificDoubleValue
-
generalize
Description copied from class:DoubleValueReturns the generalization of this DoubleValue and the given other DoubleValue.- Overrides:
generalizein classSpecificDoubleValue
-
add
Description copied from class:DoubleValueReturns the sum of this DoubleValue and the given DoubleValue.- Overrides:
addin classSpecificDoubleValue
-
subtract
Description copied from class:DoubleValueReturns the difference of this DoubleValue and the given DoubleValue.- Overrides:
subtractin classSpecificDoubleValue
-
subtractFrom
Description copied from class:DoubleValueReturns the difference of the given DoubleValue and this DoubleValue.- Overrides:
subtractFromin classSpecificDoubleValue
-
multiply
Description copied from class:DoubleValueReturns the product of this DoubleValue and the given DoubleValue.- Overrides:
multiplyin classSpecificDoubleValue
-
divide
Description copied from class:DoubleValueReturns the quotient of this DoubleValue and the given DoubleValue.- Overrides:
dividein classSpecificDoubleValue
-
divideOf
Description copied from class:DoubleValueReturns the quotient of the given DoubleValue and this DoubleValue.- Overrides:
divideOfin classSpecificDoubleValue
-
remainder
Description copied from class:DoubleValueReturns the remainder of this DoubleValue divided by the given DoubleValue.- Overrides:
remainderin classSpecificDoubleValue
-
remainderOf
Description copied from class:DoubleValueReturns the remainder of the given DoubleValue divided by this DoubleValue.- Overrides:
remainderOfin classSpecificDoubleValue
-
compare
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
Description copied from class:DoubleValueReturns the generalization of this DoubleValue and the given other ParticularDoubleValue.- Overrides:
generalizein classDoubleValue
-
add
Description copied from class:DoubleValueReturns the sum of this DoubleValue and the given ParticularDoubleValue.- Overrides:
addin classDoubleValue
-
subtract
Description copied from class:DoubleValueReturns the difference of this DoubleValue and the given ParticularDoubleValue.- Overrides:
subtractin classDoubleValue
-
subtractFrom
Description copied from class:DoubleValueReturns the difference of the given ParticularDoubleValue and this DoubleValue.- Overrides:
subtractFromin classDoubleValue
-
multiply
Description copied from class:DoubleValueReturns the product of this DoubleValue and the given ParticularDoubleValue.- Overrides:
multiplyin classDoubleValue
-
divide
Description copied from class:DoubleValueReturns the quotient of this DoubleValue and the given ParticularDoubleValue.- Overrides:
dividein classDoubleValue
-
divideOf
Description copied from class:DoubleValueReturns the quotient of the given ParticularDoubleValue and this DoubleValue.- Overrides:
divideOfin classDoubleValue
-
remainder
Description copied from class:DoubleValueReturns the remainder of this DoubleValue divided by the given ParticularDoubleValue.- Overrides:
remainderin classDoubleValue
-
remainderOf
Description copied from class:DoubleValueReturns the remainder of the given ParticularDoubleValue and this DoubleValue.- Overrides:
remainderOfin classDoubleValue
-
compare
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
- Overrides:
equalsin classSpecificDoubleValue
-
hashCode
public int hashCode()- Overrides:
hashCodein classSpecificDoubleValue
-
toString
-