ProGuard

proguard.optimize.evaluation.value
Class LongValue

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

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

This class represents a partially evaluated long 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
LongValue()
           
 
Method Summary
 LongValue add(LongValue other)
          Returns the sum of this LongValue and the given LongValue.
 LongValue add(proguard.optimize.evaluation.value.SpecificLongValue other)
          Returns the sum of this LongValue and the given SpecificLongValue.
 LongValue and(LongValue other)
          Returns the logical and of this LongValue and the given LongValue.
 LongValue and(proguard.optimize.evaluation.value.SpecificLongValue other)
          Returns the logical and of this LongValue and the given SpecificLongValue.
 proguard.optimize.evaluation.value.Category2Value category2Value()
          Returns this Value as a Category2Value.
 IntegerValue compare(LongValue other)
          Returns an IntegerValue with value -1, 0, or 1, if this LongValue is less than, equal to, or greater than the given LongValue, respectively.
 IntegerValue compare(proguard.optimize.evaluation.value.SpecificLongValue other)
          Returns an IntegerValue with value -1, 0, or 1, if this LongValue is less than, equal to, or greater than the given SpecificLongValue, respectively.
 IntegerValue compareReverse(LongValue other)
          Returns an IntegerValue with value 1, 0, or -1, if this LongValue is less than, equal to, or greater than the given LongValue, respectively.
 IntegerValue compareReverse(proguard.optimize.evaluation.value.SpecificLongValue other)
          Returns an IntegerValue with value 1, 0, or -1, if this LongValue is less than, equal to, or greater than the given SpecificLongValue, respectively.
 int computationalType()
          Returns the computational type of this Value.
 DoubleValue convertToDouble()
          Converts this LongValue to a DoubleValue.
 FloatValue convertToFloat()
          Converts this LongValue to a FloatValue.
 IntegerValue convertToInteger()
          Converts this LongValue to an IntegerValue.
 LongValue divide(LongValue other)
          Returns the quotient of this LongValue and the given LongValue.
 LongValue divide(proguard.optimize.evaluation.value.SpecificLongValue other)
          Returns the quotient of this LongValue and the given SpecificLongValue.
 LongValue divideOf(LongValue other)
          Returns the quotient of the given LongValue and this LongValue.
 LongValue divideOf(proguard.optimize.evaluation.value.SpecificLongValue other)
          Returns the quotient of the given SpecificLongValue and this LongValue.
 boolean equals(Object object)
           
 LongValue generalize(LongValue other)
          Returns the generalization of this LongValue and the given other LongValue.
 LongValue generalize(proguard.optimize.evaluation.value.SpecificLongValue other)
          Returns the generalization of this LongValue and the given other SpecificLongValue.
 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.
 LongValue longValue()
          Returns this Value as a LongValue.
 LongValue multiply(LongValue other)
          Returns the product of this LongValue and the given LongValue.
 LongValue multiply(proguard.optimize.evaluation.value.SpecificLongValue other)
          Returns the product of this LongValue and the given SpecificLongValue.
 LongValue negate()
          Returns the negated value of this LongValue.
 LongValue or(LongValue other)
          Returns the logical or of this LongValue and the given LongValue.
 LongValue or(proguard.optimize.evaluation.value.SpecificLongValue other)
          Returns the logical or of this LongValue and the given SpecificLongValue.
 LongValue remainder(LongValue other)
          Returns the remainder of this LongValue divided by the given LongValue.
 LongValue remainder(proguard.optimize.evaluation.value.SpecificLongValue other)
          Returns the remainder of this LongValue divided by the given SpecificLongValue.
 LongValue remainderOf(LongValue other)
          Returns the remainder of the given LongValue divided by this LongValue.
 LongValue remainderOf(proguard.optimize.evaluation.value.SpecificLongValue other)
          Returns the remainder of the given SpecificLongValue and this LongValue.
 LongValue shiftLeft(IntegerValue other)
          Returns this LongValue, shifted left by the given IntegerValue.
 LongValue shiftRight(IntegerValue other)
          Returns this LongValue, shifted right by the given IntegerValue.
 LongValue subtract(LongValue other)
          Returns the difference of this LongValue and the given LongValue.
 LongValue subtract(proguard.optimize.evaluation.value.SpecificLongValue other)
          Returns the difference of this LongValue and the given SpecificLongValue.
 LongValue subtractFrom(LongValue other)
          Returns the difference of the given LongValue and this LongValue.
 LongValue subtractFrom(proguard.optimize.evaluation.value.SpecificLongValue other)
          Returns the difference of the given SpecificLongValue and this LongValue.
 String toString()
           
 LongValue unsignedShiftRight(IntegerValue other)
          Returns this unsigned LongValue, shifted left by the given IntegerValue.
 long value()
          Returns the specific long value, if applicable.
 LongValue xor(LongValue other)
          Returns the logical xor of this LongValue and the given LongValue.
 LongValue xor(proguard.optimize.evaluation.value.SpecificLongValue other)
          Returns the logical xor of this LongValue and the given SpecificLongValue.
 
