public class FloatConstant extends RealConstant
| Modifier and Type | Field and Description |
|---|---|
float |
value |
clone, convertToBaf, equivHashCode, equivTo, getUseBoxes, toStringpublic static FloatConstant v(float value)
public boolean equals(java.lang.Object c)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic NumericConstant add(NumericConstant c)
add in class NumericConstantpublic NumericConstant subtract(NumericConstant c)
subtract in class NumericConstantpublic NumericConstant multiply(NumericConstant c)
multiply in class NumericConstantpublic NumericConstant divide(NumericConstant c)
divide in class NumericConstantpublic NumericConstant remainder(NumericConstant c)
remainder in class NumericConstantpublic NumericConstant equalEqual(NumericConstant c)
equalEqual in class NumericConstantpublic NumericConstant notEqual(NumericConstant c)
notEqual in class NumericConstantpublic NumericConstant lessThan(NumericConstant c)
lessThan in class NumericConstantpublic NumericConstant lessThanOrEqual(NumericConstant c)
lessThanOrEqual in class NumericConstantpublic NumericConstant greaterThan(NumericConstant c)
greaterThan in class NumericConstantpublic NumericConstant greaterThanOrEqual(NumericConstant c)
greaterThanOrEqual in class NumericConstantpublic IntConstant cmpg(RealConstant constant)
RealConstantNaN comparisons 1 is returned.cmpg in class RealConstantconstant - 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)
RealConstantNaN comparisons -1 is returned.cmpl in class RealConstantconstant - 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 NumericConstantpublic java.lang.String toString()
toString in class java.lang.Objectpublic Type getType()
Valuepublic void apply(Switch sw)
Switchable