public abstract class LongValue extends Category2Value
ALWAYS, MAYBE, NEVER, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INSTRUCTION_OFFSET, TYPE_INTEGER, TYPE_LONG, TYPE_REFERENCE, TYPE_TOP, TYPE_UNKNOWN
Constructor and Description |
---|
LongValue() |
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 |
add(SpecificLongValue other)
Returns the sum of this LongValue and the given SpecificLongValue.
|
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.
|
LongValue |
and(SpecificLongValue other)
Returns the logical and of this LongValue and the given SpecificLongValue.
|
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.
|
IntegerValue |
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.
|
IntegerValue |
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.
|
IntegerValue |
compareReverse(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.
|
IntegerValue |
compareReverse(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.
|
IntegerValue |
compareReverse(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.
|
int |
computationalType()
Returns the computational type of this Value.
|
abstract DoubleValue |
convertToDouble()
Converts this LongValue to a DoubleValue.
|
abstract FloatValue |
convertToFloat()
Converts this LongValue to a FloatValue.
|
abstract 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 |
divide(SpecificLongValue other)
Returns the quotient of this LongValue and the given SpecificLongValue.
|
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.
|
LongValue |
divideOf(SpecificLongValue other)
Returns the quotient of the given SpecificLongValue and this LongValue.
|
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.
|
LongValue |
generalize(SpecificLongValue other)
Returns the generalization of this LongValue and the given other SpecificLongValue.
|
Value |
generalize(Value other)
Returns the generalization of this Value and the given other Value.
|
java.lang.String |
internalType()
Returns the internal type of this Value.
|
LongValue |
longValue()
Returns this Value as a LongValue.
|
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 |
multiply(SpecificLongValue other)
Returns the product of this LongValue and the given SpecificLongValue.
|
abstract 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 |
or(SpecificLongValue other)
Returns the logical or of this LongValue and the given SpecificLongValue.
|
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 |
remainder(SpecificLongValue other)
Returns the remainder of this LongValue divided by the given SpecificLongValue.
|
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 |
remainderOf(SpecificLongValue other)
Returns the remainder of the given SpecificLongValue 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 |
shiftLeft(SpecificLongValue other)
Returns this LongValue, shifted left by the given SpecificLongValue.
|
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 |
shiftRight(SpecificLongValue other)
Returns this LongValue, shifted right by the given SpecificLongValue.
|
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 |
subtract(SpecificLongValue other)
Returns the difference of this LongValue and the given SpecificLongValue.
|
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.
|
LongValue |
subtractFrom(SpecificLongValue other)
Returns the difference of the given SpecificLongValue and this LongValue.
|
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.
|
LongValue |
unsignedShiftRight(SpecificLongValue other)
Returns this unsigned LongValue, shifted right by the given SpecificLongValue.
|
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.
|
LongValue |
xor(SpecificLongValue other)
Returns the logical xor of this LongValue and the given SpecificLongValue.
|
category2Value, isCategory2
category1Value, copyIfMutable, doubleValue, floatValue, instructionOffsetValue, integerValue, isParticular, isSpecific, referenceValue
public long value()
public abstract LongValue negate()
public abstract IntegerValue convertToInteger()
public abstract FloatValue convertToFloat()
public abstract DoubleValue convertToDouble()
public LongValue generalize(LongValue other)
public LongValue add(LongValue other)
public LongValue subtract(LongValue other)
public LongValue subtractFrom(LongValue other)
public LongValue multiply(LongValue other) throws java.lang.ArithmeticException
java.lang.ArithmeticException
public LongValue divide(LongValue other) throws java.lang.ArithmeticException
java.lang.ArithmeticException
public LongValue divideOf(LongValue other) throws java.lang.ArithmeticException
java.lang.ArithmeticException
public LongValue remainder(LongValue other) throws java.lang.ArithmeticException
java.lang.ArithmeticException
public LongValue remainderOf(LongValue other) throws java.lang.ArithmeticException
java.lang.ArithmeticException
public LongValue shiftLeft(IntegerValue other)
public LongValue shiftRight(IntegerValue other)
public LongValue unsignedShiftRight(IntegerValue other)
public LongValue and(LongValue other)
public LongValue or(LongValue other)
public LongValue xor(LongValue other)
public IntegerValue compare(LongValue other)
public final IntegerValue compareReverse(LongValue other)
public LongValue generalize(SpecificLongValue other)
public LongValue add(SpecificLongValue other)
public LongValue subtract(SpecificLongValue other)
public LongValue subtractFrom(SpecificLongValue other)
public LongValue multiply(SpecificLongValue other)
public LongValue divide(SpecificLongValue other)
public LongValue divideOf(SpecificLongValue other)
public LongValue remainder(SpecificLongValue other)
public LongValue remainderOf(SpecificLongValue other)
public LongValue shiftLeft(SpecificLongValue other)
public LongValue shiftRight(SpecificLongValue other)
public LongValue unsignedShiftRight(SpecificLongValue other)
public LongValue and(SpecificLongValue other)
public LongValue or(SpecificLongValue other)
public LongValue xor(SpecificLongValue other)
public IntegerValue compare(SpecificLongValue other)
public final IntegerValue compareReverse(SpecificLongValue other)
public LongValue generalize(ParticularLongValue other)
public LongValue add(ParticularLongValue other)
public LongValue subtract(ParticularLongValue other)
public LongValue subtractFrom(ParticularLongValue other)
public LongValue multiply(ParticularLongValue other)
public LongValue divide(ParticularLongValue other)
public LongValue divideOf(ParticularLongValue other)
public LongValue remainder(ParticularLongValue other)
public LongValue remainderOf(ParticularLongValue other)
public LongValue shiftLeft(ParticularIntegerValue other)
public LongValue shiftRight(ParticularIntegerValue other)
public LongValue unsignedShiftRight(ParticularIntegerValue other)
public LongValue and(ParticularLongValue other)
public LongValue or(ParticularLongValue other)
public LongValue xor(ParticularLongValue other)
public IntegerValue compare(ParticularLongValue other)
public final IntegerValue compareReverse(ParticularLongValue other)
public final LongValue longValue()
Value
public final Value generalize(Value other)
Value
generalize
in class Value
public final int computationalType()
Value
computationalType
in class Value
TYPE_INTEGER
, TYPE_LONG
, TYPE_FLOAT
,
TYPE_DOUBLE
, TYPE_REFERENCE
, or TYPE_INSTRUCTION_OFFSET
.public final java.lang.String internalType()
Value
internalType
in class Value
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).