Package proguard.evaluation.value
Class LongValue
java.lang.Object
proguard.evaluation.value.Value
proguard.evaluation.value.Category2Value
proguard.evaluation.value.LongValue
- Direct Known Subclasses:
SpecificLongValue,UnknownLongValue
Representation of a partially evaluated 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.add(SpecificLongValue other) Returns the sum of this LongValue and the given SpecificLongValue.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.and(SpecificLongValue other) Returns the logical and of this LongValue and the given SpecificLongValue.Returns an IntegerValue with value -1, 0, or 1, if this LongValue is less than, equal to, or greater than the given LongValue, respectively.compare(ParticularLongValue other) Returns an IntegerValue with value -1, 0, or 1, if this LongValue is less than, equal to, or greater than the given ParticularLongValue, respectively.compare(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.final IntegerValuecompareReverse(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.final IntegerValueReturns an IntegerValue with value 1, 0, or -1, if this LongValue is less than, equal to, or greater than the given ParticularLongValue, respectively.final IntegerValuecompareReverse(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.final intReturns the computational type of this Value.abstract DoubleValueConverts this LongValue to a DoubleValue.abstract FloatValueConverts this LongValue to a FloatValue.abstract IntegerValueConverts 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.divide(SpecificLongValue other) Returns the quotient of this LongValue and the given SpecificLongValue.Returns the quotient of the given LongValue and this LongValue.divideOf(ParticularLongValue other) Returns the quotient of the given ParticularLongValue and this LongValue.divideOf(SpecificLongValue other) Returns the quotient of the given SpecificLongValue and this LongValue.generalize(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.generalize(SpecificLongValue other) Returns the generalization of this LongValue and the given other SpecificLongValue.final Valuegeneralize(Value other) Returns the generalization of this Value and the given other Value.final StringReturns the internal type of this Value.final LongValueReturns this Value as a LongValue.Returns the product of this LongValue and the given LongValue.multiply(ParticularLongValue other) Returns the product of this LongValue and the given ParticularLongValue.multiply(SpecificLongValue other) Returns the product of this LongValue and the given SpecificLongValue.abstract LongValuenegate()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.or(SpecificLongValue other) Returns the logical or of this LongValue and the given SpecificLongValue.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.remainder(SpecificLongValue other) Returns the remainder of this LongValue divided by the given SpecificLongValue.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.remainderOf(SpecificLongValue other) Returns the remainder of the given SpecificLongValue 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.shiftLeft(SpecificLongValue other) Returns this LongValue, shifted left by the given SpecificLongValue.shiftRight(IntegerValue other) Returns this LongValue, shifted right by the given IntegerValue.shiftRight(ParticularIntegerValue other) Returns this LongValue, shifted right by the given ParticularIntegerValue.shiftRight(SpecificLongValue other) Returns this LongValue, shifted right by the given SpecificLongValue.Returns the difference of this LongValue and the given LongValue.subtract(ParticularLongValue other) Returns the difference of this LongValue and the given ParticularLongValue.subtract(SpecificLongValue other) Returns the difference of this LongValue and the given SpecificLongValue.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.subtractFrom(SpecificLongValue other) Returns the difference of the given SpecificLongValue and this LongValue.unsignedShiftRight(IntegerValue other) Returns this unsigned LongValue, shifted left by the given IntegerValue.Returns this unsigned LongValue, shifted right by the given ParticularIntegerValue.Returns this unsigned LongValue, shifted right by the given SpecificLongValue.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.xor(SpecificLongValue other) Returns the logical xor of this LongValue and the given SpecificLongValue.Methods inherited from class proguard.evaluation.value.Category2Value
category2Value, isCategory2Methods inherited from class proguard.evaluation.value.Value
category1Value, copyIfMutable, doubleValue, floatValue, instructionOffsetValue, integerValue, isParticular, isSpecific, referenceValue
-
Constructor Details
-
LongValue
public LongValue()
-
-
Method Details
-
value
public long value()Returns the specific long value, if applicable. -
negate
Returns the negated value of this LongValue. -
convertToInteger
Converts this LongValue to an IntegerValue. -
convertToFloat
Converts this LongValue to a FloatValue. -
convertToDouble
Converts this LongValue to a DoubleValue. -
generalize
Returns the generalization of this LongValue and the given other LongValue. -
add
Returns the sum of this LongValue and the given LongValue. -
subtract
Returns the difference of this LongValue and the given LongValue. -
subtractFrom
Returns the difference of the given LongValue and this LongValue. -
multiply
Returns the product of this LongValue and the given LongValue.- Throws:
ArithmeticException
-
divide
Returns the quotient of this LongValue and the given LongValue.- Throws:
ArithmeticException
-
divideOf
Returns the quotient of the given LongValue and this LongValue.- Throws:
ArithmeticException
-
remainder
Returns the remainder of this LongValue divided by the given LongValue.- Throws:
ArithmeticException
-
remainderOf
Returns the remainder of the given LongValue divided by this LongValue.- Throws:
ArithmeticException
-
shiftLeft
Returns this LongValue, shifted left by the given IntegerValue. -
shiftRight
Returns this LongValue, shifted right by the given IntegerValue. -
unsignedShiftRight
Returns this unsigned LongValue, shifted left by the given IntegerValue. -
and
Returns the logical and of this LongValue and the given LongValue. -
or
Returns the logical or of this LongValue and the given LongValue. -
xor
Returns the logical xor of this LongValue and the given LongValue. -
compare
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
Returns an IntegerValue with value 1, 0, or -1, if this LongValue is less than, equal to, or greater than the given LongValue, respectively. -
generalize
Returns the generalization of this LongValue and the given other SpecificLongValue. -
add
Returns the sum of this LongValue and the given SpecificLongValue. -
subtract
Returns the difference of this LongValue and the given SpecificLongValue. -
subtractFrom
Returns the difference of the given SpecificLongValue and this LongValue. -
multiply
Returns the product of this LongValue and the given SpecificLongValue. -
divide
Returns the quotient of this LongValue and the given SpecificLongValue. -
divideOf
Returns the quotient of the given SpecificLongValue and this LongValue. -
remainder
Returns the remainder of this LongValue divided by the given SpecificLongValue. -
remainderOf
Returns the remainder of the given SpecificLongValue divided by this LongValue. -
shiftLeft
Returns this LongValue, shifted left by the given SpecificLongValue. -
shiftRight
Returns this LongValue, shifted right by the given SpecificLongValue. -
unsignedShiftRight
Returns this unsigned LongValue, shifted right by the given SpecificLongValue. -
and
Returns the logical and of this LongValue and the given SpecificLongValue. -
or
Returns the logical or of this LongValue and the given SpecificLongValue. -
xor
Returns the logical xor of this LongValue and the given SpecificLongValue. -
compare
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
Returns an IntegerValue with value 1, 0, or -1, if this LongValue is less than, equal to, or greater than the given SpecificLongValue, respectively. -
generalize
Returns the generalization of this LongValue and the given other ParticularLongValue. -
add
Returns the sum of this LongValue and the given ParticularLongValue. -
subtract
Returns the difference of this LongValue and the given ParticularLongValue. -
subtractFrom
Returns the difference of the given ParticularLongValue and this LongValue. -
multiply
Returns the product of this LongValue and the given ParticularLongValue. -
divide
Returns the quotient of this LongValue and the given ParticularLongValue. -
divideOf
Returns the quotient of the given ParticularLongValue and this LongValue. -
remainder
Returns the remainder of this LongValue divided by the given ParticularLongValue. -
remainderOf
Returns the remainder of the given ParticularLongValue divided by this LongValue. -
shiftLeft
Returns this LongValue, shifted left by the given ParticularIntegerValue. -
shiftRight
Returns this LongValue, shifted right by the given ParticularIntegerValue. -
unsignedShiftRight
Returns this unsigned LongValue, shifted right by the given ParticularIntegerValue. -
and
Returns the logical and of this LongValue and the given ParticularLongValue. -
or
Returns the logical or of this LongValue and the given ParticularLongValue. -
xor
Returns the logical xor of this LongValue and the given ParticularLongValue. -
compare
Returns an IntegerValue with value -1, 0, or 1, if this LongValue is less than, equal to, or greater than the given ParticularLongValue, respectively. -
compareReverse
Returns an IntegerValue with value 1, 0, or -1, if this LongValue is less than, equal to, or greater than the given ParticularLongValue, respectively. -
longValue
Description copied from class:ValueReturns this Value as a LongValue. -
generalize
Description copied from class:ValueReturns the generalization of this Value and the given other Value.- Specified by:
generalizein classValue
-
computationalType
public final int computationalType()Description copied from class:ValueReturns the computational type of this Value.- Specified by:
computationalTypein classValue- Returns:
TYPE_INTEGER,TYPE_LONG,TYPE_FLOAT,TYPE_DOUBLE,TYPE_REFERENCE, orTYPE_INSTRUCTION_OFFSET.
-
internalType
Description copied from class:ValueReturns the internal type of this Value.- Specified by:
internalTypein classValue- Returns:
TypeConstants.BOOLEAN,TypeConstants.BYTE,TypeConstants.CHAR,TypeConstants.SHORT,TypeConstants.INT,TypeConstants.LONG,TypeConstants.FLOAT,TypeConstants.DOUBLE,TypeConstants.CLASS_START ... TypeConstants.CLASS_END, or an array type containing any of these types (always as String).
-