Package proguard.evaluation.value
Class ParticularFloatValue
java.lang.Object
proguard.evaluation.value.Value
proguard.evaluation.value.Category1Value
proguard.evaluation.value.FloatValue
proguard.evaluation.value.SpecificFloatValue
proguard.evaluation.value.ParticularFloatValue
This
FloatValue represents a particular 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 TypeMethodDescriptionadd(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.compare(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.Converts this FloatValue to a DoubleValue.Converts this FloatValue to an IntegerValue.Converts this FloatValue to a LongValue.divide(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.divideOf(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.booleangeneralize(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.inthashCode()booleanReturns whether this Value represents a single particular (known) value.multiply(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.negate()Returns the negated value of this FloatValue.remainder(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.remainderOf(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.subtract(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.subtractFrom(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.toString()floatvalue()Returns the specific float value, if applicable.Methods inherited from class proguard.evaluation.value.SpecificFloatValue
add, compare, divide, divideOf, generalize, isSpecific, multiply, remainder, remainderOf, subtract, subtractFromMethods inherited from class proguard.evaluation.value.FloatValue
compareReverse, compareReverse, compareReverse, computationalType, floatValue, generalize, internalTypeMethods inherited from class proguard.evaluation.value.Category1Value
category1Value, isCategory2Methods inherited from class proguard.evaluation.value.Value
category2Value, copyIfMutable, doubleValue, instructionOffsetValue, integerValue, longValue, referenceValue
-
Constructor Details
-
ParticularFloatValue
public ParticularFloatValue(float value) Creates a new particular float value.
-
-
Method Details
-
value
public float value()Description copied from class:FloatValueReturns the specific float value, if applicable.- Overrides:
valuein classFloatValue
-
negate
Description copied from class:FloatValueReturns the negated value of this FloatValue.- Overrides:
negatein classSpecificFloatValue
-
convertToInteger
Description copied from class:FloatValueConverts this FloatValue to an IntegerValue.- Overrides:
convertToIntegerin classSpecificFloatValue
-
convertToLong
Description copied from class:FloatValueConverts this FloatValue to a LongValue.- Overrides:
convertToLongin classSpecificFloatValue
-
convertToDouble
Description copied from class:FloatValueConverts this FloatValue to a DoubleValue.- Overrides:
convertToDoublein classSpecificFloatValue
-
generalize
Description copied from class:FloatValueReturns the generalization of this FloatValue and the given other FloatValue.- Overrides:
generalizein classSpecificFloatValue
-
add
Description copied from class:FloatValueReturns the sum of this FloatValue and the given FloatValue.- Overrides:
addin classSpecificFloatValue
-
subtract
Description copied from class:FloatValueReturns the difference of this FloatValue and the given FloatValue.- Overrides:
subtractin classSpecificFloatValue
-
subtractFrom
Description copied from class:FloatValueReturns the difference of the given FloatValue and this FloatValue.- Overrides:
subtractFromin classSpecificFloatValue
-
multiply
Description copied from class:FloatValueReturns the product of this FloatValue and the given FloatValue.- Overrides:
multiplyin classSpecificFloatValue
-
divide
Description copied from class:FloatValueReturns the quotient of this FloatValue and the given FloatValue.- Overrides:
dividein classSpecificFloatValue
-
divideOf
Description copied from class:FloatValueReturns the quotient of the given FloatValue and this FloatValue.- Overrides:
divideOfin classSpecificFloatValue
-
remainder
Description copied from class:FloatValueReturns the remainder of this FloatValue divided by the given FloatValue.- Overrides:
remainderin classSpecificFloatValue
-
remainderOf
Description copied from class:FloatValueReturns the remainder of the given FloatValue divided by this FloatValue.- Overrides:
remainderOfin classSpecificFloatValue
-
compare
Description copied from class:FloatValueReturns an IntegerValue with value -1, 0, or 1, if this FloatValue is less than, equal to, or greater than the given FloatValue, respectively.- Overrides:
comparein classSpecificFloatValue
-
generalize
Description copied from class:FloatValueReturns the generalization of this FloatValue and the given other ParticularFloatValue.- Overrides:
generalizein classFloatValue
-
add
Description copied from class:FloatValueReturns the sum of this FloatValue and the given ParticularFloatValue.- Overrides:
addin classFloatValue
-
subtract
Description copied from class:FloatValueReturns the difference of this FloatValue and the given ParticularFloatValue.- Overrides:
subtractin classFloatValue
-
subtractFrom
Description copied from class:FloatValueReturns the difference of the given ParticularFloatValue and this FloatValue.- Overrides:
subtractFromin classFloatValue
-
multiply
Description copied from class:FloatValueReturns the product of this FloatValue and the given ParticularFloatValue.- Overrides:
multiplyin classFloatValue
-
divide
Description copied from class:FloatValueReturns the quotient of this FloatValue and the given ParticularFloatValue.- Overrides:
dividein classFloatValue
-
divideOf
Description copied from class:FloatValueReturns the quotient of the given ParticularFloatValue and this FloatValue.- Overrides:
divideOfin classFloatValue
-
remainder
Description copied from class:FloatValueReturns the remainder of this FloatValue divided by the given ParticularFloatValue.- Overrides:
remainderin classFloatValue
-
remainderOf
Description copied from class:FloatValueReturns the remainder of the given ParticularFloatValue and this FloatValue.- Overrides:
remainderOfin classFloatValue
-
compare
Description copied from class:FloatValueReturns an IntegerValue with value -1, 0, or 1, if this FloatValue is less than, equal to, or greater than the given ParticularFloatValue, respectively.- Overrides:
comparein classFloatValue
-
isParticular
public boolean isParticular()Description copied from class:ValueReturns whether this Value represents a single particular (known) value.- Overrides:
isParticularin classValue
-
equals
- Overrides:
equalsin classSpecificFloatValue
-
hashCode
public int hashCode()- Overrides:
hashCodein classSpecificFloatValue
-
toString
-