Package proguard.evaluation.value
Class DoubleValue
java.lang.Object
proguard.evaluation.value.Value
proguard.evaluation.value.Category2Value
proguard.evaluation.value.DoubleValue
- Direct Known Subclasses:
SpecificDoubleValue,UnknownDoubleValue
Representation of a partially evaluated 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 TypeMethodDescriptionabstract DoubleValueadd(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.add(SpecificDoubleValue other) Returns the sum of this DoubleValue and the given SpecificDoubleValue.abstract 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.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.compare(SpecificDoubleValue other) Returns an IntegerValue with value -1, 0, or 1, if this DoubleValue is less than, equal to, or greater than the given SpecificDoubleValue, respectively.final IntegerValuecompareReverse(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.final IntegerValueReturns an IntegerValue with value 1, 0, or -1, if this DoubleValue is less than, equal to, or greater than the given ParticularDoubleValue, respectively.final IntegerValueReturns an IntegerValue with value 1, 0, or -1, if this DoubleValue is less than, equal to, or greater than the given SpecificDoubleValue, respectively.final intReturns the computational type of this Value.abstract FloatValueConverts this DoubleValue to a FloatValue.abstract IntegerValueConverts this DoubleValue to an IntegerValue.abstract LongValueConverts this DoubleValue to a LongValue.abstract DoubleValuedivide(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.divide(SpecificDoubleValue other) Returns the quotient of this DoubleValue and the given SpecificDoubleValue.abstract DoubleValuedivideOf(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.divideOf(SpecificDoubleValue other) Returns the quotient of the given SpecificDoubleValue and this DoubleValue.final DoubleValueReturns this Value as a DoubleValue.abstract DoubleValuegeneralize(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.generalize(SpecificDoubleValue other) Returns the generalization of this DoubleValue and the given other SpecificDoubleValue.final Valuegeneralize(Value other) Returns the generalization of this Value and the given other Value.final StringReturns the internal type of this Value.abstract DoubleValuemultiply(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.multiply(SpecificDoubleValue other) Returns the product of this DoubleValue and the given SpecificDoubleValue.abstract DoubleValuenegate()Returns the negated value of this DoubleValue.abstract DoubleValueremainder(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.remainder(SpecificDoubleValue other) Returns the remainder of this DoubleValue divided by the given SpecificDoubleValue.abstract DoubleValueremainderOf(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.remainderOf(SpecificDoubleValue other) Returns the remainder of the given SpecificDoubleValue and this DoubleValue.abstract DoubleValuesubtract(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.subtract(SpecificDoubleValue other) Returns the difference of this DoubleValue and the given SpecificDoubleValue.abstract DoubleValuesubtractFrom(DoubleValue other) Returns the difference of the given DoubleValue and this DoubleValue.Returns the difference of the given ParticularDoubleValue and this DoubleValue.subtractFrom(SpecificDoubleValue other) Returns the difference of the given SpecificDoubleValue and this DoubleValue.doublevalue()Returns the specific double value, if applicable.Methods inherited from class proguard.evaluation.value.Category2Value
category2Value, isCategory2Methods inherited from class proguard.evaluation.value.Value
category1Value, copyIfMutable, floatValue, instructionOffsetValue, integerValue, isParticular, isSpecific, longValue, referenceValue
-
Constructor Details
-
DoubleValue
public DoubleValue()
-
-
Method Details
-
value
public double value()Returns the specific double value, if applicable. -
negate
Returns the negated value of this DoubleValue. -
convertToInteger
Converts this DoubleValue to an IntegerValue. -
convertToLong
Converts this DoubleValue to a LongValue. -
convertToFloat
Converts this DoubleValue to a FloatValue. -
generalize
Returns the generalization of this DoubleValue and the given other DoubleValue. -
add
Returns the sum of this DoubleValue and the given DoubleValue. -
subtract
Returns the difference of this DoubleValue and the given DoubleValue. -
subtractFrom
Returns the difference of the given DoubleValue and this DoubleValue. -
multiply
Returns the product of this DoubleValue and the given DoubleValue. -
divide
Returns the quotient of this DoubleValue and the given DoubleValue. -
divideOf
Returns the quotient of the given DoubleValue and this DoubleValue. -
remainder
Returns the remainder of this DoubleValue divided by the given DoubleValue. -
remainderOf
Returns the remainder of the given DoubleValue divided by this DoubleValue. -
compare
Returns an IntegerValue with value -1, 0, or 1, if this DoubleValue is less than, equal to, or greater than the given DoubleValue, respectively. -
compareReverse
Returns an IntegerValue with value 1, 0, or -1, if this DoubleValue is less than, equal to, or greater than the given DoubleValue, respectively. -
generalize
Returns the generalization of this DoubleValue and the given other SpecificDoubleValue. -
add
Returns the sum of this DoubleValue and the given SpecificDoubleValue. -
subtract
Returns the difference of this DoubleValue and the given SpecificDoubleValue. -
subtractFrom
Returns the difference of the given SpecificDoubleValue and this DoubleValue. -
multiply
Returns the product of this DoubleValue and the given SpecificDoubleValue. -
divide
Returns the quotient of this DoubleValue and the given SpecificDoubleValue. -
divideOf
Returns the quotient of the given SpecificDoubleValue and this DoubleValue. -
remainder
Returns the remainder of this DoubleValue divided by the given SpecificDoubleValue. -
remainderOf
Returns the remainder of the given SpecificDoubleValue and this DoubleValue. -
compare
Returns an IntegerValue with value -1, 0, or 1, if this DoubleValue is less than, equal to, or greater than the given SpecificDoubleValue, respectively. -
compareReverse
Returns an IntegerValue with value 1, 0, or -1, if this DoubleValue is less than, equal to, or greater than the given SpecificDoubleValue, respectively. -
generalize
Returns the generalization of this DoubleValue and the given other ParticularDoubleValue. -
add
Returns the sum of this DoubleValue and the given ParticularDoubleValue. -
subtract
Returns the difference of this DoubleValue and the given ParticularDoubleValue. -
subtractFrom
Returns the difference of the given ParticularDoubleValue and this DoubleValue. -
multiply
Returns the product of this DoubleValue and the given ParticularDoubleValue. -
divide
Returns the quotient of this DoubleValue and the given ParticularDoubleValue. -
divideOf
Returns the quotient of the given ParticularDoubleValue and this DoubleValue. -
remainder
Returns the remainder of this DoubleValue divided by the given ParticularDoubleValue. -
remainderOf
Returns the remainder of the given ParticularDoubleValue and this DoubleValue. -
compare
Returns an IntegerValue with value -1, 0, or 1, if this DoubleValue is less than, equal to, or greater than the given ParticularDoubleValue, respectively. -
compareReverse
Returns an IntegerValue with value 1, 0, or -1, if this DoubleValue is less than, equal to, or greater than the given ParticularDoubleValue, respectively. -
doubleValue
Description copied from class:ValueReturns this Value as a DoubleValue.- Overrides:
doubleValuein classValue
-
generalize
Description copied from class:ValueReturns the generalization of this Value and the given other Value.- Specified by:
generalizein classValue
-
computationalType
public final int computationalType()Description copied from class:ValueReturns the computational type of this Value.- Specified by:
computationalTypein classValue- Returns:
TYPE_INTEGER,TYPE_LONG,TYPE_FLOAT,TYPE_DOUBLE,TYPE_REFERENCE, orTYPE_INSTRUCTION_OFFSET.
-
internalType
Description copied from class:ValueReturns the internal type of this Value.- Specified by:
internalTypein classValue- Returns:
TypeConstants.BOOLEAN,TypeConstants.BYTE,TypeConstants.CHAR,TypeConstants.SHORT,TypeConstants.INT,TypeConstants.LONG,TypeConstants.FLOAT,TypeConstants.DOUBLE,TypeConstants.CLASS_START ... TypeConstants.CLASS_END, or an array type containing any of these types (always as String).
-