Package deltix.qsrv.hf.codec.cg
Class QPrimitiveType<T extends DataType>
- java.lang.Object
-
- deltix.qsrv.hf.codec.cg.QType<T>
-
- deltix.qsrv.hf.codec.cg.QPrimitiveType<T>
-
- Direct Known Subclasses:
QAlphanumericType,QArrayType,QBinaryType,QBooleanType,QCharType,QClassType,QDateTimeType,QEnumType,QNumericType,QStringType,QTimeOfDayType
public abstract class QPrimitiveType<T extends DataType> extends QType<T>
-
-
Field Summary
-
Fields inherited from class deltix.qsrv.hf.codec.cg.QType
dt, SIZE_VARIABLE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedQPrimitiveType(T dt)
-
Method Summary
All Methods Instance Methods Abstract 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)abstract java.lang.Class<?>getJavaClass()protected abstract JExprgetNullLiteral()-
Methods inherited from class deltix.qsrv.hf.codec.cg.QType
encodeNull, forDataType, getEncodedFixedSize, hasConstraint, isNullable, makeConstantExpr, skip, throwNotImplemented
-
-
-
-
Constructor Detail
-
QPrimitiveType
protected QPrimitiveType(T dt)
-
-
Method Detail
-
encodeExpr
protected void encodeExpr(JExpr output, JExpr value, JCompoundStatement addTo)
-
getJavaClass
public abstract java.lang.Class<?> getJavaClass()
-
getNullLiteral
protected abstract JExpr getNullLiteral()
- Returns:
- constant, which is the canonical NULL-value for the given DataType
-
encodeNullImpl
protected void encodeNullImpl(JExpr output, JCompoundStatement addTo)
- Overrides:
encodeNullImplin classQType<T extends DataType>
-
-