Class SimpleNumberCoercerFactory.SimpleNumberCoercerLong
java.lang.Object
com.espertech.esper.common.internal.util.SimpleNumberCoercerFactory.SimpleNumberCoercerLong
- All Implemented Interfaces:
SimpleNumberCoercer
- Enclosing class:
- SimpleNumberCoercerFactory
public static class SimpleNumberCoercerFactory.SimpleNumberCoercerLong
extends Object
implements SimpleNumberCoercer
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CodegenExpression
codegenLong
(CodegenExpression param, EPTypeClass type) static CodegenExpression
codegenLongMayNullBox
(CodegenExpression param, EPType type, 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
-
codegenLong
-
codegenLongMayNullBox
public static CodegenExpression codegenLongMayNullBox(CodegenExpression param, EPType type, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) -
coerceCodegen
- Specified by:
coerceCodegen
in interfaceSimpleNumberCoercer
-
coerceCodegenMayNullBoxed
public CodegenExpression coerceCodegenMayNullBoxed(CodegenExpression param, EPType valueTypeMustNumeric, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) - Specified by:
coerceCodegenMayNullBoxed
in interfaceSimpleNumberCoercer
-