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