Package deltix.qsrv.hf.codec.cg
Class QNumericType<T extends DataType>
- java.lang.Object
-
- deltix.qsrv.hf.codec.cg.QType<T>
-
- deltix.qsrv.hf.codec.cg.QPrimitiveType<T>
-
- deltix.qsrv.hf.codec.cg.QNumericType<T>
-
- Direct Known Subclasses:
QFloatType
,QIntegerType
public abstract class QNumericType<T extends DataType> extends QPrimitiveType<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
QNumericType(T dt, int kind, java.lang.Number min, java.lang.Number max)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract JExpr
getLiteral(java.lang.Number value)
protected abstract java.lang.Number
getMax()
protected abstract java.lang.Number
getMin()
protected boolean
hasConstraint()
JExpr
makeConstantExpr(java.lang.Object obj)
-
Methods inherited from class deltix.qsrv.hf.codec.cg.QPrimitiveType
checkNull, decodeExpr, encodeExpr, encodeNullImpl, getJavaClass, getNullLiteral
-
Methods inherited from class deltix.qsrv.hf.codec.cg.QType
encodeNull, forDataType, getEncodedFixedSize, isNullable, skip, throwNotImplemented
-
-
-
-
Constructor Detail
-
QNumericType
protected QNumericType(T dt, int kind, java.lang.Number min, java.lang.Number max)
-
-
Method Detail
-
getLiteral
public abstract JExpr getLiteral(java.lang.Number value)
-
makeConstantExpr
public JExpr makeConstantExpr(java.lang.Object obj)
- Overrides:
makeConstantExpr
in classQType<T extends DataType>
-
hasConstraint
protected boolean hasConstraint()
- Overrides:
hasConstraint
in classQType<T extends DataType>
-
getMin
protected abstract java.lang.Number getMin()
-
getMax
protected abstract java.lang.Number getMax()
-
-