public abstract class FloatValue extends Category1Value
ALWAYS, MAYBE, NEVER, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INSTRUCTION_OFFSET, TYPE_INTEGER, TYPE_LONG, TYPE_REFERENCE, TYPE_TOP, TYPE_UNKNOWN
Constructor and Description |
---|
FloatValue() |
Modifier and Type | Method and Description |
---|---|
abstract FloatValue |
add(FloatValue other)
Returns the sum of this FloatValue and the given FloatValue.
|
FloatValue |
add(ParticularFloatValue other)
Returns the sum of this FloatValue and the given ParticularFloatValue.
|
FloatValue |
add(SpecificFloatValue other)
Returns the sum of this FloatValue and the given SpecificFloatValue.
|
abstract IntegerValue |
compare(FloatValue other)
Returns an IntegerValue with value -1, 0, or 1, if this FloatValue is less than, equal to, or
greater than the given FloatValue, respectively.
|
IntegerValue |
compare(ParticularFloatValue other)
Returns an IntegerValue with value -1, 0, or 1, if this FloatValue is less than, equal to, or
greater than the given ParticularFloatValue, respectively.
|
IntegerValue |
compare(SpecificFloatValue other)
Returns an IntegerValue with value -1, 0, or 1, if this FloatValue is less than, equal to, or
greater than the given SpecificFloatValue, respectively.
|
IntegerValue |
compareReverse(FloatValue other)
Returns an IntegerValue with value 1, 0, or -1, if this FloatValue is less than, equal to, or
greater than the given FloatValue, respectively.
|
IntegerValue |
compareReverse(ParticularFloatValue other)
Returns an IntegerValue with value 1, 0, or -1, if this FloatValue is less than, equal to, or
greater than the given ParticularFloatValue, respectively.
|
IntegerValue |
compareReverse(SpecificFloatValue other)
Returns an IntegerValue with value 1, 0, or -1, if this FloatValue is less than, equal to, or
greater than the given SpecificFloatValue, respectively.
|
int |
computationalType()
Returns the computational type of this Value.
|
abstract DoubleValue |
convertToDouble()
Converts this FloatValue to a DoubleValue.
|
abstract IntegerValue |
convertToInteger()
Converts this FloatValue to an IntegerValue.
|
abstract LongValue |
convertToLong()
Converts this FloatValue to a LongValue.
|
abstract FloatValue |
divide(FloatValue other)
Returns the quotient of this FloatValue and the given FloatValue.
|
FloatValue |
divide(ParticularFloatValue other)
Returns the quotient of this FloatValue and the given ParticularFloatValue.
|
FloatValue |
divide(SpecificFloatValue other)
Returns the quotient of this FloatValue and the given SpecificFloatValue.
|
abstract FloatValue |
divideOf(FloatValue other)
Returns the quotient of the given FloatValue and this FloatValue.
|
FloatValue |
divideOf(ParticularFloatValue other)
Returns the quotient of the given ParticularFloatValue and this FloatValue.
|
FloatValue |
divideOf(SpecificFloatValue other)
Returns the quotient of the given SpecificFloatValue and this FloatValue.
|
FloatValue |
floatValue()
Returns this Value as a FloatValue.
|
abstract FloatValue |
generalize(FloatValue other)
Returns the generalization of this FloatValue and the given other FloatValue.
|
FloatValue |
generalize(ParticularFloatValue other)
Returns the generalization of this FloatValue and the given other ParticularFloatValue.
|
FloatValue |
generalize(SpecificFloatValue other)
Returns the generalization of this FloatValue and the given other SpecificFloatValue.
|
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.
|
abstract FloatValue |
multiply(FloatValue other)
Returns the product of this FloatValue and the given FloatValue.
|
FloatValue |
multiply(ParticularFloatValue other)
Returns the product of this FloatValue and the given ParticularFloatValue.
|
FloatValue |
multiply(SpecificFloatValue other)
Returns the product of this FloatValue and the given SpecificFloatValue.
|
abstract FloatValue |
negate()
Returns the negated value of this FloatValue.
|
abstract FloatValue |
remainder(FloatValue other)
Returns the remainder of this FloatValue divided by the given FloatValue.
|
FloatValue |
remainder(ParticularFloatValue other)
Returns the remainder of this FloatValue divided by the given ParticularFloatValue.
|
FloatValue |
remainder(SpecificFloatValue other)
Returns the remainder of this FloatValue divided by the given SpecificFloatValue.
|
abstract FloatValue |
remainderOf(FloatValue other)
Returns the remainder of the given FloatValue divided by this FloatValue.
|
FloatValue |
remainderOf(ParticularFloatValue other)
Returns the remainder of the given ParticularFloatValue and this FloatValue.
|
FloatValue |
remainderOf(SpecificFloatValue other)
Returns the remainder of the given SpecificFloatValue and this FloatValue.
|
abstract FloatValue |
subtract(FloatValue other)
Returns the difference of this FloatValue and the given FloatValue.
|
FloatValue |
subtract(ParticularFloatValue other)
Returns the difference of this FloatValue and the given ParticularFloatValue.
|
FloatValue |
subtract(SpecificFloatValue other)
Returns the difference of this FloatValue and the given SpecificFloatValue.
|
abstract FloatValue |
subtractFrom(FloatValue other)
Returns the difference of the given FloatValue and this FloatValue.
|
FloatValue |
subtractFrom(ParticularFloatValue other)
Returns the difference of the given ParticularFloatValue and this FloatValue.
|
FloatValue |
subtractFrom(SpecificFloatValue other)
Returns the difference of the given SpecificFloatValue and this FloatValue.
|
float |
value()
Returns the specific float value, if applicable.
|
category1Value, isCategory2
category2Value, copyIfMutable, doubleValue, instructionOffsetValue, integerValue, isParticular, isSpecific, longValue, referenceValue
public float value()
public abstract FloatValue negate()
public abstract IntegerValue convertToInteger()
public abstract LongValue convertToLong()
public abstract DoubleValue convertToDouble()
public abstract FloatValue generalize(FloatValue other)
public abstract FloatValue add(FloatValue other)
public abstract FloatValue subtract(FloatValue other)
public abstract FloatValue subtractFrom(FloatValue other)
public abstract FloatValue multiply(FloatValue other)
public abstract FloatValue divide(FloatValue other)
public abstract FloatValue divideOf(FloatValue other)
public abstract FloatValue remainder(FloatValue other)
public abstract FloatValue remainderOf(FloatValue other)
public abstract IntegerValue compare(FloatValue other)
public final IntegerValue compareReverse(FloatValue other)
public FloatValue generalize(SpecificFloatValue other)
public FloatValue add(SpecificFloatValue other)
public FloatValue subtract(SpecificFloatValue other)
public FloatValue subtractFrom(SpecificFloatValue other)
public FloatValue multiply(SpecificFloatValue other)
public FloatValue divide(SpecificFloatValue other)
public FloatValue divideOf(SpecificFloatValue other)
public FloatValue remainder(SpecificFloatValue other)
public FloatValue remainderOf(SpecificFloatValue other)
public IntegerValue compare(SpecificFloatValue other)
public final IntegerValue compareReverse(SpecificFloatValue other)
public FloatValue generalize(ParticularFloatValue other)
public FloatValue add(ParticularFloatValue other)
public FloatValue subtract(ParticularFloatValue other)
public FloatValue subtractFrom(ParticularFloatValue other)
public FloatValue multiply(ParticularFloatValue other)
public FloatValue divide(ParticularFloatValue other)
public FloatValue divideOf(ParticularFloatValue other)
public FloatValue remainder(ParticularFloatValue other)
public FloatValue remainderOf(ParticularFloatValue other)
public IntegerValue compare(ParticularFloatValue other)
public final IntegerValue compareReverse(ParticularFloatValue other)
public final FloatValue floatValue()
Value
floatValue
in class 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).