接口的使用
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 abstract syntax tree.
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的使用
修饰符和类型方法说明private static <T> TExpressionUtils.convertValue(TypeConverter typeConverter, TypedValue typedValue, Class<T> targetType) 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.ast中TypeConverter的使用
修饰符和类型字段说明private final TypeConverterIndexer.ArrayIndexingValueRef.typeConverterprivate final TypeConverterIndexer.CollectionIndexingValueRef.typeConverterprivate final TypeConverterIndexer.MapIndexingValueRef.typeConverter修饰符和类型方法说明private <T> TIndexer.convertValue(TypeConverter converter, Object value, Class<T> targetType) private boolean[]ConstructorReference.createBooleanArray(ExpressionState state, TypeConverter typeConverter, SpelNodeImpl[] children) private byte[]ConstructorReference.createByteArray(ExpressionState state, TypeConverter converter, SpelNodeImpl[] children) private char[]ConstructorReference.createCharArray(ExpressionState state, TypeConverter typeConverter, SpelNodeImpl[] children) private double[]ConstructorReference.createDoubleArray(ExpressionState state, TypeConverter typeConverter, SpelNodeImpl[] children) private float[]ConstructorReference.createFloatArray(ExpressionState state, TypeConverter typeConverter, SpelNodeImpl[] children) private int[]ConstructorReference.createIntArray(ExpressionState state, TypeConverter typeConverter, SpelNodeImpl[] children) private long[]ConstructorReference.createLongArray(ExpressionState state, TypeConverter converter, SpelNodeImpl[] children) private ObjectConstructorReference.createReferenceTypeArray(ExpressionState state, TypeConverter typeConverter, SpelNodeImpl[] children, Class<?> componentType) private short[]ConstructorReference.createShortArray(ExpressionState state, TypeConverter typeConverter, SpelNodeImpl[] children) private voidIndexer.setArrayElement(TypeConverter converter, Object ctx, int idx, Object newValue, Class<?> arrayComponentType) 限定符构造器说明(专用程序包)ArrayIndexingValueRef(TypeConverter typeConverter, Object array, int index, TypeDescriptor typeDescriptor) CollectionIndexingValueRef(Collection collection, int index, TypeDescriptor collectionEntryDescriptor, TypeConverter typeConverter, boolean growCollection, int maximumSize) MapIndexingValueRef(TypeConverter typeConverter, Map map, Object key, TypeDescriptor mapEntryDescriptor) -
cn.taketoday.expression.spel.support中TypeConverter的使用
修饰符和类型类说明classDefault implementation of theTypeConverterinterface, delegating to a coreConversionService.修饰符和类型字段说明private TypeConverterSimpleEvaluationContext.Builder.typeConverterprivate final TypeConverterSimpleEvaluationContext.typeConverterprivate TypeConverterStandardEvaluationContext.typeConverter修饰符和类型方法说明SimpleEvaluationContext.getTypeConverter()The configuredTypeConverter.StandardEvaluationContext.getTypeConverter()修饰符和类型方法说明(专用程序包) static ReflectionHelper.ArgumentsMatchInfoReflectionHelper.compareArguments(List<TypeDescriptor> expectedArgTypes, List<TypeDescriptor> suppliedArgTypes, TypeConverter typeConverter) Compare argument arrays and return information about whether they match.(专用程序包) static ReflectionHelper.ArgumentsMatchInfoReflectionHelper.compareArgumentsVarargs(List<TypeDescriptor> expectedArgTypes, List<TypeDescriptor> suppliedArgTypes, TypeConverter typeConverter) Compare argument arrays and return information about whether they match.static booleanReflectionHelper.convertAllArguments(TypeConverter converter, Object[] arguments, Method method) Convert a supplied set of arguments into the requested types.static booleanReflectionHelper.convertAllMethodHandleArguments(TypeConverter converter, Object[] arguments, MethodHandle methodHandle, Integer varargsPosition) Takes an input set of argument values and converts them to the types specified as the required parameter types.(专用程序包) static booleanReflectionHelper.convertArguments(TypeConverter converter, Object[] arguments, Executable executable, Integer varargsPosition) Takes an input set of argument values and converts them to the types specified as the required parameter types.voidStandardEvaluationContext.setTypeConverter(TypeConverter typeConverter) SimpleEvaluationContext.Builder.withTypeConverter(TypeConverter converter) Register a customTypeConverter.限定符构造器说明privateSimpleEvaluationContext(List<PropertyAccessor> accessors, List<MethodResolver> resolvers, TypeConverter converter, TypedValue rootObject)