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 JExprcheckNull(JExpr e, boolean eq)protected JExprdecodeExpr(JExpr input)protected voidencodeExpr(JExpr output, JExpr value, JCompoundStatement addTo)protected voidencodeNullImpl(JExpr output, JCompoundStatement addTo)intgetEncodedFixedSize()java.lang.Class<?>getJavaClass()JExprgetLiteral(java.lang.Number value)protected java.lang.NumbergetMax()protected java.lang.NumbergetMin()JExprgetNullLiteral()booleanisFloat()voidskip(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:
getJavaClassin classQPrimitiveType<FloatDataType>
-
getLiteral
public JExpr getLiteral(java.lang.Number value)
- Specified by:
getLiteralin classQNumericType<FloatDataType>
-
getNullLiteral
public JExpr getNullLiteral()
- Specified by:
getNullLiteralin classQPrimitiveType<FloatDataType>- Returns:
- constant, which is the canonical NULL-value for the given DataType
-
checkNull
public JExpr checkNull(JExpr e, boolean eq)
- Overrides:
checkNullin classQPrimitiveType<FloatDataType>
-
getEncodedFixedSize
public int getEncodedFixedSize()
- Specified by:
getEncodedFixedSizein classQType<FloatDataType>
-
skip
public void skip(JExpr input, JCompoundStatement addTo)
- Overrides:
skipin classQType<FloatDataType>
-
encodeNullImpl
protected void encodeNullImpl(JExpr output, JCompoundStatement addTo)
- Overrides:
encodeNullImplin classQPrimitiveType<FloatDataType>
-
decodeExpr
protected JExpr decodeExpr(JExpr input)
- Overrides:
decodeExprin classQPrimitiveType<FloatDataType>
-
encodeExpr
protected void encodeExpr(JExpr output, JExpr value, JCompoundStatement addTo)
- Overrides:
encodeExprin classQPrimitiveType<FloatDataType>
-
getMin
protected java.lang.Number getMin()
- Specified by:
getMinin classQNumericType<FloatDataType>
-
getMax
protected java.lang.Number getMax()
- Specified by:
getMaxin classQNumericType<FloatDataType>
-
-