接口的使用
cn.taketoday.expression.TypeConverter
使用TypeConverter的程序包
程序包
说明
Core abstractions behind the Spring Expression Language.
Common utility classes behind the Spring Expression Language.
SpEL's central implementation package.
SpEL's default implementations for various core abstractions.
-
cn.taketoday.expression中TypeConverter的使用
修饰符和类型方法说明EvaluationContext.getTypeConverter()Return a type converter that can convert (or coerce) a value from one type to another. -
cn.taketoday.expression.common中TypeConverter的使用
修饰符和类型方法说明static booleanExpressionUtils.toBoolean(TypeConverter typeConverter, TypedValue typedValue) Attempt to convert a typed value to a boolean using the supplied type converter.static byteExpressionUtils.toByte(TypeConverter typeConverter, TypedValue typedValue) Attempt to convert a typed value to a byte using the supplied type converter.static charExpressionUtils.toChar(TypeConverter typeConverter, TypedValue typedValue) Attempt to convert a typed value to a char using the supplied type converter.static doubleExpressionUtils.toDouble(TypeConverter typeConverter, TypedValue typedValue) Attempt to convert a typed value to a double using the supplied type converter.static floatExpressionUtils.toFloat(TypeConverter typeConverter, TypedValue typedValue) Attempt to convert a typed value to a float using the supplied type converter.static intExpressionUtils.toInt(TypeConverter typeConverter, TypedValue typedValue) Attempt to convert a typed value to an int using the supplied type converter.static longExpressionUtils.toLong(TypeConverter typeConverter, TypedValue typedValue) Attempt to convert a typed value to a long using the supplied type converter.static shortExpressionUtils.toShort(TypeConverter typeConverter, TypedValue typedValue) Attempt to convert a typed value to a short using the supplied type converter. -
cn.taketoday.expression.spel中TypeConverter的使用
-
cn.taketoday.expression.spel.support中TypeConverter的使用
修饰符和类型类说明classDefault implementation of theTypeConverterinterface, delegating to a coreConversionService.修饰符和类型方法说明SimpleEvaluationContext.getTypeConverter()The configuredTypeConverter.StandardEvaluationContext.getTypeConverter()修饰符和类型方法说明static booleanReflectionHelper.convertAllArguments(TypeConverter converter, Object[] arguments, Method method) Convert a supplied set of arguments into the requested types.voidStandardEvaluationContext.setTypeConverter(TypeConverter typeConverter) SimpleEvaluationContext.Builder.withTypeConverter(TypeConverter converter) Register a customTypeConverter.