proguard.evaluation.value
Class FloatValue

java.lang.Object
  extended by proguard.evaluation.value.Value
      extended by proguard.evaluation.value.Category1Value
          extended by proguard.evaluation.value.FloatValue

public class FloatValue
extends Category1Value

This class represents 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
 
Constructor Summary
FloatValue()
           
 
Method Summary
 FloatValue add(FloatValue other)
          Returns the sum of this FloatValue and the given FloatValue.
 FloatValue add(proguard.evaluation.value.SpecificFloatValue other)
          Returns the sum of this FloatValue and the given SpecificFloatValue.
 IntegerValue compare(FloatValue other, ValueFactory valueFactory)
          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.evaluation.value.SpecificFloatValue other, ValueFactory valueFactory)
          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, ValueFactory valueFactory)
          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.evaluation.value.SpecificFloatValue other, ValueFactory valueFactory)
          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(ValueFactory valueFactory)
          Converts this FloatValue to a DoubleValue.
 IntegerValue convertToInteger(ValueFactory valueFactory)
          Converts this FloatValue to an IntegerValue.
 LongValue convertToLong(ValueFactory valueFactory)
          Converts this FloatValue to a LongValue.
 FloatValue divide(FloatValue other)
          Returns the quotient of this FloatValue and the given FloatValue.
 FloatValue divide(proguard.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.evaluation.value.SpecificFloatValue other)
          Returns the quotient of the given SpecificFloatValue and this FloatValue.
 boolean equals(java.lang.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.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()
           
 java.lang.String internalType()
          Returns the internal type of this Value.
 FloatValue multiply(FloatValue other)
          Returns the product of this FloatValue and the given FloatValue.
 FloatValue multiply(proguard.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.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.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.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.evaluation.value.SpecificFloatValue other)
          Returns the difference of the given SpecificFloatValue and this FloatValue.
 java.lang.String toString()
           
 float value()
          Returns the specific float value, if applicable.
 
Methods inherited from class proguard.evaluation.value.Category1Value
category1Value, isCategory2
 
Methods inherited from class proguard.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,
                            ValueFactory valueFactory)
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,
                                         ValueFactory valueFactory)
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(ValueFactory valueFactory)
Converts this FloatValue to an IntegerValue.


convertToLong

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


convertToDouble

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


generalize

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


add

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


subtract

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


subtractFrom

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


multiply

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


divide

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


divideOf

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


remainder

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


remainderOf

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


compare

public IntegerValue compare(proguard.evaluation.value.SpecificFloatValue other,
                            ValueFactory valueFactory)
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.evaluation.value.SpecificFloatValue other,
                                         ValueFactory valueFactory)
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.

Specified by:
computationalType in class Value
Returns:
TYPE_INTEGER, TYPE_LONG, TYPE_FLOAT, TYPE_DOUBLE, TYPE_REFERENCE, or TYPE_INSTRUCTION_OFFSET.

internalType

public final java.lang.String internalType()
Description copied from class: Value
Returns the internal type of this Value.

Specified by:
internalType in class Value
Returns:
ClassConstants.INTERNAL_TYPE_BOOLEAN, ClassConstants.INTERNAL_TYPE_BYTE, ClassConstants.INTERNAL_TYPE_CHAR, ClassConstants.INTERNAL_TYPE_SHORT, ClassConstants.INTERNAL_TYPE_INT, ClassConstants.INTERNAL_TYPE_LONG, ClassConstants.INTERNAL_TYPE_FLOAT, ClassConstants.INTERNAL_TYPE_DOUBLE, ClassConstants.INTERNAL_TYPE_CLASS_START ... ClassConstants.INTERNAL_TYPE_CLASS_END, or an array type containing any of these types (always as String).

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object