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
ThisLongValuerepresents 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 LongValueadd(LongValue other)Returns the sum of this LongValue and the given LongValue.LongValueadd(ParticularLongValue other)Returns the sum of this LongValue and the given ParticularLongValue.LongValueand(LongValue other)Returns the logical and of this LongValue and the given LongValue.LongValueand(ParticularLongValue other)Returns the logical and of this LongValue and the given ParticularLongValue.IntegerValuecompare(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.DoubleValueconvertToDouble()Converts this LongValue to a DoubleValue.FloatValueconvertToFloat()Converts this LongValue to a FloatValue.IntegerValueconvertToInteger()Converts this LongValue to an IntegerValue.LongValuedivide(LongValue other)Returns the quotient of this LongValue and the given LongValue.LongValuedivide(ParticularLongValue other)Returns the quotient of this LongValue and the given ParticularLongValue.LongValuedivideOf(LongValue other)Returns the quotient of the given LongValue and this LongValue.LongValuedivideOf(ParticularLongValue other)Returns the quotient of the given ParticularLongValue and this LongValue.booleanequals(java.lang.Object object)LongValuegeneralize(LongValue other)Returns the generalization of this LongValue and the given other LongValue.LongValuegeneralize(ParticularLongValue other)Returns the generalization of this LongValue and the given other ParticularLongValue.inthashCode()booleanisParticular()Returns whether this Value represents a single particular (known) value.LongValuemultiply(LongValue other)Returns the product of this LongValue and the given LongValue.LongValuemultiply(ParticularLongValue other)Returns the product of this LongValue and the given ParticularLongValue.LongValuenegate()Returns the negated value of this LongValue.LongValueor(LongValue other)Returns the logical or of this LongValue and the given LongValue.LongValueor(ParticularLongValue other)Returns the logical or of this LongValue and the given ParticularLongValue.LongValueremainder(LongValue other)Returns the remainder of this LongValue divided by the given LongValue.LongValueremainder(ParticularLongValue other)Returns the remainder of this LongValue divided by the given ParticularLongValue.LongValueremainderOf(LongValue other)Returns the remainder of the given LongValue divided by this LongValue.LongValueremainderOf(ParticularLongValue other)Returns the remainder of the given ParticularLongValue divided by this LongValue.LongValueshiftLeft(IntegerValue other)Returns this LongValue, shifted left by the given IntegerValue.LongValueshiftLeft(ParticularIntegerValue other)Returns this LongValue, shifted left by the given ParticularIntegerValue.LongValueshiftRight(IntegerValue other)Returns this LongValue, shifted right by the given IntegerValue.LongValueshiftRight(ParticularIntegerValue other)Returns this LongValue, shifted right by the given ParticularIntegerValue.LongValuesubtract(LongValue other)Returns the difference of this LongValue and the given LongValue.LongValuesubtract(ParticularLongValue other)Returns the difference of this LongValue and the given ParticularLongValue.LongValuesubtractFrom(LongValue other)Returns the difference of the given LongValue and this LongValue.LongValuesubtractFrom(ParticularLongValue other)Returns the difference of the given ParticularLongValue and this LongValue.java.lang.StringtoString()LongValueunsignedShiftRight(IntegerValue other)Returns this unsigned LongValue, shifted left by the given IntegerValue.LongValueunsignedShiftRight(ParticularIntegerValue other)Returns this unsigned LongValue, shifted right by the given ParticularIntegerValue.longvalue()Returns the specific long value, if applicable.LongValuexor(LongValue other)Returns the logical xor of this LongValue and the given LongValue.LongValuexor(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:LongValueReturns the specific long value, if applicable.
-
negate
public LongValue negate()
Description copied from class:LongValueReturns the negated value of this LongValue.- Overrides:
negatein classSpecificLongValue
-
convertToInteger
public IntegerValue convertToInteger()
Description copied from class:LongValueConverts this LongValue to an IntegerValue.- Overrides:
convertToIntegerin classSpecificLongValue
-
convertToFloat
public FloatValue convertToFloat()
Description copied from class:LongValueConverts this LongValue to a FloatValue.- Overrides:
convertToFloatin classSpecificLongValue
-
convertToDouble
public DoubleValue convertToDouble()
Description copied from class:LongValueConverts this LongValue to a DoubleValue.- Overrides:
convertToDoublein classSpecificLongValue
-
generalize
public LongValue generalize(LongValue other)
Description copied from class:LongValueReturns the generalization of this LongValue and the given other LongValue.- Overrides:
generalizein classSpecificLongValue
-
add
public LongValue add(LongValue other)
Description copied from class:LongValueReturns the sum of this LongValue and the given LongValue.- Overrides:
addin classSpecificLongValue
-
subtract
public LongValue subtract(LongValue other)
Description copied from class:LongValueReturns the difference of this LongValue and the given LongValue.- Overrides:
subtractin classSpecificLongValue
-
subtractFrom
public LongValue subtractFrom(LongValue other)
Description copied from class:LongValueReturns the difference of the given LongValue and this LongValue.- Overrides:
subtractFromin classSpecificLongValue
-
multiply
public LongValue multiply(LongValue other)
Description copied from class:LongValueReturns the product of this LongValue and the given LongValue.- Overrides:
multiplyin classSpecificLongValue
-
divide
public LongValue divide(LongValue other) throws java.lang.ArithmeticException
Description copied from class:LongValueReturns the quotient of this LongValue and the given LongValue.- Overrides:
dividein classSpecificLongValue- Throws:
java.lang.ArithmeticException
-
divideOf
public LongValue divideOf(LongValue other) throws java.lang.ArithmeticException
Description copied from class:LongValueReturns the quotient of the given LongValue and this LongValue.- Overrides:
divideOfin classSpecificLongValue- Throws:
java.lang.ArithmeticException
-
remainder
public LongValue remainder(LongValue other) throws java.lang.ArithmeticException
Description copied from class:LongValueReturns the remainder of this LongValue divided by the given LongValue.- Overrides:
remainderin classSpecificLongValue- Throws:
java.lang.ArithmeticException
-
remainderOf
public LongValue remainderOf(LongValue other) throws java.lang.ArithmeticException
Description copied from class:LongValueReturns the remainder of the given LongValue divided by this LongValue.- Overrides:
remainderOfin classSpecificLongValue- Throws:
java.lang.ArithmeticException
-
shiftLeft
public LongValue shiftLeft(IntegerValue other)
Description copied from class:LongValueReturns this LongValue, shifted left by the given IntegerValue.- Overrides:
shiftLeftin classSpecificLongValue
-
shiftRight
public LongValue shiftRight(IntegerValue other)
Description copied from class:LongValueReturns this LongValue, shifted right by the given IntegerValue.- Overrides:
shiftRightin classSpecificLongValue
-
unsignedShiftRight
public LongValue unsignedShiftRight(IntegerValue other)
Description copied from class:LongValueReturns this unsigned LongValue, shifted left by the given IntegerValue.- Overrides:
unsignedShiftRightin classSpecificLongValue
-
and
public LongValue and(LongValue other)
Description copied from class:LongValueReturns the logical and of this LongValue and the given LongValue.- Overrides:
andin classSpecificLongValue
-
or
public LongValue or(LongValue other)
Description copied from class:LongValueReturns the logical or of this LongValue and the given LongValue.- Overrides:
orin classSpecificLongValue
-
xor
public LongValue xor(LongValue other)
Description copied from class:LongValueReturns the logical xor of this LongValue and the given LongValue.- Overrides:
xorin classSpecificLongValue
-
compare
public IntegerValue compare(LongValue other)
Description copied from class:LongValueReturns an IntegerValue with value -1, 0, or 1, if this LongValue is less than, equal to, or greater than the given LongValue, respectively.- Overrides:
comparein classSpecificLongValue
-
generalize
public LongValue generalize(ParticularLongValue other)
Description copied from class:LongValueReturns the generalization of this LongValue and the given other ParticularLongValue.- Overrides:
generalizein classLongValue
-
add
public LongValue add(ParticularLongValue other)
Description copied from class:LongValueReturns the sum of this LongValue and the given ParticularLongValue.
-
subtract
public LongValue subtract(ParticularLongValue other)
Description copied from class:LongValueReturns the difference of this LongValue and the given ParticularLongValue.
-
subtractFrom
public LongValue subtractFrom(ParticularLongValue other)
Description copied from class:LongValueReturns the difference of the given ParticularLongValue and this LongValue.- Overrides:
subtractFromin classLongValue
-
multiply
public LongValue multiply(ParticularLongValue other)
Description copied from class:LongValueReturns the product of this LongValue and the given ParticularLongValue.
-
divide
public LongValue divide(ParticularLongValue other) throws java.lang.ArithmeticException
Description copied from class:LongValueReturns the quotient of this LongValue and the given ParticularLongValue.
-
divideOf
public LongValue divideOf(ParticularLongValue other) throws java.lang.ArithmeticException
Description copied from class:LongValueReturns the quotient of the given ParticularLongValue and this LongValue.
-
remainder
public LongValue remainder(ParticularLongValue other) throws java.lang.ArithmeticException
Description copied from class:LongValueReturns the remainder of this LongValue divided by the given ParticularLongValue.
-
remainderOf
public LongValue remainderOf(ParticularLongValue other) throws java.lang.ArithmeticException
Description copied from class:LongValueReturns the remainder of the given ParticularLongValue divided by this LongValue.- Overrides:
remainderOfin classLongValue- Throws:
java.lang.ArithmeticException
-
shiftLeft
public LongValue shiftLeft(ParticularIntegerValue other)
Description copied from class:LongValueReturns this LongValue, shifted left by the given ParticularIntegerValue.
-
shiftRight
public LongValue shiftRight(ParticularIntegerValue other)
Description copied from class:LongValueReturns this LongValue, shifted right by the given ParticularIntegerValue.- Overrides:
shiftRightin classLongValue
-
unsignedShiftRight
public LongValue unsignedShiftRight(ParticularIntegerValue other)
Description copied from class:LongValueReturns this unsigned LongValue, shifted right by the given ParticularIntegerValue.- Overrides:
unsignedShiftRightin classLongValue
-
and
public LongValue and(ParticularLongValue other)
Description copied from class:LongValueReturns the logical and of this LongValue and the given ParticularLongValue.
-
or
public LongValue or(ParticularLongValue other)
Description copied from class:LongValueReturns the logical or of this LongValue and the given ParticularLongValue.
-
xor
public LongValue xor(ParticularLongValue other)
Description copied from class:LongValueReturns the logical xor of this LongValue and the given ParticularLongValue.
-
isParticular
public boolean isParticular()
Description copied from class:ValueReturns whether this Value represents a single particular (known) value.- Overrides:
isParticularin classValue
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classSpecificLongValue
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSpecificLongValue
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-