Package proguard.evaluation.value
Class ParticularLongValue
- java.lang.Object
-
- proguard.evaluation.value.Value
-
- proguard.evaluation.value.Category2Value
-
- proguard.evaluation.value.LongValue
-
- proguard.evaluation.value.SpecificLongValue
-
- proguard.evaluation.value.ParticularLongValue
-
public final class ParticularLongValue extends SpecificLongValue
ThisLongValue
represents a particular long 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, TYPE_UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description ParticularLongValue(long value)
Creates a new particular long value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongValue
add(LongValue other)
Returns the sum of this LongValue and the given LongValue.LongValue
add(ParticularLongValue other)
Returns the sum of this LongValue and the given ParticularLongValue.LongValue
and(LongValue other)
Returns the logical and of this LongValue and the given LongValue.LongValue
and(ParticularLongValue other)
Returns the logical and of this LongValue and the given ParticularLongValue.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.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(ParticularLongValue other)
Returns the quotient of this LongValue and the given ParticularLongValue.LongValue
divideOf(LongValue other)
Returns the quotient of the given LongValue and this LongValue.LongValue
divideOf(ParticularLongValue other)
Returns the quotient of the given ParticularLongValue and this LongValue.boolean
equals(java.lang.Object object)
LongValue
generalize(LongValue other)
Returns the generalization of this LongValue and the given other LongValue.LongValue
generalize(ParticularLongValue other)
Returns the generalization of this LongValue and the given other ParticularLongValue.int
hashCode()
boolean
isParticular()
Returns whether this Value represents a single particular (known) value.LongValue
multiply(LongValue other)
Returns the product of this LongValue and the given LongValue.LongValue
multiply(ParticularLongValue other)
Returns the product of this LongValue and the given ParticularLongValue.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(ParticularLongValue other)
Returns the logical or of this LongValue and the given ParticularLongValue.LongValue
remainder(LongValue other)
Returns the remainder of this LongValue divided by the given LongValue.LongValue
remainder(ParticularLongValue other)
Returns the remainder of this LongValue divided by the given ParticularLongValue.LongValue
remainderOf(LongValue other)
Returns the remainder of the given LongValue divided by this LongValue.LongValue
remainderOf(ParticularLongValue other)
Returns the remainder of the given ParticularLongValue divided by this LongValue.LongValue
shiftLeft(IntegerValue other)
Returns this LongValue, shifted left by the given IntegerValue.LongValue
shiftLeft(ParticularIntegerValue other)
Returns this LongValue, shifted left by the given ParticularIntegerValue.LongValue
shiftRight(IntegerValue other)
Returns this LongValue, shifted right by the given IntegerValue.LongValue
shiftRight(ParticularIntegerValue other)
Returns this LongValue, shifted right by the given ParticularIntegerValue.LongValue
subtract(LongValue other)
Returns the difference of this LongValue and the given LongValue.LongValue
subtract(ParticularLongValue other)
Returns the difference of this LongValue and the given ParticularLongValue.LongValue
subtractFrom(LongValue other)
Returns the difference of the given LongValue and this LongValue.LongValue
subtractFrom(ParticularLongValue other)
Returns the difference of the given ParticularLongValue and this LongValue.java.lang.String
toString()
LongValue
unsignedShiftRight(IntegerValue other)
Returns this unsigned LongValue, shifted left by the given IntegerValue.LongValue
unsignedShiftRight(ParticularIntegerValue other)
Returns this unsigned LongValue, shifted right by the given ParticularIntegerValue.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(ParticularLongValue other)
Returns the logical xor of this LongValue and the given ParticularLongValue.-
Methods inherited from class proguard.evaluation.value.SpecificLongValue
add, and, compare, divide, divideOf, generalize, isSpecific, multiply, or, remainder, remainderOf, shiftLeft, shiftRight, subtract, subtractFrom, unsignedShiftRight, xor
-
Methods inherited from class proguard.evaluation.value.LongValue
compare, compareReverse, compareReverse, compareReverse, computationalType, generalize, internalType, longValue
-
Methods inherited from class proguard.evaluation.value.Category2Value
category2Value, isCategory2
-
Methods inherited from class proguard.evaluation.value.Value
category1Value, copyIfMutable, doubleValue, floatValue, instructionOffsetValue, integerValue, referenceValue
-
-
-
-
Method Detail
-
value
public long value()
Description copied from class:LongValue
Returns the specific long value, if applicable.
-
negate
public LongValue negate()
Description copied from class:LongValue
Returns the negated value of this LongValue.- Overrides:
negate
in classSpecificLongValue
-
convertToInteger
public IntegerValue convertToInteger()
Description copied from class:LongValue
Converts this LongValue to an IntegerValue.- Overrides:
convertToInteger
in classSpecificLongValue
-
convertToFloat
public FloatValue convertToFloat()
Description copied from class:LongValue
Converts this LongValue to a FloatValue.- Overrides:
convertToFloat
in classSpecificLongValue
-
convertToDouble
public DoubleValue convertToDouble()
Description copied from class:LongValue
Converts this LongValue to a DoubleValue.- Overrides:
convertToDouble
in classSpecificLongValue
-
generalize
public LongValue generalize(LongValue other)
Description copied from class:LongValue
Returns the generalization of this LongValue and the given other LongValue.- Overrides:
generalize
in classSpecificLongValue
-
add
public LongValue add(LongValue other)
Description copied from class:LongValue
Returns the sum of this LongValue and the given LongValue.- Overrides:
add
in classSpecificLongValue
-
subtract
public LongValue subtract(LongValue other)
Description copied from class:LongValue
Returns the difference of this LongValue and the given LongValue.- Overrides:
subtract
in classSpecificLongValue
-
subtractFrom
public LongValue subtractFrom(LongValue other)
Description copied from class:LongValue
Returns the difference of the given LongValue and this LongValue.- Overrides:
subtractFrom
in classSpecificLongValue
-
multiply
public LongValue multiply(LongValue other)
Description copied from class:LongValue
Returns the product of this LongValue and the given LongValue.- Overrides:
multiply
in classSpecificLongValue
-
divide
public LongValue divide(LongValue other) throws java.lang.ArithmeticException
Description copied from class:LongValue
Returns the quotient of this LongValue and the given LongValue.- Overrides:
divide
in classSpecificLongValue
- Throws:
java.lang.ArithmeticException
-
divideOf
public LongValue divideOf(LongValue other) throws java.lang.ArithmeticException
Description copied from class:LongValue
Returns the quotient of the given LongValue and this LongValue.- Overrides:
divideOf
in classSpecificLongValue
- Throws:
java.lang.ArithmeticException
-
remainder
public LongValue remainder(LongValue other) throws java.lang.ArithmeticException
Description copied from class:LongValue
Returns the remainder of this LongValue divided by the given LongValue.- Overrides:
remainder
in classSpecificLongValue
- Throws:
java.lang.ArithmeticException
-
remainderOf
public LongValue remainderOf(LongValue other) throws java.lang.ArithmeticException
Description copied from class:LongValue
Returns the remainder of the given LongValue divided by this LongValue.- Overrides:
remainderOf
in classSpecificLongValue
- Throws:
java.lang.ArithmeticException
-
shiftLeft
public LongValue shiftLeft(IntegerValue other)
Description copied from class:LongValue
Returns this LongValue, shifted left by the given IntegerValue.- Overrides:
shiftLeft
in classSpecificLongValue
-
shiftRight
public LongValue shiftRight(IntegerValue other)
Description copied from class:LongValue
Returns this LongValue, shifted right by the given IntegerValue.- Overrides:
shiftRight
in classSpecificLongValue
-
unsignedShiftRight
public LongValue unsignedShiftRight(IntegerValue other)
Description copied from class:LongValue
Returns this unsigned LongValue, shifted left by the given IntegerValue.- Overrides:
unsignedShiftRight
in classSpecificLongValue
-
and
public LongValue and(LongValue other)
Description copied from class:LongValue
Returns the logical and of this LongValue and the given LongValue.- Overrides:
and
in classSpecificLongValue
-
or
public LongValue or(LongValue other)
Description copied from class:LongValue
Returns the logical or of this LongValue and the given LongValue.- Overrides:
or
in classSpecificLongValue
-
xor
public LongValue xor(LongValue other)
Description copied from class:LongValue
Returns the logical xor of this LongValue and the given LongValue.- Overrides:
xor
in classSpecificLongValue
-
compare
public IntegerValue compare(LongValue other)
Description copied from class:LongValue
Returns an IntegerValue with value -1, 0, or 1, if this LongValue is less than, equal to, or greater than the given LongValue, respectively.- Overrides:
compare
in classSpecificLongValue
-
generalize
public LongValue generalize(ParticularLongValue other)
Description copied from class:LongValue
Returns the generalization of this LongValue and the given other ParticularLongValue.- Overrides:
generalize
in classLongValue
-
add
public LongValue add(ParticularLongValue other)
Description copied from class:LongValue
Returns the sum of this LongValue and the given ParticularLongValue.
-
subtract
public LongValue subtract(ParticularLongValue other)
Description copied from class:LongValue
Returns the difference of this LongValue and the given ParticularLongValue.
-
subtractFrom
public LongValue subtractFrom(ParticularLongValue other)
Description copied from class:LongValue
Returns the difference of the given ParticularLongValue and this LongValue.- Overrides:
subtractFrom
in classLongValue
-
multiply
public LongValue multiply(ParticularLongValue other)
Description copied from class:LongValue
Returns the product of this LongValue and the given ParticularLongValue.
-
divide
public LongValue divide(ParticularLongValue other) throws java.lang.ArithmeticException
Description copied from class:LongValue
Returns the quotient of this LongValue and the given ParticularLongValue.
-
divideOf
public LongValue divideOf(ParticularLongValue other) throws java.lang.ArithmeticException
Description copied from class:LongValue
Returns the quotient of the given ParticularLongValue and this LongValue.
-
remainder
public LongValue remainder(ParticularLongValue other) throws java.lang.ArithmeticException
Description copied from class:LongValue
Returns the remainder of this LongValue divided by the given ParticularLongValue.
-
remainderOf
public LongValue remainderOf(ParticularLongValue other) throws java.lang.ArithmeticException
Description copied from class:LongValue
Returns the remainder of the given ParticularLongValue divided by this LongValue.- Overrides:
remainderOf
in classLongValue
- Throws:
java.lang.ArithmeticException
-
shiftLeft
public LongValue shiftLeft(ParticularIntegerValue other)
Description copied from class:LongValue
Returns this LongValue, shifted left by the given ParticularIntegerValue.
-
shiftRight
public LongValue shiftRight(ParticularIntegerValue other)
Description copied from class:LongValue
Returns this LongValue, shifted right by the given ParticularIntegerValue.- Overrides:
shiftRight
in classLongValue
-
unsignedShiftRight
public LongValue unsignedShiftRight(ParticularIntegerValue other)
Description copied from class:LongValue
Returns this unsigned LongValue, shifted right by the given ParticularIntegerValue.- Overrides:
unsignedShiftRight
in classLongValue
-
and
public LongValue and(ParticularLongValue other)
Description copied from class:LongValue
Returns the logical and of this LongValue and the given ParticularLongValue.
-
or
public LongValue or(ParticularLongValue other)
Description copied from class:LongValue
Returns the logical or of this LongValue and the given ParticularLongValue.
-
xor
public LongValue xor(ParticularLongValue other)
Description copied from class:LongValue
Returns the logical xor of this LongValue and the given ParticularLongValue.
-
isParticular
public boolean isParticular()
Description copied from class:Value
Returns whether this Value represents a single particular (known) value.- Overrides:
isParticular
in classValue
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classSpecificLongValue
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSpecificLongValue
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-