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 long
nullValue
-
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 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()
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.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:
getJavaClass
in classQPrimitiveType<IntegerDataType>
-
getLiteral
public JExpr getLiteral(java.lang.Number value)
- Specified by:
getLiteral
in classQNumericType<IntegerDataType>
-
getNullLiteral
public JExpr getNullLiteral()
- Specified by:
getNullLiteral
in classQPrimitiveType<IntegerDataType>
- Returns:
- constant, which is the canonical NULL-value for the given DataType
-
getEncodedFixedSize
public int getEncodedFixedSize()
- Specified by:
getEncodedFixedSize
in classQType<IntegerDataType>
-
skip
public void skip(JExpr input, JCompoundStatement addTo)
- Overrides:
skip
in classQType<IntegerDataType>
-
encodeNullImpl
protected void encodeNullImpl(JExpr output, JCompoundStatement addTo)
- Overrides:
encodeNullImpl
in classQPrimitiveType<IntegerDataType>
-
decodeExpr
protected JExpr decodeExpr(JExpr input)
- Overrides:
decodeExpr
in classQPrimitiveType<IntegerDataType>
-
encodeExpr
protected void encodeExpr(JExpr output, JExpr value, JCompoundStatement addTo)
- Overrides:
encodeExpr
in classQPrimitiveType<IntegerDataType>
-
getMin
protected java.lang.Number getMin()
- Specified by:
getMin
in classQNumericType<IntegerDataType>
-
getMax
protected java.lang.Number getMax()
- Specified by:
getMax
in classQNumericType<IntegerDataType>
-
-