Class SimpleNumberCoercerFactory.SimpleNumberCoercerBigInt
java.lang.Object
com.espertech.esper.common.internal.util.SimpleNumberCoercerFactory.SimpleNumberCoercerBigInt
- All Implemented Interfaces:
SimpleNumberBigIntegerCoercer
,SimpleNumberCoercer
- Enclosing class:
- SimpleNumberCoercerFactory
public static class SimpleNumberCoercerFactory.SimpleNumberCoercerBigInt
extends Object
implements SimpleNumberCoercer, SimpleNumberBigIntegerCoercer
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SimpleNumberCoercerFactory.SimpleNumberCoercerBigInt
-
Method Summary
Modifier and TypeMethodDescriptionstatic CodegenExpression
codegenBigInt
(CodegenExpression value, EPTypeClass valueType) coerceBoxed
(Number numToCoerce) Coerce the given number to a previously determined type, assuming the type is a Boxed type.coerceBoxedBigInt
(Number numToCoerce) Widen the number to BigInteger, if widening is required.coerceBoxedBigIntCodegen
(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
-
coerceBoxedBigInt
Description copied from interface:SimpleNumberBigIntegerCoercer
Widen the number to BigInteger, if widening is required.- Specified by:
coerceBoxedBigInt
in interfaceSimpleNumberBigIntegerCoercer
- Parameters:
numToCoerce
- number to widen- Returns:
- widened number
-
getReturnType
- Specified by:
getReturnType
in interfaceSimpleNumberCoercer
-
coerceCodegen
- Specified by:
coerceCodegen
in interfaceSimpleNumberCoercer
-
coerceBoxedBigIntCodegen
- Specified by:
coerceBoxedBigIntCodegen
in interfaceSimpleNumberBigIntegerCoercer
-
coerceCodegenMayNullBoxed
public CodegenExpression coerceCodegenMayNullBoxed(CodegenExpression value, EPType valueTypeMustNumeric, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) - Specified by:
coerceCodegenMayNullBoxed
in interfaceSimpleNumberCoercer
-
codegenBigInt
-