public final class ParticularLongValue extends SpecificLongValue
LongValue represents a particular long value.ALWAYS, MAYBE, NEVER, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INSTRUCTION_OFFSET, TYPE_INTEGER, TYPE_LONG, TYPE_REFERENCE, TYPE_TOP, TYPE_UNKNOWN| Constructor and Description |
|---|
ParticularLongValue(long value)
Creates a new particular long value.
|
| Modifier and Type | Method and Description |
|---|---|
LongValue |
add(LongValue other)
Returns the sum of this LongValue and the given LongValue.
|
LongValue |
add(ParticularLongValue other)
Returns the sum of this LongValue and the given ParticularLongValue.
|
LongValue |
and(LongValue other)
Returns the logical and of this LongValue and the given
LongValue.
|
LongValue |
and(ParticularLongValue other)
Returns the logical and of this LongValue and the given
ParticularLongValue.
|
IntegerValue |
compare(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.
|
DoubleValue |
convertToDouble()
Converts this LongValue to a DoubleValue.
|
FloatValue |
convertToFloat()
Converts this LongValue to a FloatValue.
|
IntegerValue |
convertToInteger()
Converts this LongValue to an IntegerValue.
|
LongValue |
divide(LongValue other)
Returns the quotient of this LongValue and the given LongValue.
|
LongValue |
divide(ParticularLongValue other)
Returns the quotient of this LongValue and the given
ParticularLongValue.
|
LongValue |
divideOf(LongValue other)
Returns the quotient of the given LongValue and this LongValue.
|
LongValue |
divideOf(ParticularLongValue other)
Returns the quotient of the given ParticularLongValue and this
LongValue.
|
boolean |
equals(java.lang.Object object) |
LongValue |
generalize(LongValue other)
Returns the generalization of this LongValue and the given other
LongValue.
|
LongValue |
generalize(ParticularLongValue other)
Returns the generalization of this LongValue and the given other
ParticularLongValue.
|
int |
hashCode() |
boolean |
isParticular()
Returns whether this Value represents a single particular (known)
value.
|
LongValue |
multiply(LongValue other)
Returns the product of this LongValue and the given LongValue.
|
LongValue |
multiply(ParticularLongValue other)
Returns the product of this LongValue and the given ParticularLongValue.
|
LongValue |
negate()
Returns the negated value of this LongValue.
|
LongValue |
or(LongValue other)
Returns the logical or of this LongValue and the given
LongValue.
|
LongValue |
or(ParticularLongValue other)
Returns the logical or of this LongValue and the given
ParticularLongValue.
|
LongValue |
remainder(LongValue other)
Returns the remainder of this LongValue divided by the given
LongValue.
|
LongValue |
remainder(ParticularLongValue other)
Returns the remainder of this LongValue divided by the given
ParticularLongValue.
|
LongValue |
remainderOf(LongValue other)
Returns the remainder of the given LongValue divided by this
LongValue.
|
LongValue |
remainderOf(ParticularLongValue other)
Returns the remainder of the given ParticularLongValue divided by this
LongValue.
|
LongValue |
shiftLeft(IntegerValue other)
Returns this LongValue, shifted left by the given IntegerValue.
|
LongValue |
shiftLeft(ParticularIntegerValue other)
Returns this LongValue, shifted left by the given ParticularIntegerValue.
|
LongValue |
shiftRight(IntegerValue other)
Returns this LongValue, shifted right by the given IntegerValue.
|
LongValue |
shiftRight(ParticularIntegerValue other)
Returns this LongValue, shifted right by the given ParticularIntegerValue.
|
LongValue |
subtract(LongValue other)
Returns the difference of this LongValue and the given LongValue.
|
LongValue |
subtract(ParticularLongValue other)
Returns the difference of this LongValue and the given ParticularLongValue.
|
LongValue |
subtractFrom(LongValue other)
Returns the difference of the given LongValue and this LongValue.
|
LongValue |
subtractFrom(ParticularLongValue other)
Returns the difference of the given ParticularLongValue and this LongValue.
|
java.lang.String |
toString() |
LongValue |
unsignedShiftRight(IntegerValue other)
Returns this unsigned LongValue, shifted left by the given
IntegerValue.
|
LongValue |
unsignedShiftRight(ParticularIntegerValue other)
Returns this unsigned LongValue, shifted right by the given
ParticularIntegerValue.
|
long |
value()
Returns the specific long value, if applicable.
|
LongValue |
xor(LongValue other)
Returns the logical xor of this LongValue and the given
LongValue.
|
LongValue |
xor(ParticularLongValue other)
Returns the logical xor of this LongValue and the given
ParticularLongValue.
|
add, and, compare, divide, divideOf, generalize, isSpecific, multiply, or, remainder, remainderOf, shiftLeft, shiftRight, subtract, subtractFrom, unsignedShiftRight, xorcompare, compareReverse, compareReverse, compareReverse, computationalType, generalize, internalType, longValuecategory2Value, isCategory2category1Value, copyIfMutable, doubleValue, floatValue, instructionOffsetValue, integerValue, referenceValuepublic ParticularLongValue(long value)
public long value()
LongValuepublic LongValue negate()
LongValuenegate in class SpecificLongValuepublic IntegerValue convertToInteger()
LongValueconvertToInteger in class SpecificLongValuepublic FloatValue convertToFloat()
LongValueconvertToFloat in class SpecificLongValuepublic DoubleValue convertToDouble()
LongValueconvertToDouble in class SpecificLongValuepublic LongValue generalize(LongValue other)
LongValuegeneralize in class SpecificLongValuepublic LongValue add(LongValue other)
LongValueadd in class SpecificLongValuepublic LongValue subtract(LongValue other)
LongValuesubtract in class SpecificLongValuepublic LongValue subtractFrom(LongValue other)
LongValuesubtractFrom in class SpecificLongValuepublic LongValue multiply(LongValue other)
LongValuemultiply in class SpecificLongValuepublic LongValue divide(LongValue other) throws java.lang.ArithmeticException
LongValuedivide in class SpecificLongValuejava.lang.ArithmeticExceptionpublic LongValue divideOf(LongValue other) throws java.lang.ArithmeticException
LongValuedivideOf in class SpecificLongValuejava.lang.ArithmeticExceptionpublic LongValue remainder(LongValue other) throws java.lang.ArithmeticException
LongValueremainder in class SpecificLongValuejava.lang.ArithmeticExceptionpublic LongValue remainderOf(LongValue other) throws java.lang.ArithmeticException
LongValueremainderOf in class SpecificLongValuejava.lang.ArithmeticExceptionpublic LongValue shiftLeft(IntegerValue other)
LongValueshiftLeft in class SpecificLongValuepublic LongValue shiftRight(IntegerValue other)
LongValueshiftRight in class SpecificLongValuepublic LongValue unsignedShiftRight(IntegerValue other)
LongValueunsignedShiftRight in class SpecificLongValuepublic LongValue and(LongValue other)
LongValueand in class SpecificLongValuepublic LongValue or(LongValue other)
LongValueor in class SpecificLongValuepublic LongValue xor(LongValue other)
LongValuexor in class SpecificLongValuepublic IntegerValue compare(LongValue other)
LongValuecompare in class SpecificLongValuepublic LongValue generalize(ParticularLongValue other)
LongValuegeneralize in class LongValuepublic LongValue add(ParticularLongValue other)
LongValuepublic LongValue subtract(ParticularLongValue other)
LongValuepublic LongValue subtractFrom(ParticularLongValue other)
LongValuesubtractFrom in class LongValuepublic LongValue multiply(ParticularLongValue other)
LongValuepublic LongValue divide(ParticularLongValue other) throws java.lang.ArithmeticException
LongValuepublic LongValue divideOf(ParticularLongValue other) throws java.lang.ArithmeticException
LongValuepublic LongValue remainder(ParticularLongValue other) throws java.lang.ArithmeticException
LongValuepublic LongValue remainderOf(ParticularLongValue other) throws java.lang.ArithmeticException
LongValueremainderOf in class LongValuejava.lang.ArithmeticExceptionpublic LongValue shiftLeft(ParticularIntegerValue other)
LongValuepublic LongValue shiftRight(ParticularIntegerValue other)
LongValueshiftRight in class LongValuepublic LongValue unsignedShiftRight(ParticularIntegerValue other)
LongValueunsignedShiftRight in class LongValuepublic LongValue and(ParticularLongValue other)
LongValuepublic LongValue or(ParticularLongValue other)
LongValuepublic LongValue xor(ParticularLongValue other)
LongValuepublic boolean isParticular()
ValueisParticular in class Valuepublic boolean equals(java.lang.Object object)
equals in class SpecificLongValuepublic int hashCode()
hashCode in class SpecificLongValuepublic java.lang.String toString()
toString in class java.lang.Object