public class DoubleConstant extends RealConstant
Modifier and Type | Field and Description |
---|---|
double |
value |
clone, convertToBaf, equivHashCode, equivTo, getUseBoxes, toString
public static DoubleConstant v(double value)
public boolean equals(java.lang.Object c)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public NumericConstant add(NumericConstant c)
add
in class NumericConstant
public NumericConstant subtract(NumericConstant c)
subtract
in class NumericConstant
public NumericConstant multiply(NumericConstant c)
multiply
in class NumericConstant
public NumericConstant divide(NumericConstant c)
divide
in class NumericConstant
public NumericConstant remainder(NumericConstant c)
remainder
in class NumericConstant
public NumericConstant equalEqual(NumericConstant c)
equalEqual
in class NumericConstant
public NumericConstant notEqual(NumericConstant c)
notEqual
in class NumericConstant
public NumericConstant lessThan(NumericConstant c)
lessThan
in class NumericConstant
public NumericConstant lessThanOrEqual(NumericConstant c)
lessThanOrEqual
in class NumericConstant
public NumericConstant greaterThan(NumericConstant c)
greaterThan
in class NumericConstant
public NumericConstant greaterThanOrEqual(NumericConstant c)
greaterThanOrEqual
in class NumericConstant
public IntConstant cmpg(RealConstant constant)
RealConstant
NaN
comparisons 1
is returned.cmpg
in class RealConstant
constant
- the value to compare with0
if values are equal, 1
if passed value less, or -1
if passed value greater.
When any of the values is NaN
method returns 1
.public IntConstant cmpl(RealConstant constant)
RealConstant
NaN
comparisons -1
is returned.cmpl
in class RealConstant
constant
- the value to compare with0
if values are equal, 1
if passed value less, or -1
if passed value greater.
When any of the values is NaN
method returns -1
.public NumericConstant negate()
negate
in class NumericConstant
public java.lang.String toString()
toString
in class java.lang.Object
public Type getType()
Value
public void apply(Switch sw)
Switchable