Class SimpleNumberCoercerFactory.SimpleNumberCoercerBigDecDouble
java.lang.Object
com.espertech.esper.common.internal.util.SimpleNumberCoercerFactory.SimpleNumberCoercerBigDecDouble
- All Implemented Interfaces:
SimpleNumberBigDecimalCoercer
,SimpleNumberCoercer
- Enclosing class:
- SimpleNumberCoercerFactory
public static class SimpleNumberCoercerFactory.SimpleNumberCoercerBigDecDouble
extends Object
implements SimpleNumberCoercer, SimpleNumberBigDecimalCoercer
-
Field Summary
Modifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic CodegenExpression
codegenBigDec
(CodegenExpression value, EPTypeClass valueType) coerceBoxed
(Number numToCoerce) Coerce the given number to a previously determined type, assuming the type is a Boxed type.coerceBoxedBigDec
(Number numToCoerce) Widen the number to BigDecimal, if widening is required.coerceBoxedBigDecCodegen
(CodegenExpression expr, EPTypeClass type) coerceCodegen
(CodegenExpression value, EPTypeClass valueType) coerceCodegenMayNullBoxed
(CodegenExpression value, EPType valueTypeMustNumeric, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope)
-
Field Details
-
INSTANCE
-
-
Method Details
-
coerceBoxed
Description copied from interface:SimpleNumberCoercer
Coerce the given number to a previously determined type, assuming the type is a Boxed type. Allows coerce to lower resultion number. Does't coerce to primitive types.- Specified by:
coerceBoxed
in interfaceSimpleNumberCoercer
- Parameters:
numToCoerce
- is the number to coerce to the given type- Returns:
- the numToCoerce as a value in the given result type
-
coerceBoxedBigDec
Description copied from interface:SimpleNumberBigDecimalCoercer
Widen the number to BigDecimal, if widening is required.- Specified by:
coerceBoxedBigDec
in interfaceSimpleNumberBigDecimalCoercer
- Parameters:
numToCoerce
- number to widen- Returns:
- widened number
-
getReturnType
- Specified by:
getReturnType
in interfaceSimpleNumberCoercer
-
coerceCodegen
- Specified by:
coerceCodegen
in interfaceSimpleNumberCoercer
-
coerceBoxedBigDecCodegen
- Specified by:
coerceBoxedBigDecCodegen
in interfaceSimpleNumberBigDecimalCoercer
-
coerceCodegenMayNullBoxed
public CodegenExpression coerceCodegenMayNullBoxed(CodegenExpression value, EPType valueTypeMustNumeric, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) - Specified by:
coerceCodegenMayNullBoxed
in interfaceSimpleNumberCoercer
-
codegenBigDec
-