Package proguard.evaluation.value
Class SpecificIntegerValue
java.lang.Object
proguard.evaluation.value.Value
proguard.evaluation.value.Category1Value
proguard.evaluation.value.IntegerValue
proguard.evaluation.value.SpecificIntegerValue
- Direct Known Subclasses:
ComparisonValue,CompositeIntegerValue,ConvertedByteValue,ConvertedCharacterValue,ConvertedIntegerValue,ConvertedShortValue,IdentifiedIntegerValue,NegatedIntegerValue,ParticularIntegerValue
This
IntegerValue represents a specific integer value.
This class handles interactions with: - RangeIntegerValue - SpecificInteger (in general)
It reverses and delegates interactions with: - IntegerValue (in general)
It notably doesn't handle interactions with: - UnknownInteger
-
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 TypeMethodDescriptionadd(IntegerValue other) Returns the sum of this IntegerValue and the given IntegerValue.add(RangeIntegerValue other) Returns the sum of this IntegerValue and the given RangeIntegerValue.add(SpecificIntegerValue other) Returns the sum of this IntegerValue and the given SpecificIntegerValue.and(IntegerValue other) Returns the logical and of this IntegerValue and the given IntegerValue.and(RangeIntegerValue other) Returns the logical and of this IntegerValue and the given RangeIntegerValue.and(SpecificIntegerValue other) Returns the logical and of this IntegerValue and the given SpecificIntegerValue.Converts this IntegerValue to a byte IntegerValue.Converts this IntegerValue to a character IntegerValue.Converts this IntegerValue to a DoubleValue.Converts this IntegerValue to a FloatValue.Converts this IntegerValue to a LongValue.Converts this IntegerValue to a short IntegerValue.divide(IntegerValue other) Returns the quotient of this IntegerValue and the given IntegerValue.divide(RangeIntegerValue other) Returns the quotient of this IntegerValue and the given RangeIntegerValue.divide(SpecificIntegerValue other) Returns the quotient of this IntegerValue and the given SpecificIntegerValue.divideOf(IntegerValue other) Returns the quotient of the given IntegerValue and this IntegerValue.divideOf(RangeIntegerValue other) Returns the quotient of the given RangeIntegerValue and this IntegerValue.divideOf(SpecificIntegerValue other) Returns the quotient of the given SpecificIntegerValue and this IntegerValue.intequal(IntegerValue other) Returns whether this IntegerValue and the given IntegerValue are equal:NEVER,MAYBE, orALWAYS.intequal(RangeIntegerValue other) Returns whether this IntegerValue and the given RangeIntegerValue are equal:NEVER,MAYBE, orALWAYS.intequal(SpecificIntegerValue other) Returns whether this IntegerValue and the given SpecificIntegerValue are equal:NEVER,MAYBE, orALWAYS.booleangeneralize(IntegerValue other) Returns the generalization of this IntegerValue and the given other IntegerValue.generalize(RangeIntegerValue other) Returns the generalization of this IntegerValue and the given other RangeIntegerValue.generalize(SpecificIntegerValue other) Returns the generalization of this IntegerValue and the given other SpecificIntegerValue.inthashCode()booleanReturns whether this Value represents a single specific (but possibly unknown) value.intlessThan(IntegerValue other) Returns whether this IntegerValue is less than the given IntegerValue:NEVER,MAYBE, orALWAYS.intlessThan(RangeIntegerValue other) Returns whether this IntegerValue is less than the given RangeIntegerValue:NEVER,MAYBE, orALWAYS.intlessThan(SpecificIntegerValue other) Returns whether this IntegerValue is less than the given SpecificIntegerValue:NEVER,MAYBE, orALWAYS.intlessThanOrEqual(IntegerValue other) Returns whether this IntegerValue is less than or equal to the given IntegerValue:NEVER,MAYBE, orALWAYS.intlessThanOrEqual(RangeIntegerValue other) Returns whether this IntegerValue is less than or equal to the given RangeIntegerValue:NEVER,MAYBE, orALWAYS.intReturns whether this IntegerValue is less than or equal to the given SpecificIntegerValue:NEVER,MAYBE, orALWAYS.multiply(IntegerValue other) Returns the product of this IntegerValue and the given IntegerValue.multiply(RangeIntegerValue other) Returns the product of this IntegerValue and the given RangeIntegerValue.multiply(SpecificIntegerValue other) Returns the product of this IntegerValue and the given SpecificIntegerValue.negate()Returns the negated value of this IntegerValue.or(IntegerValue other) Returns the logical or of this IntegerValue and the given IntegerValue.or(RangeIntegerValue other) Returns the logical or of this IntegerValue and the given RangeIntegerValue.or(SpecificIntegerValue other) Returns the logical or of this IntegerValue and the given SpecificIntegerValue.remainder(IntegerValue other) Returns the remainder of this IntegerValue divided by the given IntegerValue.remainder(RangeIntegerValue other) Returns the remainder of this IntegerValue divided by the given RangeIntegerValue.remainder(SpecificIntegerValue other) Returns the remainder of this IntegerValue divided by the given SpecificIntegerValue.remainderOf(IntegerValue other) Returns the remainder of the given IntegerValue divided by this IntegerValue.remainderOf(RangeIntegerValue other) Returns the remainder of the given RangeIntegerValue divided by this IntegerValue.remainderOf(SpecificIntegerValue other) Returns the remainder of the given SpecificIntegerValue divided by this IntegerValue.shiftLeft(IntegerValue other) Returns this IntegerValue, shifted left by the given IntegerValue.shiftLeft(RangeIntegerValue other) Returns this IntegerValue, shifted left by the given RangeIntegerValue.shiftLeft(SpecificIntegerValue other) Returns this IntegerValue, shifted left by the given SpecificIntegerValue.shiftLeftOf(IntegerValue other) Returns the given IntegerValue, shifted left by this IntegerValue.shiftLeftOf(LongValue other) Returns the given LongValue, shifted left by this IntegerValue.shiftLeftOf(RangeIntegerValue other) Returns the given RangeIntegerValue, shifted left by this IntegerValue.shiftLeftOf(SpecificIntegerValue other) Returns the given SpecificIntegerValue, shifted left by this IntegerValue.shiftLeftOf(SpecificLongValue other) Returns the given SpecificLongValue, shifted left by this IntegerValue.shiftRight(IntegerValue other) Returns this IntegerValue, shifted right by the given IntegerValue.shiftRight(RangeIntegerValue other) Returns this IntegerValue, shifted right by the given RangeIntegerValue.shiftRight(SpecificIntegerValue other) Returns this IntegerValue, shifted right by the given SpecificIntegerValue.shiftRightOf(IntegerValue other) Returns the given IntegerValue, shifted right by this IntegerValue.shiftRightOf(LongValue other) Returns the given LongValue, shifted right by this IntegerValue.shiftRightOf(RangeIntegerValue other) Returns the given RangeIntegerValue, shifted right by this IntegerValue.shiftRightOf(SpecificIntegerValue other) Returns the given SpecificIntegerValue, shifted right by this IntegerValue.shiftRightOf(SpecificLongValue other) Returns the given SpecificLongValue, shifted right by this IntegerValue.subtract(IntegerValue other) Returns the difference of this IntegerValue and the given IntegerValue.subtract(RangeIntegerValue other) Returns the difference of this IntegerValue and the given RangeIntegerValue.subtract(SpecificIntegerValue other) Returns the difference of this IntegerValue and the given SpecificIntegerValue.subtractFrom(IntegerValue other) Returns the difference of the given IntegerValue and this IntegerValue.subtractFrom(RangeIntegerValue other) Returns the difference of the given RangeIntegerValue and this IntegerValue.subtractFrom(SpecificIntegerValue other) Returns the difference of the given SpecificIntegerValue and this IntegerValue.unsignedShiftRight(IntegerValue other) Returns this unsigned IntegerValue, shifted left by the given IntegerValue.Returns this unsigned IntegerValue, shifted right by the given RangeIntegerValue.Returns this unsigned IntegerValue, shifted right by the given SpecificIntegerValue.unsignedShiftRightOf(IntegerValue other) Returns the given unsigned IntegerValue, shifted left by this IntegerValue.unsignedShiftRightOf(LongValue other) Returns the given unsigned LongValue, shifted right by this IntegerValue.Returns the given unsigned RangeIntegerValue, shifted right by this IntegerValue.Returns the given unsigned SpecificIntegerValue, shifted right by this IntegerValue.Returns the given unsigned SpecificLongValue, shifted right by this IntegerValue.xor(IntegerValue other) Returns the logical xor of this IntegerValue and the given IntegerValue.xor(RangeIntegerValue other) Returns the logical xor of this IntegerValue and the given RangeIntegerValue.xor(SpecificIntegerValue other) Returns the logical xor of this IntegerValue and the given SpecificIntegerValue.Methods inherited from class proguard.evaluation.value.IntegerValue
add, add, and, and, computationalType, divide, divide, divideOf, divideOf, equal, equal, generalize, generalize, generalize, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanOrEqual, greaterThanOrEqual, greaterThanOrEqual, greaterThanOrEqual, greaterThanOrEqual, integerValue, internalType, lessThan, lessThan, lessThanOrEqual, lessThanOrEqual, multiply, multiply, notEqual, notEqual, notEqual, notEqual, notEqual, or, or, remainder, remainder, remainderOf, remainderOf, shiftLeft, shiftLeft, shiftLeftOf, shiftLeftOf, shiftLeftOf, shiftLeftOf, shiftRight, shiftRight, shiftRightOf, shiftRightOf, shiftRightOf, shiftRightOf, subtract, subtract, subtractFrom, subtractFrom, unsignedShiftRight, unsignedShiftRight, unsignedShiftRightOf, unsignedShiftRightOf, unsignedShiftRightOf, unsignedShiftRightOf, value, xor, xorMethods inherited from class proguard.evaluation.value.Category1Value
category1Value, isCategory2Methods inherited from class proguard.evaluation.value.Value
category2Value, copyIfMutable, doubleValue, floatValue, instructionOffsetValue, isParticular, longValue, referenceValue
-
Constructor Details
-
SpecificIntegerValue
public SpecificIntegerValue()
-
-
Method Details
-
negate
Description copied from class:IntegerValueReturns the negated value of this IntegerValue.- Specified by:
negatein classIntegerValue
-
convertToByte
Description copied from class:IntegerValueConverts this IntegerValue to a byte IntegerValue.- Specified by:
convertToBytein classIntegerValue
-
convertToCharacter
Description copied from class:IntegerValueConverts this IntegerValue to a character IntegerValue.- Specified by:
convertToCharacterin classIntegerValue
-
convertToShort
Description copied from class:IntegerValueConverts this IntegerValue to a short IntegerValue.- Specified by:
convertToShortin classIntegerValue
-
convertToLong
Description copied from class:IntegerValueConverts this IntegerValue to a LongValue.- Specified by:
convertToLongin classIntegerValue
-
convertToFloat
Description copied from class:IntegerValueConverts this IntegerValue to a FloatValue.- Specified by:
convertToFloatin classIntegerValue
-
convertToDouble
Description copied from class:IntegerValueConverts this IntegerValue to a DoubleValue.- Specified by:
convertToDoublein classIntegerValue
-
generalize
Description copied from class:IntegerValueReturns the generalization of this IntegerValue and the given other IntegerValue.- Specified by:
generalizein classIntegerValue
-
add
Description copied from class:IntegerValueReturns the sum of this IntegerValue and the given IntegerValue.- Specified by:
addin classIntegerValue
-
subtract
Description copied from class:IntegerValueReturns the difference of this IntegerValue and the given IntegerValue.- Specified by:
subtractin classIntegerValue
-
subtractFrom
Description copied from class:IntegerValueReturns the difference of the given IntegerValue and this IntegerValue.- Specified by:
subtractFromin classIntegerValue
-
multiply
Description copied from class:IntegerValueReturns the product of this IntegerValue and the given IntegerValue.- Specified by:
multiplyin classIntegerValue
-
divide
Description copied from class:IntegerValueReturns the quotient of this IntegerValue and the given IntegerValue.- Specified by:
dividein classIntegerValue- Throws:
ArithmeticException
-
divideOf
Description copied from class:IntegerValueReturns the quotient of the given IntegerValue and this IntegerValue.- Specified by:
divideOfin classIntegerValue- Throws:
ArithmeticException
-
remainder
Description copied from class:IntegerValueReturns the remainder of this IntegerValue divided by the given IntegerValue.- Specified by:
remainderin classIntegerValue- Throws:
ArithmeticException
-
remainderOf
Description copied from class:IntegerValueReturns the remainder of the given IntegerValue divided by this IntegerValue.- Specified by:
remainderOfin classIntegerValue- Throws:
ArithmeticException
-
shiftLeft
Description copied from class:IntegerValueReturns this IntegerValue, shifted left by the given IntegerValue.- Specified by:
shiftLeftin classIntegerValue
-
shiftLeftOf
Description copied from class:IntegerValueReturns the given IntegerValue, shifted left by this IntegerValue.- Specified by:
shiftLeftOfin classIntegerValue
-
shiftRight
Description copied from class:IntegerValueReturns this IntegerValue, shifted right by the given IntegerValue.- Specified by:
shiftRightin classIntegerValue
-
shiftRightOf
Description copied from class:IntegerValueReturns the given IntegerValue, shifted right by this IntegerValue.- Specified by:
shiftRightOfin classIntegerValue
-
unsignedShiftRight
Description copied from class:IntegerValueReturns this unsigned IntegerValue, shifted left by the given IntegerValue.- Specified by:
unsignedShiftRightin classIntegerValue
-
unsignedShiftRightOf
Description copied from class:IntegerValueReturns the given unsigned IntegerValue, shifted left by this IntegerValue.- Specified by:
unsignedShiftRightOfin classIntegerValue
-
shiftLeftOf
Description copied from class:IntegerValueReturns the given LongValue, shifted left by this IntegerValue.- Specified by:
shiftLeftOfin classIntegerValue
-
shiftRightOf
Description copied from class:IntegerValueReturns the given LongValue, shifted right by this IntegerValue.- Specified by:
shiftRightOfin classIntegerValue
-
unsignedShiftRightOf
Description copied from class:IntegerValueReturns the given unsigned LongValue, shifted right by this IntegerValue.- Specified by:
unsignedShiftRightOfin classIntegerValue
-
and
Description copied from class:IntegerValueReturns the logical and of this IntegerValue and the given IntegerValue.- Specified by:
andin classIntegerValue
-
or
Description copied from class:IntegerValueReturns the logical or of this IntegerValue and the given IntegerValue.- Specified by:
orin classIntegerValue
-
xor
Description copied from class:IntegerValueReturns the logical xor of this IntegerValue and the given IntegerValue.- Specified by:
xorin classIntegerValue
-
equal
Description copied from class:IntegerValueReturns whether this IntegerValue and the given IntegerValue are equal:NEVER,MAYBE, orALWAYS.- Specified by:
equalin classIntegerValue
-
lessThan
Description copied from class:IntegerValueReturns whether this IntegerValue is less than the given IntegerValue:NEVER,MAYBE, orALWAYS.- Specified by:
lessThanin classIntegerValue
-
lessThanOrEqual
Description copied from class:IntegerValueReturns whether this IntegerValue is less than or equal to the given IntegerValue:NEVER,MAYBE, orALWAYS.- Specified by:
lessThanOrEqualin classIntegerValue
-
generalize
Description copied from class:IntegerValueReturns the generalization of this IntegerValue and the given other SpecificIntegerValue.- Overrides:
generalizein classIntegerValue
-
add
Description copied from class:IntegerValueReturns the sum of this IntegerValue and the given SpecificIntegerValue.- Overrides:
addin classIntegerValue
-
subtract
Description copied from class:IntegerValueReturns the difference of this IntegerValue and the given SpecificIntegerValue.- Overrides:
subtractin classIntegerValue
-
subtractFrom
Description copied from class:IntegerValueReturns the difference of the given SpecificIntegerValue and this IntegerValue.- Overrides:
subtractFromin classIntegerValue
-
multiply
Description copied from class:IntegerValueReturns the product of this IntegerValue and the given SpecificIntegerValue.- Overrides:
multiplyin classIntegerValue
-
divide
Description copied from class:IntegerValueReturns the quotient of this IntegerValue and the given SpecificIntegerValue.- Overrides:
dividein classIntegerValue- Throws:
ArithmeticException
-
divideOf
Description copied from class:IntegerValueReturns the quotient of the given SpecificIntegerValue and this IntegerValue.- Overrides:
divideOfin classIntegerValue- Throws:
ArithmeticException
-
remainder
Description copied from class:IntegerValueReturns the remainder of this IntegerValue divided by the given SpecificIntegerValue.- Overrides:
remainderin classIntegerValue- Throws:
ArithmeticException
-
remainderOf
Description copied from class:IntegerValueReturns the remainder of the given SpecificIntegerValue divided by this IntegerValue.- Overrides:
remainderOfin classIntegerValue- Throws:
ArithmeticException
-
shiftLeft
Description copied from class:IntegerValueReturns this IntegerValue, shifted left by the given SpecificIntegerValue.- Overrides:
shiftLeftin classIntegerValue
-
shiftRight
Description copied from class:IntegerValueReturns this IntegerValue, shifted right by the given SpecificIntegerValue.- Overrides:
shiftRightin classIntegerValue
-
unsignedShiftRight
Description copied from class:IntegerValueReturns this unsigned IntegerValue, shifted right by the given SpecificIntegerValue.- Overrides:
unsignedShiftRightin classIntegerValue
-
shiftLeftOf
Description copied from class:IntegerValueReturns the given SpecificIntegerValue, shifted left by this IntegerValue.- Overrides:
shiftLeftOfin classIntegerValue
-
shiftRightOf
Description copied from class:IntegerValueReturns the given SpecificIntegerValue, shifted right by this IntegerValue.- Overrides:
shiftRightOfin classIntegerValue
-
unsignedShiftRightOf
Description copied from class:IntegerValueReturns the given unsigned SpecificIntegerValue, shifted right by this IntegerValue.- Overrides:
unsignedShiftRightOfin classIntegerValue
-
shiftLeftOf
Description copied from class:IntegerValueReturns the given SpecificLongValue, shifted left by this IntegerValue.- Overrides:
shiftLeftOfin classIntegerValue
-
shiftRightOf
Description copied from class:IntegerValueReturns the given SpecificLongValue, shifted right by this IntegerValue.- Overrides:
shiftRightOfin classIntegerValue
-
unsignedShiftRightOf
Description copied from class:IntegerValueReturns the given unsigned SpecificLongValue, shifted right by this IntegerValue.- Overrides:
unsignedShiftRightOfin classIntegerValue
-
and
Description copied from class:IntegerValueReturns the logical and of this IntegerValue and the given SpecificIntegerValue.- Overrides:
andin classIntegerValue
-
or
Description copied from class:IntegerValueReturns the logical or of this IntegerValue and the given SpecificIntegerValue.- Overrides:
orin classIntegerValue
-
xor
Description copied from class:IntegerValueReturns the logical xor of this IntegerValue and the given SpecificIntegerValue.- Overrides:
xorin classIntegerValue
-
equal
Description copied from class:IntegerValueReturns whether this IntegerValue and the given SpecificIntegerValue are equal:NEVER,MAYBE, orALWAYS.- Overrides:
equalin classIntegerValue
-
lessThan
Description copied from class:IntegerValueReturns whether this IntegerValue is less than the given SpecificIntegerValue:NEVER,MAYBE, orALWAYS.- Overrides:
lessThanin classIntegerValue
-
lessThanOrEqual
Description copied from class:IntegerValueReturns whether this IntegerValue is less than or equal to the given SpecificIntegerValue:NEVER,MAYBE, orALWAYS.- Overrides:
lessThanOrEqualin classIntegerValue
-
generalize
Description copied from class:IntegerValueReturns the generalization of this IntegerValue and the given other RangeIntegerValue.- Overrides:
generalizein classIntegerValue
-
add
Description copied from class:IntegerValueReturns the sum of this IntegerValue and the given RangeIntegerValue.- Overrides:
addin classIntegerValue
-
subtract
Description copied from class:IntegerValueReturns the difference of this IntegerValue and the given RangeIntegerValue.- Overrides:
subtractin classIntegerValue
-
subtractFrom
Description copied from class:IntegerValueReturns the difference of the given RangeIntegerValue and this IntegerValue.- Overrides:
subtractFromin classIntegerValue
-
multiply
Description copied from class:IntegerValueReturns the product of this IntegerValue and the given RangeIntegerValue.- Overrides:
multiplyin classIntegerValue
-
divide
Description copied from class:IntegerValueReturns the quotient of this IntegerValue and the given RangeIntegerValue.- Overrides:
dividein classIntegerValue- Throws:
ArithmeticException
-
divideOf
Description copied from class:IntegerValueReturns the quotient of the given RangeIntegerValue and this IntegerValue.- Overrides:
divideOfin classIntegerValue- Throws:
ArithmeticException
-
remainder
Description copied from class:IntegerValueReturns the remainder of this IntegerValue divided by the given RangeIntegerValue.- Overrides:
remainderin classIntegerValue- Throws:
ArithmeticException
-
remainderOf
Description copied from class:IntegerValueReturns the remainder of the given RangeIntegerValue divided by this IntegerValue.- Overrides:
remainderOfin classIntegerValue- Throws:
ArithmeticException
-
shiftLeft
Description copied from class:IntegerValueReturns this IntegerValue, shifted left by the given RangeIntegerValue.- Overrides:
shiftLeftin classIntegerValue
-
shiftRight
Description copied from class:IntegerValueReturns this IntegerValue, shifted right by the given RangeIntegerValue.- Overrides:
shiftRightin classIntegerValue
-
unsignedShiftRight
Description copied from class:IntegerValueReturns this unsigned IntegerValue, shifted right by the given RangeIntegerValue.- Overrides:
unsignedShiftRightin classIntegerValue
-
shiftLeftOf
Description copied from class:IntegerValueReturns the given RangeIntegerValue, shifted left by this IntegerValue.- Overrides:
shiftLeftOfin classIntegerValue
-
shiftRightOf
Description copied from class:IntegerValueReturns the given RangeIntegerValue, shifted right by this IntegerValue.- Overrides:
shiftRightOfin classIntegerValue
-
unsignedShiftRightOf
Description copied from class:IntegerValueReturns the given unsigned RangeIntegerValue, shifted right by this IntegerValue.- Overrides:
unsignedShiftRightOfin classIntegerValue
-
and
Description copied from class:IntegerValueReturns the logical and of this IntegerValue and the given RangeIntegerValue.- Overrides:
andin classIntegerValue
-
or
Description copied from class:IntegerValueReturns the logical or of this IntegerValue and the given RangeIntegerValue.- Overrides:
orin classIntegerValue
-
xor
Description copied from class:IntegerValueReturns the logical xor of this IntegerValue and the given RangeIntegerValue.- Overrides:
xorin classIntegerValue
-
equal
Description copied from class:IntegerValueReturns whether this IntegerValue and the given RangeIntegerValue are equal:NEVER,MAYBE, orALWAYS.- Overrides:
equalin classIntegerValue
-
lessThan
Description copied from class:IntegerValueReturns whether this IntegerValue is less than the given RangeIntegerValue:NEVER,MAYBE, orALWAYS.- Overrides:
lessThanin classIntegerValue
-
lessThanOrEqual
Description copied from class:IntegerValueReturns whether this IntegerValue is less than or equal to the given RangeIntegerValue:NEVER,MAYBE, orALWAYS.- Overrides:
lessThanOrEqualin classIntegerValue
-
isSpecific
public boolean isSpecific()Description copied from class:ValueReturns whether this Value represents a single specific (but possibly unknown) value.- Overrides:
isSpecificin classValue
-
equals
-
hashCode
public int hashCode()
-