Class SimpleNumberCoercerFactory.SimpleNumberCoercerDouble
java.lang.Object
com.espertech.esper.common.internal.util.SimpleNumberCoercerFactory.SimpleNumberCoercerDouble
- All Implemented Interfaces:
SimpleNumberCoercer
- Enclosing class:
- SimpleNumberCoercerFactory
public static class SimpleNumberCoercerFactory.SimpleNumberCoercerDouble
extends Object
implements SimpleNumberCoercer
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SimpleNumberCoercerFactory.SimpleNumberCoercerDouble
-
Method Summary
Modifier and TypeMethodDescriptionstatic CodegenExpression
codegenDouble
(CodegenExpression param, EPType type) static CodegenExpression
codegenDoubleMayNullBoxedIncludeBig
(CodegenExpression value, EPTypeClass valueType, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) coerceBoxed
(Number numToCoerce) Coerce the given number to a previously determined type, assuming the type is a Boxed type.coerceCodegen
(CodegenExpression value, EPTypeClass valueType) coerceCodegenMayNullBoxed
(CodegenExpression param, 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
-
getReturnType
- Specified by:
getReturnType
in interfaceSimpleNumberCoercer
-
codegenDouble
-
coerceCodegen
- Specified by:
coerceCodegen
in interfaceSimpleNumberCoercer
-
coerceCodegenMayNullBoxed
public CodegenExpression coerceCodegenMayNullBoxed(CodegenExpression param, EPType valueTypeMustNumeric, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) - Specified by:
coerceCodegenMayNullBoxed
in interfaceSimpleNumberCoercer
-
codegenDoubleMayNullBoxedIncludeBig
public static CodegenExpression codegenDoubleMayNullBoxedIncludeBig(CodegenExpression value, EPTypeClass valueType, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope)
-