ProGuard

proguard.optimize.evaluation.value
Class FloatValue

java.lang.Object
  extended byproguard.optimize.evaluation.value.Value
      extended byproguard.optimize.evaluation.value.Category1Value
          extended byproguard.optimize.evaluation.value.FloatValue

public class FloatValue
extends proguard.optimize.evaluation.value.Category1Value

This class represents a partially evaluated float value.


Field Summary
 
Fields inherited from class proguard.optimize.evaluation.value.Value
ALWAYS, MAYBE, NEVER, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INSTRUCTION_OFFSET, TYPE_INTEGER, TYPE_LONG, TYPE_REFERENCE
 
Constructor Summary
FloatValue()
           
 
Method Summary
 FloatValue add(FloatValue other)
          Returns the sum of this FloatValue and the given FloatValue.
 FloatValue add(proguard.optimize.evaluation.value.SpecificFloatValue other)
          Returns the sum of this FloatValue and the given SpecificFloatValue.
 proguard.optimize.evaluation.value.Category1Value category1Value()
          Returns this Value as a Category1Value.
 IntegerValue 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.
 IntegerValue compare(proguard.optimize.evaluation.value.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.
 IntegerValue compareReverse(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.
 IntegerValue compareReverse(proguard.optimize.evaluation.value.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.
 int computationalType()
          Returns the computational type of this Value.
 DoubleValue convertToDouble()
          Converts this FloatValue to a DoubleValue.
 IntegerValue convertToInteger()
          Converts this FloatValue to an IntegerValue.
 LongValue convertToLong()
          Converts this FloatValue to a LongValue.
 FloatValue divide(FloatValue other)
          Returns the quotient of this FloatValue and the given FloatValue.
 FloatValue divide(proguard.optimize.evaluation.value.SpecificFloatValue other)
          Returns the quotient of this FloatValue and the given SpecificFloatValue.
 FloatValue divideOf(FloatValue other)
          Returns the quotient of the given FloatValue and this FloatValue.
 FloatValue divideOf(proguard.optimize.evaluation.value.SpecificFloatValue other)
          Returns the quotient of the given SpecificFloatValue and this FloatValue.
 boolean equals(Object object)
           
 FloatValue floatValue()
          Returns this Value as a FloatValue.
 FloatValue generalize(FloatValue other)
          Returns the generalization of this FloatValue and the given other FloatValue.
 FloatValue generalize(proguard.optimize.evaluation.value.SpecificFloatValue other)
          Returns the generalization of this FloatValue and the given other SpecificFloatValue.
 Value generalize(Value other)
          Returns the generalization of this Value and the given other Value.
 int hashCode()
           
 boolean isCategory2()
          Returns whether the computational type of this Value is a category 2 type.
 FloatValue multiply(FloatValue other)
          Returns the product of this FloatValue and the given FloatValue.
 FloatValue multiply(proguard.optimize.evaluation.value.SpecificFloatValue other)
          Returns the product of this FloatValue and the given SpecificFloatValue.
 FloatValue negate()
          Returns the negated value of this FloatValue.
 FloatValue remainder(FloatValue other)
          Returns the remainder of this FloatValue divided by the given FloatValue.
 FloatValue remainder(proguard.optimize.evaluation.value.SpecificFloatValue other)
          Returns the remainder of this FloatValue divided by the given SpecificFloatValue.
 FloatValue remainderOf(FloatValue other)
          Returns the remainder of the given FloatValue divided by this FloatValue.
 FloatValue remainderOf(proguard.optimize.evaluation.value.SpecificFloatValue other)
          Returns the remainder of the given SpecificFloatValue and this FloatValue.
 FloatValue subtract(FloatValue other)
          Returns the difference of this FloatValue and the given FloatValue.
 FloatValue subtract(proguard.optimize.evaluation.value.SpecificFloatValue other)
          Returns the difference of this FloatValue and the given SpecificFloatValue.
 FloatValue subtractFrom(FloatValue other)
          Returns the difference of the given FloatValue and this FloatValue.
 FloatValue subtractFrom(proguard.optimize.evaluation.value.SpecificFloatValue other)
          Returns the difference of the given SpecificFloatValue and this FloatValue.
 String toString()
           
 float value()
          Returns the specific float value, if applicable.
 
Methods inherited from class proguard.optimize.evaluation.value.Value
category2Value, doubleValue, instructionOffsetValue, integerValue, isSpecific, longValue, referenceValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FloatValue

public FloatValue()
Method Detail

value

public float value()
Returns the specific float value, if applicable.


generalize

public FloatValue generalize(FloatValue other)
Returns the generalization of this FloatValue and the given other FloatValue.


add

public FloatValue add(FloatValue other)
Returns the sum of this FloatValue and the given FloatValue.


subtract

public FloatValue subtract(FloatValue other)
Returns the difference of this FloatValue and the given FloatValue.


subtractFrom

public FloatValue subtractFrom(FloatValue other)
Returns the difference of the given FloatValue and this FloatValue.


multiply

public FloatValue multiply(FloatValue other)
Returns the product of this FloatValue and the given FloatValue.


divide

public FloatValue divide(FloatValue other)
Returns the quotient of this FloatValue and the given FloatValue.


divideOf

public FloatValue divideOf(FloatValue other)
Returns the quotient of the given FloatValue and this FloatValue.


remainder

public FloatValue remainder(FloatValue other)
Returns the remainder of this FloatValue divided by the given FloatValue.


remainderOf

public FloatValue remainderOf(FloatValue other)
Returns the remainder of the given FloatValue divided by this FloatValue.


compare

public IntegerValue 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.


compareReverse

public final IntegerValue compareReverse(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.


negate

public FloatValue negate()
Returns the negated value of this FloatValue.


convertToInteger

public IntegerValue convertToInteger()
Converts this FloatValue to an IntegerValue.


convertToLong

public LongValue convertToLong()
Converts this FloatValue to a LongValue.


convertToDouble

public DoubleValue convertToDouble()
Converts this FloatValue to a DoubleValue.


generalize

public FloatValue generalize(proguard.optimize.evaluation.value.SpecificFloatValue other)
Returns the generalization of this FloatValue and the given other SpecificFloatValue.


add

public FloatValue add(proguard.optimize.evaluation.value.SpecificFloatValue other)
Returns the sum of this FloatValue and the given SpecificFloatValue.


subtract

public FloatValue subtract(proguard.optimize.evaluation.value.SpecificFloatValue other)
Returns the difference of this FloatValue and the given SpecificFloatValue.


subtractFrom

public FloatValue subtractFrom(proguard.optimize.evaluation.value.SpecificFloatValue other)
Returns the difference of the given SpecificFloatValue and this FloatValue.


multiply

public FloatValue multiply(proguard.optimize.evaluation.value.SpecificFloatValue other)
Returns the product of this FloatValue and the given SpecificFloatValue.


divide

public FloatValue divide(proguard.optimize.evaluation.value.SpecificFloatValue other)
Returns the quotient of this FloatValue and the given SpecificFloatValue.


divideOf

public FloatValue divideOf(proguard.optimize.evaluation.value.SpecificFloatValue other)
Returns the quotient of the given SpecificFloatValue and this FloatValue.


remainder

public FloatValue remainder(proguard.optimize.evaluation.value.SpecificFloatValue other)
Returns the remainder of this FloatValue divided by the given SpecificFloatValue.


remainderOf

public FloatValue remainderOf(proguard.optimize.evaluation.value.SpecificFloatValue other)
Returns the remainder of the given SpecificFloatValue and this FloatValue.


compare

public IntegerValue compare(proguard.optimize.evaluation.value.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.


compareReverse

public final IntegerValue compareReverse(proguard.optimize.evaluation.value.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.


floatValue

public final FloatValue floatValue()
Description copied from class: Value
Returns this Value as a FloatValue.

Overrides:
floatValue in class Value

generalize

public final Value generalize(Value other)
Description copied from class: Value
Returns the generalization of this Value and the given other Value.

Specified by:
generalize in class Value

computationalType

public final int computationalType()
Description copied from class: Value
Returns the computational type of this Value. The type is one of

Specified by:
computationalType in class Value

equals

public boolean equals(Object object)

hashCode

public int hashCode()

toString

public String toString()

category1Value

public final proguard.optimize.evaluation.value.Category1Value category1Value()
Description copied from class: Value
Returns this Value as a Category1Value.

Overrides:
category1Value in class Value

isCategory2

public final boolean isCategory2()
Description copied from class: Value
Returns whether the computational type of this Value is a category 2 type. This means that it takes up the space of two category 1 types on the stack, for instance.

Specified by:
isCategory2 in class Value

ProGuard