ProGuard

proguard.optimize.evaluation.value
Class DoubleValue

java.lang.Object
  extended byproguard.optimize.evaluation.value.Value
      extended byproguard.optimize.evaluation.value.Category2Value
          extended byproguard.optimize.evaluation.value.DoubleValue

public class DoubleValue
extends proguard.optimize.evaluation.value.Category2Value

This class represents a partially evaluated double 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
DoubleValue()
           
 
Method Summary
 DoubleValue add(DoubleValue other)
          Returns the sum of this DoubleValue and the given DoubleValue.
 DoubleValue add(proguard.optimize.evaluation.value.SpecificDoubleValue other)
          Returns the sum of this DoubleValue and the given SpecificDoubleValue.
 proguard.optimize.evaluation.value.Category2Value category2Value()
          Returns this Value as a Category2Value.
 IntegerValue compare(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.
 IntegerValue compare(proguard.optimize.evaluation.value.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.
 IntegerValue compareReverse(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.
 IntegerValue compareReverse(proguard.optimize.evaluation.value.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.
 int computationalType()
          Returns the computational type of this Value.
 FloatValue convertToFloat()
          Converts this DoubleValue to a FloatValue.
 IntegerValue convertToInteger()
          Converts this DoubleValue to an IntegerValue.
 LongValue convertToLong()
          Converts this DoubleValue to a LongValue.
 DoubleValue divide(DoubleValue other)
          Returns the quotient of this DoubleValue and the given DoubleValue.
 DoubleValue divide(proguard.optimize.evaluation.value.SpecificDoubleValue other)
          Returns the quotient of this DoubleValue and the given SpecificDoubleValue.
 DoubleValue divideOf(DoubleValue other)
          Returns the quotient of the given DoubleValue and this DoubleValue.
 DoubleValue divideOf(proguard.optimize.evaluation.value.SpecificDoubleValue other)
          Returns the quotient of the given SpecificDoubleValue and this DoubleValue.
 DoubleValue doubleValue()
          Returns this Value as a DoubleValue.
 boolean equals(Object object)
           
 DoubleValue generalize(DoubleValue other)
          Returns the generalization of this DoubleValue and the given other DoubleValue.
 DoubleValue generalize(proguard.optimize.evaluation.value.SpecificDoubleValue other)
          Returns the generalization of this DoubleValue and the given other SpecificDoubleValue.
 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.
 DoubleValue multiply(DoubleValue other)
          Returns the product of this DoubleValue and the given DoubleValue.
 DoubleValue multiply(proguard.optimize.evaluation.value.SpecificDoubleValue other)
          Returns the product of this DoubleValue and the given SpecificDoubleValue.
 DoubleValue negate()
          Returns the negated value of this DoubleValue.
 DoubleValue remainder(DoubleValue other)
          Returns the remainder of this DoubleValue divided by the given DoubleValue.
 DoubleValue remainder(proguard.optimize.evaluation.value.SpecificDoubleValue other)
          Returns the remainder of this DoubleValue divided by the given SpecificDoubleValue.
 DoubleValue remainderOf(DoubleValue other)
          Returns the remainder of the given DoubleValue divided by this DoubleValue.
 DoubleValue remainderOf(proguard.optimize.evaluation.value.SpecificDoubleValue other)
          Returns the remainder of the given SpecificDoubleValue and this DoubleValue.
 DoubleValue subtract(DoubleValue other)
          Returns the difference of this DoubleValue and the given DoubleValue.
 DoubleValue subtract(proguard.optimize.evaluation.value.SpecificDoubleValue other)
          Returns the difference of this DoubleValue and the given SpecificDoubleValue.
 DoubleValue subtractFrom(DoubleValue other)
          Returns the difference of the given DoubleValue and this DoubleValue.
 DoubleValue subtractFrom(proguard.optimize.evaluation.value.SpecificDoubleValue other)
          Returns the difference of the given SpecificDoubleValue and this DoubleValue.
 String toString()
           
 double value()
          Returns the specific double value, if applicable.
 
Methods inherited from class proguard.optimize.evaluation.value.Value
category1Value, floatValue, instructionOffsetValue, integerValue, isSpecific, longValue, referenceValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoubleValue

public DoubleValue()
Method Detail

value

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


generalize

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


add

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


subtract

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


subtractFrom

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


multiply

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


divide

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


divideOf

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


remainder

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


remainderOf

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


compare

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


compareReverse

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


negate

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


convertToInteger

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


convertToLong

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


convertToFloat

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


generalize

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


add

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


subtract

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


subtractFrom

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


multiply

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


divide

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


divideOf

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


remainder

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


remainderOf

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


compare

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


compareReverse

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


doubleValue

public final DoubleValue doubleValue()
Description copied from class: Value
Returns this Value as a DoubleValue.

Overrides:
doubleValue 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()

category2Value

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

Overrides:
category2Value 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