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, xor
compare, compareReverse, compareReverse, compareReverse, computationalType, generalize, internalType, longValue
category2Value, isCategory2
category1Value, copyIfMutable, doubleValue, floatValue, instructionOffsetValue, integerValue, referenceValue
public ParticularLongValue(long value)
public long value()
LongValue
public LongValue negate()
LongValue
negate
in class SpecificLongValue
public IntegerValue convertToInteger()
LongValue
convertToInteger
in class SpecificLongValue
public FloatValue convertToFloat()
LongValue
convertToFloat
in class SpecificLongValue
public DoubleValue convertToDouble()
LongValue
convertToDouble
in class SpecificLongValue
public LongValue generalize(LongValue other)
LongValue
generalize
in class SpecificLongValue
public LongValue add(LongValue other)
LongValue
add
in class SpecificLongValue
public LongValue subtract(LongValue other)
LongValue
subtract
in class SpecificLongValue
public LongValue subtractFrom(LongValue other)
LongValue
subtractFrom
in class SpecificLongValue
public LongValue multiply(LongValue other)
LongValue
multiply
in class SpecificLongValue
public LongValue divide(LongValue other) throws java.lang.ArithmeticException
LongValue
divide
in class SpecificLongValue
java.lang.ArithmeticException
public LongValue divideOf(LongValue other) throws java.lang.ArithmeticException
LongValue
divideOf
in class SpecificLongValue
java.lang.ArithmeticException
public LongValue remainder(LongValue other) throws java.lang.ArithmeticException
LongValue
remainder
in class SpecificLongValue
java.lang.ArithmeticException
public LongValue remainderOf(LongValue other) throws java.lang.ArithmeticException
LongValue
remainderOf
in class SpecificLongValue
java.lang.ArithmeticException
public LongValue shiftLeft(IntegerValue other)
LongValue
shiftLeft
in class SpecificLongValue
public LongValue shiftRight(IntegerValue other)
LongValue
shiftRight
in class SpecificLongValue
public LongValue unsignedShiftRight(IntegerValue other)
LongValue
unsignedShiftRight
in class SpecificLongValue
public LongValue and(LongValue other)
LongValue
and
in class SpecificLongValue
public LongValue or(LongValue other)
LongValue
or
in class SpecificLongValue
public LongValue xor(LongValue other)
LongValue
xor
in class SpecificLongValue
public IntegerValue compare(LongValue other)
LongValue
compare
in class SpecificLongValue
public LongValue generalize(ParticularLongValue other)
LongValue
generalize
in class LongValue
public LongValue add(ParticularLongValue other)
LongValue
public LongValue subtract(ParticularLongValue other)
LongValue
public LongValue subtractFrom(ParticularLongValue other)
LongValue
subtractFrom
in class LongValue
public LongValue multiply(ParticularLongValue other)
LongValue
public LongValue divide(ParticularLongValue other) throws java.lang.ArithmeticException
LongValue
public LongValue divideOf(ParticularLongValue other) throws java.lang.ArithmeticException
LongValue
public LongValue remainder(ParticularLongValue other) throws java.lang.ArithmeticException
LongValue
public LongValue remainderOf(ParticularLongValue other) throws java.lang.ArithmeticException
LongValue
remainderOf
in class LongValue
java.lang.ArithmeticException
public LongValue shiftLeft(ParticularIntegerValue other)
LongValue
public LongValue shiftRight(ParticularIntegerValue other)
LongValue
shiftRight
in class LongValue
public LongValue unsignedShiftRight(ParticularIntegerValue other)
LongValue
unsignedShiftRight
in class LongValue
public LongValue and(ParticularLongValue other)
LongValue
public LongValue or(ParticularLongValue other)
LongValue
public LongValue xor(ParticularLongValue other)
LongValue
public boolean isParticular()
Value
isParticular
in class Value
public boolean equals(java.lang.Object object)
equals
in class SpecificLongValue
public int hashCode()
hashCode
in class SpecificLongValue
public java.lang.String toString()
toString
in class java.lang.Object