public interface SimpleTypeCaster
Modifier and Type | Method and Description |
---|---|
Object |
cast(Object object)
Casts an object to another type, typically for numeric types.
|
CodegenExpression |
codegen(CodegenExpression input,
Class inputType,
CodegenContext context) |
boolean |
isNumericCast()
Returns true to indicate that the cast target type is numeric.
|
Object cast(Object object)
May performs a compatibility check and returns null if not compatible.
object
- to castboolean isNumericCast()
CodegenExpression codegen(CodegenExpression input, Class inputType, CodegenContext context)