public static class SimpleTypeCasterFactory.BigIntObjectCaster extends Object implements SimpleTypeCaster
Modifier and Type | Field and Description |
---|---|
static SimpleTypeCasterFactory.BigIntObjectCaster |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
Object |
cast(Object object)
Casts an object to another type, typically for numeric types.
|
static BigInteger |
castObjectToBigInteger(Object object)
NOTE: Code-generation-invoked method, method name and parameter order matters
|
CodegenExpression |
codegen(CodegenExpression input,
EPTypeClass inputType,
CodegenMethodScope codegenMethodScope,
CodegenClassScope codegenClassScope) |
boolean |
isNumericCast()
Returns true to indicate that the cast target type is numeric.
|
public static final SimpleTypeCasterFactory.BigIntObjectCaster INSTANCE
public Object cast(Object object)
SimpleTypeCaster
May performs a compatibility check and returns null if not compatible.
cast
in interface SimpleTypeCaster
object
- to castpublic static BigInteger castObjectToBigInteger(Object object)
object
- to castpublic boolean isNumericCast()
SimpleTypeCaster
isNumericCast
in interface SimpleTypeCaster
public CodegenExpression codegen(CodegenExpression input, EPTypeClass inputType, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope)
codegen
in interface SimpleTypeCaster
Copyright © 2005–2022. All rights reserved.