|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproguard.evaluation.value.Value
proguard.evaluation.value.Category2Value
proguard.evaluation.value.DoubleValue
public class DoubleValue
This class represents a partially evaluated double 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 | |
|---|---|
DoubleValue()
|
|
| Method Summary | |
|---|---|
DoubleValue |
add(DoubleValue other)
Returns the sum of this DoubleValue and the given DoubleValue. |
DoubleValue |
add(proguard.evaluation.value.SpecificDoubleValue other)
Returns the sum of this DoubleValue and the given SpecificDoubleValue. |
IntegerValue |
compare(DoubleValue other,
ValueFactory valueFactory)
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.evaluation.value.SpecificDoubleValue other,
ValueFactory valueFactory)
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,
ValueFactory valueFactory)
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.evaluation.value.SpecificDoubleValue other,
ValueFactory valueFactory)
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(ValueFactory valueFactory)
Converts this DoubleValue to a FloatValue. |
IntegerValue |
convertToInteger(ValueFactory valueFactory)
Converts this DoubleValue to an IntegerValue. |
LongValue |
convertToLong(ValueFactory valueFactory)
Converts this DoubleValue to a LongValue. |
DoubleValue |
divide(DoubleValue other)
Returns the quotient of this DoubleValue and the given DoubleValue. |
DoubleValue |
divide(proguard.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.evaluation.value.SpecificDoubleValue other)
Returns the quotient of the given SpecificDoubleValue and this DoubleValue. |
DoubleValue |
doubleValue()
Returns this Value as a DoubleValue. |
boolean |
equals(java.lang.Object object)
|
DoubleValue |
generalize(DoubleValue other)
Returns the generalization of this DoubleValue and the given other DoubleValue. |
DoubleValue |
generalize(proguard.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()
|
java.lang.String |
internalType()
Returns the internal type of this Value. |
DoubleValue |
multiply(DoubleValue other)
Returns the product of this DoubleValue and the given DoubleValue. |
DoubleValue |
multiply(proguard.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.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.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.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.evaluation.value.SpecificDoubleValue other)
Returns the difference of the given SpecificDoubleValue and this DoubleValue. |
java.lang.String |
toString()
|
double |
value()
Returns the specific double value, if applicable. |
| Methods inherited from class proguard.evaluation.value.Category2Value |
|---|
category2Value, isCategory2 |
| Methods inherited from class proguard.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 |
|---|
public DoubleValue()
| Method Detail |
|---|
public double value()
public DoubleValue generalize(DoubleValue other)
public DoubleValue add(DoubleValue other)
public DoubleValue subtract(DoubleValue other)
public DoubleValue subtractFrom(DoubleValue other)
public DoubleValue multiply(DoubleValue other)
public DoubleValue divide(DoubleValue other)
public DoubleValue divideOf(DoubleValue other)
public DoubleValue remainder(DoubleValue other)
public DoubleValue remainderOf(DoubleValue other)
public IntegerValue compare(DoubleValue other,
ValueFactory valueFactory)
public final IntegerValue compareReverse(DoubleValue other,
ValueFactory valueFactory)
public DoubleValue negate()
public IntegerValue convertToInteger(ValueFactory valueFactory)
public LongValue convertToLong(ValueFactory valueFactory)
public FloatValue convertToFloat(ValueFactory valueFactory)
public DoubleValue generalize(proguard.evaluation.value.SpecificDoubleValue other)
public DoubleValue add(proguard.evaluation.value.SpecificDoubleValue other)
public DoubleValue subtract(proguard.evaluation.value.SpecificDoubleValue other)
public DoubleValue subtractFrom(proguard.evaluation.value.SpecificDoubleValue other)
public DoubleValue multiply(proguard.evaluation.value.SpecificDoubleValue other)
public DoubleValue divide(proguard.evaluation.value.SpecificDoubleValue other)
public DoubleValue divideOf(proguard.evaluation.value.SpecificDoubleValue other)
public DoubleValue remainder(proguard.evaluation.value.SpecificDoubleValue other)
public DoubleValue remainderOf(proguard.evaluation.value.SpecificDoubleValue other)
public IntegerValue compare(proguard.evaluation.value.SpecificDoubleValue other,
ValueFactory valueFactory)
public final IntegerValue compareReverse(proguard.evaluation.value.SpecificDoubleValue other,
ValueFactory valueFactory)
public final DoubleValue doubleValue()
Value
doubleValue in class Valuepublic final Value generalize(Value other)
Value
generalize in class Valuepublic final int computationalType()
Value
computationalType in class ValueTYPE_INTEGER,
TYPE_LONG,
TYPE_FLOAT,
TYPE_DOUBLE,
TYPE_REFERENCE, or
TYPE_INSTRUCTION_OFFSET.public final java.lang.String internalType()
Value
internalType in class ValueClassConstants.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).public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||