private JType getNumberType ( JCodeModel owner , GenerationConfig config ) { if ( config . isUseBigDecimals ( ) ) { return unboxIfNecessary ( owner . ref ( BigDecimal . class ) , config ) ; } else if ( config . isUseDoubleNumbers ( ) ) { return unboxIfNecessary ( owner . ref ( Double . class ) , config ) ; } else { return unboxIfNecessary ( owner . ref ( Float . class ) , config ) ; } }
Returns the JType for a number field . Handles type lookup and unboxing .