Package deltix.qsrv.hf.codec.cg
Class QIntegerType
- java.lang.Object
-
- deltix.qsrv.hf.codec.cg.QType<T>
-
- deltix.qsrv.hf.codec.cg.QPrimitiveType<T>
-
- deltix.qsrv.hf.codec.cg.QNumericType<IntegerDataType>
-
- deltix.qsrv.hf.codec.cg.QIntegerType
-
public final class QIntegerType extends QNumericType<IntegerDataType>
-
-
Field Summary
Fields Modifier and Type Field Description longnullValue-
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 QIntegerType(IntegerDataType dt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()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.QPrimitiveType
checkNull
-
Methods inherited from class deltix.qsrv.hf.codec.cg.QType
encodeNull, forDataType, isNullable, throwNotImplemented
-
-
-
-
Constructor Detail
-
QIntegerType
public QIntegerType(IntegerDataType dt)
-
-
Method Detail
-
getJavaClass
public java.lang.Class<?> getJavaClass()
- Specified by:
getJavaClassin classQPrimitiveType<IntegerDataType>
-
getLiteral
public JExpr getLiteral(java.lang.Number value)
- Specified by:
getLiteralin classQNumericType<IntegerDataType>
-
getNullLiteral
public JExpr getNullLiteral()
- Specified by:
getNullLiteralin classQPrimitiveType<IntegerDataType>- Returns:
- constant, which is the canonical NULL-value for the given DataType
-
getEncodedFixedSize
public int getEncodedFixedSize()
- Specified by:
getEncodedFixedSizein classQType<IntegerDataType>
-
skip
public void skip(JExpr input, JCompoundStatement addTo)
- Overrides:
skipin classQType<IntegerDataType>
-
encodeNullImpl
protected void encodeNullImpl(JExpr output, JCompoundStatement addTo)
- Overrides:
encodeNullImplin classQPrimitiveType<IntegerDataType>
-
decodeExpr
protected JExpr decodeExpr(JExpr input)
- Overrides:
decodeExprin classQPrimitiveType<IntegerDataType>
-
encodeExpr
protected void encodeExpr(JExpr output, JExpr value, JCompoundStatement addTo)
- Overrides:
encodeExprin classQPrimitiveType<IntegerDataType>
-
getMin
protected java.lang.Number getMin()
- Specified by:
getMinin classQNumericType<IntegerDataType>
-
getMax
protected java.lang.Number getMax()
- Specified by:
getMaxin classQNumericType<IntegerDataType>
-
-