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 JExpr
N_FALSE
static JExpr
N_TRUE
static QBooleanType
NON_NULLABLE
static JExpr
NULL
static QBooleanType
NULLABLE
-
Fields inherited from class deltix.qsrv.hf.codec.cg.QType
dt, SIZE_VARIABLE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
QBooleanType(BooleanDataType 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(boolean test)
JExpr
getNullLiteral()
JExpr
makeConstantExpr(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:
getJavaClass
in classQPrimitiveType<BooleanDataType>
-
getLiteral
public JExpr getLiteral(boolean test)
-
getNullLiteral
public JExpr getNullLiteral()
- Specified by:
getNullLiteral
in classQPrimitiveType<BooleanDataType>
- Returns:
- constant, which is the canonical NULL-value for the given DataType
-
getEncodedFixedSize
public int getEncodedFixedSize()
- Specified by:
getEncodedFixedSize
in classQType<BooleanDataType>
-
encodeNullImpl
protected void encodeNullImpl(JExpr output, JCompoundStatement addTo)
- Overrides:
encodeNullImpl
in classQPrimitiveType<BooleanDataType>
-
decodeExpr
protected JExpr decodeExpr(JExpr input)
- Overrides:
decodeExpr
in classQPrimitiveType<BooleanDataType>
-
encodeExpr
protected void encodeExpr(JExpr output, JExpr value, JCompoundStatement addTo)
- Overrides:
encodeExpr
in classQPrimitiveType<BooleanDataType>
-
makeConstantExpr
public JExpr makeConstantExpr(java.lang.Object obj)
- Overrides:
makeConstantExpr
in classQType<BooleanDataType>
-
-