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 protected
QPrimitiveType(T dt)
-
Method Summary
All Methods Instance Methods Abstract 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)
abstract java.lang.Class<?>
getJavaClass()
protected abstract JExpr
getNullLiteral()
-
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:
encodeNullImpl
in classQType<T extends DataType>
-
-