public abstract class SpecificIntegerValue extends IntegerValue
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:
- UnknownIntegerALWAYS, MAYBE, NEVER, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INSTRUCTION_OFFSET, TYPE_INTEGER, TYPE_LONG, TYPE_REFERENCE, TYPE_TOP| Constructor and Description |
|---|
SpecificIntegerValue() |
| Modifier and Type | Method and Description |
|---|---|
IntegerValue |
add(IntegerValue other)
Returns the sum of this IntegerValue and the given IntegerValue.
|
IntegerValue |
add(RangeIntegerValue other)
Returns the sum of this IntegerValue and the given RangeIntegerValue.
|
IntegerValue |
add(SpecificIntegerValue other)
Returns the sum of this IntegerValue and the given SpecificIntegerValue.
|
IntegerValue |
and(IntegerValue other)
Returns the logical and of this IntegerValue and the given
IntegerValue.
|
IntegerValue |
and(RangeIntegerValue other)
Returns the logical and of this IntegerValue and the given
RangeIntegerValue.
|
IntegerValue |
and(SpecificIntegerValue other)
Returns the logical and of this IntegerValue and the given
SpecificIntegerValue.
|
IntegerValue |
convertToByte()
Converts this IntegerValue to a byte IntegerValue.
|
IntegerValue |
convertToCharacter()
Converts this IntegerValue to a character IntegerValue.
|
DoubleValue |
convertToDouble()
Converts this IntegerValue to a DoubleValue.
|
FloatValue |
convertToFloat()
Converts this IntegerValue to a FloatValue.
|
LongValue |
convertToLong()
Converts this IntegerValue to a LongValue.
|
IntegerValue |
convertToShort()
Converts this IntegerValue to a short IntegerValue.
|
IntegerValue |
divide(IntegerValue other)
Returns the quotient of this IntegerValue and the given IntegerValue.
|
IntegerValue |
divide(RangeIntegerValue other)
Returns the quotient of this IntegerValue and the given
RangeIntegerValue.
|
IntegerValue |
divide(SpecificIntegerValue other)
Returns the quotient of this IntegerValue and the given
SpecificIntegerValue.
|
IntegerValue |
divideOf(IntegerValue other)
Returns the quotient of the given IntegerValue and this IntegerValue.
|
IntegerValue |
divideOf(RangeIntegerValue other)
Returns the quotient of the given RangeIntegerValue and this
IntegerValue.
|
IntegerValue |
divideOf(SpecificIntegerValue other)
Returns the quotient of the given SpecificIntegerValue and this
IntegerValue.
|
int |
equal(IntegerValue other)
Returns whether this IntegerValue and the given IntegerValue are equal:
NEVER, MAYBE, or ALWAYS. |
int |
equal(RangeIntegerValue other)
Returns whether this IntegerValue and the given RangeIntegerValue are
equal:
NEVER, MAYBE, or ALWAYS. |
int |
equal(SpecificIntegerValue other)
Returns whether this IntegerValue and the given SpecificIntegerValue are
equal:
NEVER, MAYBE, or ALWAYS. |
boolean |
equals(java.lang.Object object) |
IntegerValue |
generalize(IntegerValue other)
Returns the generalization of this IntegerValue and the given other
IntegerValue.
|
IntegerValue |
generalize(RangeIntegerValue other)
Returns the generalization of this IntegerValue and the given other
RangeIntegerValue.
|
IntegerValue |
generalize(SpecificIntegerValue other)
Returns the generalization of this IntegerValue and the given other
SpecificIntegerValue.
|
int |
hashCode() |
boolean |
isSpecific()
Returns whether this Value represents a single specific (but possibly
unknown) value.
|
int |
lessThan(IntegerValue other)
Returns whether this IntegerValue is less than the given IntegerValue:
NEVER, MAYBE, or ALWAYS. |
int |
lessThan(RangeIntegerValue other)
Returns whether this IntegerValue is less than the given
RangeIntegerValue:
NEVER, MAYBE, or
ALWAYS. |
int |
lessThan(SpecificIntegerValue other)
Returns whether this IntegerValue is less than the given
SpecificIntegerValue:
NEVER, MAYBE, or
ALWAYS. |
int |
lessThanOrEqual(IntegerValue other)
Returns whether this IntegerValue is less than or equal to the given
IntegerValue:
NEVER, MAYBE, or
ALWAYS. |
int |
lessThanOrEqual(RangeIntegerValue other)
Returns whether this IntegerValue is less than or equal to the given
RangeIntegerValue:
NEVER, MAYBE, or
ALWAYS. |
int |
lessThanOrEqual(SpecificIntegerValue other)
Returns whether this IntegerValue is less than or equal to the given
SpecificIntegerValue:
NEVER, MAYBE, or
ALWAYS. |
IntegerValue |
multiply(IntegerValue other)
Returns the product of this IntegerValue and the given IntegerValue.
|
IntegerValue |
multiply(RangeIntegerValue other)
Returns the product of this IntegerValue and the given RangeIntegerValue.
|
IntegerValue |
multiply(SpecificIntegerValue other)
Returns the product of this IntegerValue and the given SpecificIntegerValue.
|
IntegerValue |
negate()
Returns the negated value of this IntegerValue.
|
IntegerValue |
or(IntegerValue other)
Returns the logical or of this IntegerValue and the given
IntegerValue.
|
IntegerValue |
or(RangeIntegerValue other)
Returns the logical or of this IntegerValue and the given
RangeIntegerValue.
|
IntegerValue |
or(SpecificIntegerValue other)
Returns the logical or of this IntegerValue and the given
SpecificIntegerValue.
|
IntegerValue |
remainder(IntegerValue other)
Returns the remainder of this IntegerValue divided by the given
IntegerValue.
|
IntegerValue |
remainder(RangeIntegerValue other)
Returns the remainder of this IntegerValue divided by the given
RangeIntegerValue.
|
IntegerValue |
remainder(SpecificIntegerValue other)
Returns the remainder of this IntegerValue divided by the given
SpecificIntegerValue.
|
IntegerValue |
remainderOf(IntegerValue other)
Returns the remainder of the given IntegerValue divided by this
IntegerValue.
|
IntegerValue |
remainderOf(RangeIntegerValue other)
Returns the remainder of the given RangeIntegerValue divided by this
IntegerValue.
|
IntegerValue |
remainderOf(SpecificIntegerValue other)
Returns the remainder of the given SpecificIntegerValue divided by this
IntegerValue.
|
IntegerValue |
shiftLeft(IntegerValue other)
Returns this IntegerValue, shifted left by the given IntegerValue.
|
IntegerValue |
shiftLeft(RangeIntegerValue other)
Returns this IntegerValue, shifted left by the given RangeIntegerValue.
|
IntegerValue |
shiftLeft(SpecificIntegerValue other)
Returns this IntegerValue, shifted left by the given SpecificIntegerValue.
|
IntegerValue |
shiftLeftOf(IntegerValue other)
Returns the given IntegerValue, shifted left by this IntegerValue.
|
LongValue |
shiftLeftOf(LongValue other)
Returns the given LongValue, shifted left by this IntegerValue.
|
IntegerValue |
shiftLeftOf(RangeIntegerValue other)
Returns the given RangeIntegerValue, shifted left by this IntegerValue.
|
IntegerValue |
shiftLeftOf(SpecificIntegerValue other)
Returns the given SpecificIntegerValue, shifted left by this IntegerValue.
|
LongValue |
shiftLeftOf(SpecificLongValue other)
Returns the given SpecificLongValue, shifted left by this IntegerValue.
|
IntegerValue |
shiftRight(IntegerValue other)
Returns this IntegerValue, shifted right by the given IntegerValue.
|
IntegerValue |
shiftRight(RangeIntegerValue other)
Returns this IntegerValue, shifted right by the given RangeIntegerValue.
|
IntegerValue |
shiftRight(SpecificIntegerValue other)
Returns this IntegerValue, shifted right by the given SpecificIntegerValue.
|
IntegerValue |
shiftRightOf(IntegerValue other)
Returns the given IntegerValue, shifted right by this IntegerValue.
|
LongValue |
shiftRightOf(LongValue other)
Returns the given LongValue, shifted right by this IntegerValue.
|
IntegerValue |
shiftRightOf(RangeIntegerValue other)
Returns the given RangeIntegerValue, shifted right by this IntegerValue.
|
IntegerValue |
shiftRightOf(SpecificIntegerValue other)
Returns the given SpecificIntegerValue, shifted right by this IntegerValue.
|
LongValue |
shiftRightOf(SpecificLongValue other)
Returns the given SpecificLongValue, shifted right by this IntegerValue.
|
IntegerValue |
subtract(IntegerValue other)
Returns the difference of this IntegerValue and the given IntegerValue.
|
IntegerValue |
subtract(RangeIntegerValue other)
Returns the difference of this IntegerValue and the given RangeIntegerValue.
|
IntegerValue |
subtract(SpecificIntegerValue other)
Returns the difference of this IntegerValue and the given SpecificIntegerValue.
|
IntegerValue |
subtractFrom(IntegerValue other)
Returns the difference of the given IntegerValue and this IntegerValue.
|
IntegerValue |
subtractFrom(RangeIntegerValue other)
Returns the difference of the given RangeIntegerValue and this IntegerValue.
|
IntegerValue |
subtractFrom(SpecificIntegerValue other)
Returns the difference of the given SpecificIntegerValue and this IntegerValue.
|
IntegerValue |
unsignedShiftRight(IntegerValue other)
Returns this unsigned IntegerValue, shifted left by the given
IntegerValue.
|
IntegerValue |
unsignedShiftRight(RangeIntegerValue other)
Returns this unsigned IntegerValue, shifted right by the given
RangeIntegerValue.
|
IntegerValue |
unsignedShiftRight(SpecificIntegerValue other)
Returns this unsigned IntegerValue, shifted right by the given
SpecificIntegerValue.
|
IntegerValue |
unsignedShiftRightOf(IntegerValue other)
Returns the given unsigned IntegerValue, shifted left by this
IntegerValue.
|
LongValue |
unsignedShiftRightOf(LongValue other)
Returns the given unsigned LongValue, shifted right by this IntegerValue.
|
IntegerValue |
unsignedShiftRightOf(RangeIntegerValue other)
Returns the given unsigned RangeIntegerValue, shifted right by this
IntegerValue.
|
IntegerValue |
unsignedShiftRightOf(SpecificIntegerValue other)
Returns the given unsigned SpecificIntegerValue, shifted right by this
IntegerValue.
|
LongValue |
unsignedShiftRightOf(SpecificLongValue other)
Returns the given unsigned SpecificLongValue, shifted right by this
IntegerValue.
|
IntegerValue |
xor(IntegerValue other)
Returns the logical xor of this IntegerValue and the given
IntegerValue.
|
IntegerValue |
xor(RangeIntegerValue other)
Returns the logical xor of this IntegerValue and the given
RangeIntegerValue.
|
IntegerValue |
xor(SpecificIntegerValue other)
Returns the logical xor of this IntegerValue and the given
SpecificIntegerValue.
|
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, xorcategory1Value, isCategory2category2Value, doubleValue, floatValue, instructionOffsetValue, isParticular, longValue, referenceValuepublic IntegerValue negate()
IntegerValuenegate in class IntegerValuepublic IntegerValue convertToByte()
IntegerValueconvertToByte in class IntegerValuepublic IntegerValue convertToCharacter()
IntegerValueconvertToCharacter in class IntegerValuepublic IntegerValue convertToShort()
IntegerValueconvertToShort in class IntegerValuepublic LongValue convertToLong()
IntegerValueconvertToLong in class IntegerValuepublic FloatValue convertToFloat()
IntegerValueconvertToFloat in class IntegerValuepublic DoubleValue convertToDouble()
IntegerValueconvertToDouble in class IntegerValuepublic IntegerValue generalize(IntegerValue other)
IntegerValuegeneralize in class IntegerValuepublic IntegerValue add(IntegerValue other)
IntegerValueadd in class IntegerValuepublic IntegerValue subtract(IntegerValue other)
IntegerValuesubtract in class IntegerValuepublic IntegerValue subtractFrom(IntegerValue other)
IntegerValuesubtractFrom in class IntegerValuepublic IntegerValue multiply(IntegerValue other)
IntegerValuemultiply in class IntegerValuepublic IntegerValue divide(IntegerValue other) throws java.lang.ArithmeticException
IntegerValuedivide in class IntegerValuejava.lang.ArithmeticExceptionpublic IntegerValue divideOf(IntegerValue other) throws java.lang.ArithmeticException
IntegerValuedivideOf in class IntegerValuejava.lang.ArithmeticExceptionpublic IntegerValue remainder(IntegerValue other) throws java.lang.ArithmeticException
IntegerValueremainder in class IntegerValuejava.lang.ArithmeticExceptionpublic IntegerValue remainderOf(IntegerValue other) throws java.lang.ArithmeticException
IntegerValueremainderOf in class IntegerValuejava.lang.ArithmeticExceptionpublic IntegerValue shiftLeft(IntegerValue other)
IntegerValueshiftLeft in class IntegerValuepublic IntegerValue shiftLeftOf(IntegerValue other)
IntegerValueshiftLeftOf in class IntegerValuepublic IntegerValue shiftRight(IntegerValue other)
IntegerValueshiftRight in class IntegerValuepublic IntegerValue shiftRightOf(IntegerValue other)
IntegerValueshiftRightOf in class IntegerValuepublic IntegerValue unsignedShiftRight(IntegerValue other)
IntegerValueunsignedShiftRight in class IntegerValuepublic IntegerValue unsignedShiftRightOf(IntegerValue other)
IntegerValueunsignedShiftRightOf in class IntegerValuepublic LongValue shiftLeftOf(LongValue other)
IntegerValueshiftLeftOf in class IntegerValuepublic LongValue shiftRightOf(LongValue other)
IntegerValueshiftRightOf in class IntegerValuepublic LongValue unsignedShiftRightOf(LongValue other)
IntegerValueunsignedShiftRightOf in class IntegerValuepublic IntegerValue and(IntegerValue other)
IntegerValueand in class IntegerValuepublic IntegerValue or(IntegerValue other)
IntegerValueor in class IntegerValuepublic IntegerValue xor(IntegerValue other)
IntegerValuexor in class IntegerValuepublic int equal(IntegerValue other)
IntegerValueNEVER, MAYBE, or ALWAYS.equal in class IntegerValuepublic int lessThan(IntegerValue other)
IntegerValueNEVER, MAYBE, or ALWAYS.lessThan in class IntegerValuepublic int lessThanOrEqual(IntegerValue other)
IntegerValueNEVER, MAYBE, or
ALWAYS.lessThanOrEqual in class IntegerValuepublic IntegerValue generalize(SpecificIntegerValue other)
IntegerValuegeneralize in class IntegerValuepublic IntegerValue add(SpecificIntegerValue other)
IntegerValueadd in class IntegerValuepublic IntegerValue subtract(SpecificIntegerValue other)
IntegerValuesubtract in class IntegerValuepublic IntegerValue subtractFrom(SpecificIntegerValue other)
IntegerValuesubtractFrom in class IntegerValuepublic IntegerValue multiply(SpecificIntegerValue other)
IntegerValuemultiply in class IntegerValuepublic IntegerValue divide(SpecificIntegerValue other) throws java.lang.ArithmeticException
IntegerValuedivide in class IntegerValuejava.lang.ArithmeticExceptionpublic IntegerValue divideOf(SpecificIntegerValue other) throws java.lang.ArithmeticException
IntegerValuedivideOf in class IntegerValuejava.lang.ArithmeticExceptionpublic IntegerValue remainder(SpecificIntegerValue other) throws java.lang.ArithmeticException
IntegerValueremainder in class IntegerValuejava.lang.ArithmeticExceptionpublic IntegerValue remainderOf(SpecificIntegerValue other) throws java.lang.ArithmeticException
IntegerValueremainderOf in class IntegerValuejava.lang.ArithmeticExceptionpublic IntegerValue shiftLeft(SpecificIntegerValue other)
IntegerValueshiftLeft in class IntegerValuepublic IntegerValue shiftRight(SpecificIntegerValue other)
IntegerValueshiftRight in class IntegerValuepublic IntegerValue unsignedShiftRight(SpecificIntegerValue other)
IntegerValueunsignedShiftRight in class IntegerValuepublic IntegerValue shiftLeftOf(SpecificIntegerValue other)
IntegerValueshiftLeftOf in class IntegerValuepublic IntegerValue shiftRightOf(SpecificIntegerValue other)
IntegerValueshiftRightOf in class IntegerValuepublic IntegerValue unsignedShiftRightOf(SpecificIntegerValue other)
IntegerValueunsignedShiftRightOf in class IntegerValuepublic LongValue shiftLeftOf(SpecificLongValue other)
IntegerValueshiftLeftOf in class IntegerValuepublic LongValue shiftRightOf(SpecificLongValue other)
IntegerValueshiftRightOf in class IntegerValuepublic LongValue unsignedShiftRightOf(SpecificLongValue other)
IntegerValueunsignedShiftRightOf in class IntegerValuepublic IntegerValue and(SpecificIntegerValue other)
IntegerValueand in class IntegerValuepublic IntegerValue or(SpecificIntegerValue other)
IntegerValueor in class IntegerValuepublic IntegerValue xor(SpecificIntegerValue other)
IntegerValuexor in class IntegerValuepublic int equal(SpecificIntegerValue other)
IntegerValueNEVER, MAYBE, or ALWAYS.equal in class IntegerValuepublic int lessThan(SpecificIntegerValue other)
IntegerValueNEVER, MAYBE, or
ALWAYS.lessThan in class IntegerValuepublic int lessThanOrEqual(SpecificIntegerValue other)
IntegerValueNEVER, MAYBE, or
ALWAYS.lessThanOrEqual in class IntegerValuepublic IntegerValue generalize(RangeIntegerValue other)
IntegerValuegeneralize in class IntegerValuepublic IntegerValue add(RangeIntegerValue other)
IntegerValueadd in class IntegerValuepublic IntegerValue subtract(RangeIntegerValue other)
IntegerValuesubtract in class IntegerValuepublic IntegerValue subtractFrom(RangeIntegerValue other)
IntegerValuesubtractFrom in class IntegerValuepublic IntegerValue multiply(RangeIntegerValue other)
IntegerValuemultiply in class IntegerValuepublic IntegerValue divide(RangeIntegerValue other) throws java.lang.ArithmeticException
IntegerValuedivide in class IntegerValuejava.lang.ArithmeticExceptionpublic IntegerValue divideOf(RangeIntegerValue other) throws java.lang.ArithmeticException
IntegerValuedivideOf in class IntegerValuejava.lang.ArithmeticExceptionpublic IntegerValue remainder(RangeIntegerValue other) throws java.lang.ArithmeticException
IntegerValueremainder in class IntegerValuejava.lang.ArithmeticExceptionpublic IntegerValue remainderOf(RangeIntegerValue other) throws java.lang.ArithmeticException
IntegerValueremainderOf in class IntegerValuejava.lang.ArithmeticExceptionpublic IntegerValue shiftLeft(RangeIntegerValue other)
IntegerValueshiftLeft in class IntegerValuepublic IntegerValue shiftRight(RangeIntegerValue other)
IntegerValueshiftRight in class IntegerValuepublic IntegerValue unsignedShiftRight(RangeIntegerValue other)
IntegerValueunsignedShiftRight in class IntegerValuepublic IntegerValue shiftLeftOf(RangeIntegerValue other)
IntegerValueshiftLeftOf in class IntegerValuepublic IntegerValue shiftRightOf(RangeIntegerValue other)
IntegerValueshiftRightOf in class IntegerValuepublic IntegerValue unsignedShiftRightOf(RangeIntegerValue other)
IntegerValueunsignedShiftRightOf in class IntegerValuepublic IntegerValue and(RangeIntegerValue other)
IntegerValueand in class IntegerValuepublic IntegerValue or(RangeIntegerValue other)
IntegerValueor in class IntegerValuepublic IntegerValue xor(RangeIntegerValue other)
IntegerValuexor in class IntegerValuepublic int equal(RangeIntegerValue other)
IntegerValueNEVER, MAYBE, or ALWAYS.equal in class IntegerValuepublic int lessThan(RangeIntegerValue other)
IntegerValueNEVER, MAYBE, or
ALWAYS.lessThan in class IntegerValuepublic int lessThanOrEqual(RangeIntegerValue other)
IntegerValueNEVER, MAYBE, or
ALWAYS.lessThanOrEqual in class IntegerValuepublic boolean isSpecific()
ValueisSpecific in class Valuepublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object