Package deltix.qsrv.hf.codec.cg
Class QFloatType
- java.lang.Object
-
- deltix.qsrv.hf.codec.cg.QType<T>
-
- deltix.qsrv.hf.codec.cg.QPrimitiveType<T>
-
- deltix.qsrv.hf.codec.cg.QNumericType<FloatDataType>
-
- deltix.qsrv.hf.codec.cg.QFloatType
-
public final class QFloatType extends QNumericType<FloatDataType>
-
-
Field Summary
-
Fields inherited from class deltix.qsrv.hf.codec.cg.QNumericType
kind, max, min
-
Fields inherited from class deltix.qsrv.hf.codec.cg.QType
dt, SIZE_VARIABLE
-
-
Constructor Summary
Constructors Constructor Description QFloatType(FloatDataType dt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JExpr
checkNull(JExpr e, boolean eq)
protected JExpr
decodeExpr(JExpr input)
protected void
encodeExpr(JExpr output, JExpr value, JCompoundStatement addTo)
protected void
encodeNullImpl(JExpr output, JCompoundStatement addTo)
int
getEncodedFixedSize()
java.lang.Class<?>
getJavaClass()
JExpr
getLiteral(java.lang.Number value)
protected java.lang.Number
getMax()
protected java.lang.Number
getMin()
JExpr
getNullLiteral()
boolean
isFloat()
void
skip(JExpr input, JCompoundStatement addTo)
-
Methods inherited from class deltix.qsrv.hf.codec.cg.QNumericType
hasConstraint, makeConstantExpr
-
Methods inherited from class deltix.qsrv.hf.codec.cg.QType
encodeNull, forDataType, isNullable, throwNotImplemented
-
-
-
-
Constructor Detail
-
QFloatType
public QFloatType(FloatDataType dt)
-
-
Method Detail
-
isFloat
public boolean isFloat()
-
getJavaClass
public java.lang.Class<?> getJavaClass()
- Specified by:
getJavaClass
in classQPrimitiveType<FloatDataType>
-
getLiteral
public JExpr getLiteral(java.lang.Number value)
- Specified by:
getLiteral
in classQNumericType<FloatDataType>
-
getNullLiteral
public JExpr getNullLiteral()
- Specified by:
getNullLiteral
in classQPrimitiveType<FloatDataType>
- Returns:
- constant, which is the canonical NULL-value for the given DataType
-
checkNull
public JExpr checkNull(JExpr e, boolean eq)
- Overrides:
checkNull
in classQPrimitiveType<FloatDataType>
-
getEncodedFixedSize
public int getEncodedFixedSize()
- Specified by:
getEncodedFixedSize
in classQType<FloatDataType>
-
skip
public void skip(JExpr input, JCompoundStatement addTo)
- Overrides:
skip
in classQType<FloatDataType>
-
encodeNullImpl
protected void encodeNullImpl(JExpr output, JCompoundStatement addTo)
- Overrides:
encodeNullImpl
in classQPrimitiveType<FloatDataType>
-
decodeExpr
protected JExpr decodeExpr(JExpr input)
- Overrides:
decodeExpr
in classQPrimitiveType<FloatDataType>
-
encodeExpr
protected void encodeExpr(JExpr output, JExpr value, JCompoundStatement addTo)
- Overrides:
encodeExpr
in classQPrimitiveType<FloatDataType>
-
getMin
protected java.lang.Number getMin()
- Specified by:
getMin
in classQNumericType<FloatDataType>
-
getMax
protected java.lang.Number getMax()
- Specified by:
getMax
in classQNumericType<FloatDataType>
-
-