Package proguard.evaluation.value
Class FloatValue
java.lang.Object
proguard.evaluation.value.Value
proguard.evaluation.value.Category1Value
proguard.evaluation.value.FloatValue
- Direct Known Subclasses:
SpecificFloatValue,UnknownFloatValue
Representation of a partially evaluated float 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 FloatValueadd(FloatValue other) Returns the sum of this FloatValue and the given FloatValue.add(ParticularFloatValue other) Returns the sum of this FloatValue and the given ParticularFloatValue.add(SpecificFloatValue other) Returns the sum of this FloatValue and the given SpecificFloatValue.abstract IntegerValuecompare(FloatValue other) Returns an IntegerValue with value -1, 0, or 1, if this FloatValue is less than, equal to, or greater than the given FloatValue, respectively.compare(ParticularFloatValue other) Returns an IntegerValue with value -1, 0, or 1, if this FloatValue is less than, equal to, or greater than the given ParticularFloatValue, respectively.compare(SpecificFloatValue other) Returns an IntegerValue with value -1, 0, or 1, if this FloatValue is less than, equal to, or greater than the given SpecificFloatValue, respectively.final IntegerValuecompareReverse(FloatValue other) Returns an IntegerValue with value 1, 0, or -1, if this FloatValue is less than, equal to, or greater than the given FloatValue, respectively.final IntegerValueReturns an IntegerValue with value 1, 0, or -1, if this FloatValue is less than, equal to, or greater than the given ParticularFloatValue, respectively.final IntegerValuecompareReverse(SpecificFloatValue other) Returns an IntegerValue with value 1, 0, or -1, if this FloatValue is less than, equal to, or greater than the given SpecificFloatValue, respectively.final intReturns the computational type of this Value.abstract DoubleValueConverts this FloatValue to a DoubleValue.abstract IntegerValueConverts this FloatValue to an IntegerValue.abstract LongValueConverts this FloatValue to a LongValue.abstract FloatValuedivide(FloatValue other) Returns the quotient of this FloatValue and the given FloatValue.divide(ParticularFloatValue other) Returns the quotient of this FloatValue and the given ParticularFloatValue.divide(SpecificFloatValue other) Returns the quotient of this FloatValue and the given SpecificFloatValue.abstract FloatValuedivideOf(FloatValue other) Returns the quotient of the given FloatValue and this FloatValue.divideOf(ParticularFloatValue other) Returns the quotient of the given ParticularFloatValue and this FloatValue.divideOf(SpecificFloatValue other) Returns the quotient of the given SpecificFloatValue and this FloatValue.final FloatValueReturns this Value as a FloatValue.abstract FloatValuegeneralize(FloatValue other) Returns the generalization of this FloatValue and the given other FloatValue.generalize(ParticularFloatValue other) Returns the generalization of this FloatValue and the given other ParticularFloatValue.generalize(SpecificFloatValue other) Returns the generalization of this FloatValue and the given other SpecificFloatValue.final Valuegeneralize(Value other) Returns the generalization of this Value and the given other Value.final StringReturns the internal type of this Value.abstract FloatValuemultiply(FloatValue other) Returns the product of this FloatValue and the given FloatValue.multiply(ParticularFloatValue other) Returns the product of this FloatValue and the given ParticularFloatValue.multiply(SpecificFloatValue other) Returns the product of this FloatValue and the given SpecificFloatValue.abstract FloatValuenegate()Returns the negated value of this FloatValue.abstract FloatValueremainder(FloatValue other) Returns the remainder of this FloatValue divided by the given FloatValue.remainder(ParticularFloatValue other) Returns the remainder of this FloatValue divided by the given ParticularFloatValue.remainder(SpecificFloatValue other) Returns the remainder of this FloatValue divided by the given SpecificFloatValue.abstract FloatValueremainderOf(FloatValue other) Returns the remainder of the given FloatValue divided by this FloatValue.remainderOf(ParticularFloatValue other) Returns the remainder of the given ParticularFloatValue and this FloatValue.remainderOf(SpecificFloatValue other) Returns the remainder of the given SpecificFloatValue and this FloatValue.abstract FloatValuesubtract(FloatValue other) Returns the difference of this FloatValue and the given FloatValue.subtract(ParticularFloatValue other) Returns the difference of this FloatValue and the given ParticularFloatValue.subtract(SpecificFloatValue other) Returns the difference of this FloatValue and the given SpecificFloatValue.abstract FloatValuesubtractFrom(FloatValue other) Returns the difference of the given FloatValue and this FloatValue.subtractFrom(ParticularFloatValue other) Returns the difference of the given ParticularFloatValue and this FloatValue.subtractFrom(SpecificFloatValue other) Returns the difference of the given SpecificFloatValue and this FloatValue.floatvalue()Returns the specific float value, if applicable.Methods inherited from class proguard.evaluation.value.Category1Value
category1Value, isCategory2Methods inherited from class proguard.evaluation.value.Value
category2Value, copyIfMutable, doubleValue, instructionOffsetValue, integerValue, isParticular, isSpecific, longValue, referenceValue
-
Constructor Details
-
FloatValue
public FloatValue()
-
-
Method Details
-
value
public float value()Returns the specific float value, if applicable. -
negate
Returns the negated value of this FloatValue. -
convertToInteger
Converts this FloatValue to an IntegerValue. -
convertToLong
Converts this FloatValue to a LongValue. -
convertToDouble
Converts this FloatValue to a DoubleValue. -
generalize
Returns the generalization of this FloatValue and the given other FloatValue. -
add
Returns the sum of this FloatValue and the given FloatValue. -
subtract
Returns the difference of this FloatValue and the given FloatValue. -
subtractFrom
Returns the difference of the given FloatValue and this FloatValue. -
multiply
Returns the product of this FloatValue and the given FloatValue. -
divide
Returns the quotient of this FloatValue and the given FloatValue. -
divideOf
Returns the quotient of the given FloatValue and this FloatValue. -
remainder
Returns the remainder of this FloatValue divided by the given FloatValue. -
remainderOf
Returns the remainder of the given FloatValue divided by this FloatValue. -
compare
Returns an IntegerValue with value -1, 0, or 1, if this FloatValue is less than, equal to, or greater than the given FloatValue, respectively. -
compareReverse
Returns an IntegerValue with value 1, 0, or -1, if this FloatValue is less than, equal to, or greater than the given FloatValue, respectively. -
generalize
Returns the generalization of this FloatValue and the given other SpecificFloatValue. -
add
Returns the sum of this FloatValue and the given SpecificFloatValue. -
subtract
Returns the difference of this FloatValue and the given SpecificFloatValue. -
subtractFrom
Returns the difference of the given SpecificFloatValue and this FloatValue. -
multiply
Returns the product of this FloatValue and the given SpecificFloatValue. -
divide
Returns the quotient of this FloatValue and the given SpecificFloatValue. -
divideOf
Returns the quotient of the given SpecificFloatValue and this FloatValue. -
remainder
Returns the remainder of this FloatValue divided by the given SpecificFloatValue. -
remainderOf
Returns the remainder of the given SpecificFloatValue and this FloatValue. -
compare
Returns an IntegerValue with value -1, 0, or 1, if this FloatValue is less than, equal to, or greater than the given SpecificFloatValue, respectively. -
compareReverse
Returns an IntegerValue with value 1, 0, or -1, if this FloatValue is less than, equal to, or greater than the given SpecificFloatValue, respectively. -
generalize
Returns the generalization of this FloatValue and the given other ParticularFloatValue. -
add
Returns the sum of this FloatValue and the given ParticularFloatValue. -
subtract
Returns the difference of this FloatValue and the given ParticularFloatValue. -
subtractFrom
Returns the difference of the given ParticularFloatValue and this FloatValue. -
multiply
Returns the product of this FloatValue and the given ParticularFloatValue. -
divide
Returns the quotient of this FloatValue and the given ParticularFloatValue. -
divideOf
Returns the quotient of the given ParticularFloatValue and this FloatValue. -
remainder
Returns the remainder of this FloatValue divided by the given ParticularFloatValue. -
remainderOf
Returns the remainder of the given ParticularFloatValue and this FloatValue. -
compare
Returns an IntegerValue with value -1, 0, or 1, if this FloatValue is less than, equal to, or greater than the given ParticularFloatValue, respectively. -
compareReverse
Returns an IntegerValue with value 1, 0, or -1, if this FloatValue is less than, equal to, or greater than the given ParticularFloatValue, respectively. -
floatValue
Description copied from class:ValueReturns this Value as a FloatValue.- Overrides:
floatValuein 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).
-