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