Package deltix.qsrv.hf.codec.cg
Class QBooleanType
- java.lang.Object
-
- deltix.qsrv.hf.codec.cg.QType<T>
-
- deltix.qsrv.hf.codec.cg.QPrimitiveType<BooleanDataType>
-
- deltix.qsrv.hf.codec.cg.QBooleanType
-
public class QBooleanType extends QPrimitiveType<BooleanDataType>
-
-
Field Summary
Fields Modifier and Type Field Description static JExprN_FALSEstatic JExprN_TRUEstatic QBooleanTypeNON_NULLABLEstatic JExprNULLstatic QBooleanTypeNULLABLE-
Fields inherited from class deltix.qsrv.hf.codec.cg.QType
dt, SIZE_VARIABLE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedQBooleanType(BooleanDataType 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(boolean test)JExprgetNullLiteral()JExprmakeConstantExpr(java.lang.Object obj)-
Methods inherited from class deltix.qsrv.hf.codec.cg.QPrimitiveType
checkNull
-
Methods inherited from class deltix.qsrv.hf.codec.cg.QType
encodeNull, forDataType, hasConstraint, isNullable, skip, throwNotImplemented
-
-
-
-
Field Detail
-
NON_NULLABLE
public static final QBooleanType NON_NULLABLE
-
NULLABLE
public static final QBooleanType NULLABLE
-
N_TRUE
public static final JExpr N_TRUE
-
N_FALSE
public static final JExpr N_FALSE
-
NULL
public static final JExpr NULL
-
-
Constructor Detail
-
QBooleanType
protected QBooleanType(BooleanDataType dt)
-
-
Method Detail
-
getJavaClass
public java.lang.Class<?> getJavaClass()
- Specified by:
getJavaClassin classQPrimitiveType<BooleanDataType>
-
getLiteral
public JExpr getLiteral(boolean test)
-
getNullLiteral
public JExpr getNullLiteral()
- Specified by:
getNullLiteralin classQPrimitiveType<BooleanDataType>- Returns:
- constant, which is the canonical NULL-value for the given DataType
-
getEncodedFixedSize
public int getEncodedFixedSize()
- Specified by:
getEncodedFixedSizein classQType<BooleanDataType>
-
encodeNullImpl
protected void encodeNullImpl(JExpr output, JCompoundStatement addTo)
- Overrides:
encodeNullImplin classQPrimitiveType<BooleanDataType>
-
decodeExpr
protected JExpr decodeExpr(JExpr input)
- Overrides:
decodeExprin classQPrimitiveType<BooleanDataType>
-
encodeExpr
protected void encodeExpr(JExpr output, JExpr value, JCompoundStatement addTo)
- Overrides:
encodeExprin classQPrimitiveType<BooleanDataType>
-
makeConstantExpr
public JExpr makeConstantExpr(java.lang.Object obj)
- Overrides:
makeConstantExprin classQType<BooleanDataType>
-
-