Methods inherited from class proguard.optimize.evaluation.value.Value
category1Value, doubleValue, floatValue, instructionOffsetValue, integerValue, isSpecific, referenceValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LongValue

public LongValue()
Method Detail

value

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


generalize

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


add

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


subtract

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


subtractFrom

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


multiply

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


divide

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


divideOf

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


remainder

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


remainderOf

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


shiftLeft

public LongValue shiftLeft(IntegerValue other)
Returns this LongValue, shifted left by the given IntegerValue.


shiftRight

public LongValue shiftRight(IntegerValue other)
Returns this LongValue, shifted right by the given IntegerValue.


unsignedShiftRight

public LongValue unsignedShiftRight(IntegerValue other)
Returns this unsigned LongValue, shifted left by the given IntegerValue.


and

public LongValue and(LongValue other)
Returns the logical and of this LongValue and the given LongValue.


or

public LongValue or(LongValue other)
Returns the logical or of this LongValue and the given LongValue.


xor

public LongValue xor(LongValue other)
Returns the logical xor of this LongValue and the given LongValue.


compare

public IntegerValue compare(LongValue other)
Returns an IntegerValue with value -1, 0, or 1, if this LongValue is less than, equal to, or greater than the given LongValue, respectively.


compareReverse

public final IntegerValue compareReverse(LongValue other)
Returns an IntegerValue with value 1, 0, or -1, if this LongValue is less than, equal to, or greater than the given LongValue, respectively.


negate

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


convertToInteger

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


convertToFloat

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


convertToDouble

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


generalize

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


add

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


subtract

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


subtractFrom

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


multiply

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


divide

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


divideOf

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


remainder

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


remainderOf

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


and

public LongValue and(proguard.optimize.evaluation.value.SpecificLongValue other)
Returns the logical and of this LongValue and the given SpecificLongValue.


or

public LongValue or(proguard.optimize.evaluation.value.SpecificLongValue other)
Returns the logical or of this LongValue and the given SpecificLongValue.


xor

public LongValue xor(proguard.optimize.evaluation.value.SpecificLongValue other)
Returns the logical xor of this LongValue and the given SpecificLongValue.


compare

public IntegerValue compare(proguard.optimize.evaluation.value.SpecificLongValue other)
Returns an IntegerValue with value -1, 0, or 1, if this LongValue is less than, equal to, or greater than the given SpecificLongValue, respectively.


compareReverse

public final IntegerValue compareReverse(proguard.optimize.evaluation.value.SpecificLongValue other)
Returns an IntegerValue with value 1, 0, or -1, if this LongValue is less than, equal to, or greater than the given SpecificLongValue, respectively.


longValue

public final LongValue longValue()
Description copied from class: Value
Returns this Value as a LongValue.

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