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
This
LongValue 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 -
Method Summary
Modifier and TypeMethodDescriptionReturns the sum of this LongValue and the given LongValue.add(ParticularLongValue other) Returns the sum of this LongValue and the given ParticularLongValue.Returns the logical and of this LongValue and the given LongValue.and(ParticularLongValue other) Returns the logical and of this LongValue and the given ParticularLongValue.Returns an IntegerValue with value -1, 0, or 1, if this LongValue is less than, equal to, or greater than the given LongValue, respectively.Converts this LongValue to a DoubleValue.Converts this LongValue to a FloatValue.Converts this LongValue to an IntegerValue.Returns the quotient of this LongValue and the given LongValue.divide(ParticularLongValue other) Returns the quotient of this LongValue and the given ParticularLongValue.Returns the quotient of the given LongValue and this LongValue.divideOf(ParticularLongValue other) Returns the quotient of the given ParticularLongValue and this LongValue.booleangeneralize(LongValue other) Returns the generalization of this LongValue and the given other LongValue.generalize(ParticularLongValue other) Returns the generalization of this LongValue and the given other ParticularLongValue.inthashCode()booleanReturns whether this Value represents a single particular (known) value.Returns the product of this LongValue and the given LongValue.multiply(ParticularLongValue other) Returns the product of this LongValue and the given ParticularLongValue.negate()Returns the negated value of this LongValue.Returns the logical or of this LongValue and the given LongValue.or(ParticularLongValue other) Returns the logical or of this LongValue and the given ParticularLongValue.Returns the remainder of this LongValue divided by the given LongValue.remainder(ParticularLongValue other) Returns the remainder of this LongValue divided by the given ParticularLongValue.remainderOf(LongValue other) Returns the remainder of the given LongValue divided by this LongValue.remainderOf(ParticularLongValue other) Returns the remainder of the given ParticularLongValue divided by this LongValue.shiftLeft(IntegerValue other) Returns this LongValue, shifted left by the given IntegerValue.shiftLeft(ParticularIntegerValue other) Returns this LongValue, shifted left by the given ParticularIntegerValue.shiftRight(IntegerValue other) Returns this LongValue, shifted right by the given IntegerValue.shiftRight(ParticularIntegerValue other) Returns this LongValue, shifted right by the given ParticularIntegerValue.Returns the difference of this LongValue and the given LongValue.subtract(ParticularLongValue other) Returns the difference of this LongValue and the given ParticularLongValue.subtractFrom(LongValue other) Returns the difference of the given LongValue and this LongValue.subtractFrom(ParticularLongValue other) Returns the difference of the given ParticularLongValue and this LongValue.toString()unsignedShiftRight(IntegerValue other) Returns this unsigned LongValue, shifted left by the given IntegerValue.Returns this unsigned LongValue, shifted right by the given ParticularIntegerValue.longvalue()Returns the specific long value, if applicable.Returns the logical xor of this LongValue and the given 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, xorMethods inherited from class proguard.evaluation.value.LongValue
compare, compareReverse, compareReverse, compareReverse, computationalType, generalize, internalType, longValueMethods inherited from class proguard.evaluation.value.Category2Value
category2Value, isCategory2Methods inherited from class proguard.evaluation.value.Value
category1Value, copyIfMutable, doubleValue, floatValue, instructionOffsetValue, integerValue, referenceValue
-
Constructor Details
-
ParticularLongValue
public ParticularLongValue(long value) Creates a new particular long value.
-
-
Method Details
-
value
public long value()Description copied from class:LongValueReturns the specific long value, if applicable. -
negate
Description copied from class:LongValueReturns the negated value of this LongValue.- Overrides:
negatein classSpecificLongValue
-
convertToInteger
Description copied from class:LongValueConverts this LongValue to an IntegerValue.- Overrides:
convertToIntegerin classSpecificLongValue
-
convertToFloat
Description copied from class:LongValueConverts this LongValue to a FloatValue.- Overrides:
convertToFloatin classSpecificLongValue
-
convertToDouble
Description copied from class:LongValueConverts this LongValue to a DoubleValue.- Overrides:
convertToDoublein classSpecificLongValue
-
generalize
Description copied from class:LongValueReturns the generalization of this LongValue and the given other LongValue.- Overrides:
generalizein classSpecificLongValue
-
add
Description copied from class:LongValueReturns the sum of this LongValue and the given LongValue.- Overrides:
addin classSpecificLongValue
-
subtract
Description copied from class:LongValueReturns the difference of this LongValue and the given LongValue.- Overrides:
subtractin classSpecificLongValue
-
subtractFrom
Description copied from class:LongValueReturns the difference of the given LongValue and this LongValue.- Overrides:
subtractFromin classSpecificLongValue
-
multiply
Description copied from class:LongValueReturns the product of this LongValue and the given LongValue.- Overrides:
multiplyin classSpecificLongValue
-
divide
Description copied from class:LongValueReturns the quotient of this LongValue and the given LongValue.- Overrides:
dividein classSpecificLongValue- Throws:
ArithmeticException
-
divideOf
Description copied from class:LongValueReturns the quotient of the given LongValue and this LongValue.- Overrides:
divideOfin classSpecificLongValue- Throws:
ArithmeticException
-
remainder
Description copied from class:LongValueReturns the remainder of this LongValue divided by the given LongValue.- Overrides:
remainderin classSpecificLongValue- Throws:
ArithmeticException
-
remainderOf
Description copied from class:LongValueReturns the remainder of the given LongValue divided by this LongValue.- Overrides:
remainderOfin classSpecificLongValue- Throws:
ArithmeticException
-
shiftLeft
Description copied from class:LongValueReturns this LongValue, shifted left by the given IntegerValue.- Overrides:
shiftLeftin classSpecificLongValue
-
shiftRight
Description copied from class:LongValueReturns this LongValue, shifted right by the given IntegerValue.- Overrides:
shiftRightin classSpecificLongValue
-
unsignedShiftRight
Description copied from class:LongValueReturns this unsigned LongValue, shifted left by the given IntegerValue.- Overrides:
unsignedShiftRightin classSpecificLongValue
-
and
Description copied from class:LongValueReturns the logical and of this LongValue and the given LongValue.- Overrides:
andin classSpecificLongValue
-
or
Description copied from class:LongValueReturns the logical or of this LongValue and the given LongValue.- Overrides:
orin classSpecificLongValue
-
xor
Description copied from class:LongValueReturns the logical xor of this LongValue and the given LongValue.- Overrides:
xorin classSpecificLongValue
-
compare
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
Description copied from class:LongValueReturns the generalization of this LongValue and the given other ParticularLongValue.- Overrides:
generalizein classLongValue
-
add
Description copied from class:LongValueReturns the sum of this LongValue and the given ParticularLongValue. -
subtract
Description copied from class:LongValueReturns the difference of this LongValue and the given ParticularLongValue. -
subtractFrom
Description copied from class:LongValueReturns the difference of the given ParticularLongValue and this LongValue.- Overrides:
subtractFromin classLongValue
-
multiply
Description copied from class:LongValueReturns the product of this LongValue and the given ParticularLongValue. -
divide
Description copied from class:LongValueReturns the quotient of this LongValue and the given ParticularLongValue.- Overrides:
dividein classLongValue- Throws:
ArithmeticException
-
divideOf
Description copied from class:LongValueReturns the quotient of the given ParticularLongValue and this LongValue.- Overrides:
divideOfin classLongValue- Throws:
ArithmeticException
-
remainder
Description copied from class:LongValueReturns the remainder of this LongValue divided by the given ParticularLongValue.- Overrides:
remainderin classLongValue- Throws:
ArithmeticException
-
remainderOf
Description copied from class:LongValueReturns the remainder of the given ParticularLongValue divided by this LongValue.- Overrides:
remainderOfin classLongValue- Throws:
ArithmeticException
-
shiftLeft
Description copied from class:LongValueReturns this LongValue, shifted left by the given ParticularIntegerValue. -
shiftRight
Description copied from class:LongValueReturns this LongValue, shifted right by the given ParticularIntegerValue.- Overrides:
shiftRightin classLongValue
-
unsignedShiftRight
Description copied from class:LongValueReturns this unsigned LongValue, shifted right by the given ParticularIntegerValue.- Overrides:
unsignedShiftRightin classLongValue
-
and
Description copied from class:LongValueReturns the logical and of this LongValue and the given ParticularLongValue. -
or
Description copied from class:LongValueReturns the logical or of this LongValue and the given ParticularLongValue. -
xor
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
- Overrides:
equalsin classSpecificLongValue
-
hashCode
public int hashCode()- Overrides:
hashCodein classSpecificLongValue
-
toString
-