类的使用
cn.taketoday.core.TypeDescriptor
使用TypeDescriptor的程序包
程序包
说明
Provides core helpers that are not specific to any part of the framework.
Type Conversion System
Default implementation of the type conversion system.
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 standard parser implementation.
SpEL's default implementations for various core abstractions.
Optimised Reflection System
-
cn.taketoday.core中TypeDescriptor的使用
类型参数类型为TypeDescriptor的cn.taketoday.core中的字段修饰符和类型方法说明static TypeDescriptorTypeDescriptor.array(TypeDescriptor elementDescriptor) Create a new type descriptor as an array of the specified type.static TypeDescriptorTypeDescriptor.collection(Class<?> collectionType, TypeDescriptor elementDescriptor) Create a new type descriptor from aCollectiontype.static TypeDescriptorTypeDescriptor.collection(Class<?> collectionType, Class<?> element) TypeDescriptor.elementDescriptor(Object element) If this type is aCollectionor an array, creates a element TypeDescriptor from the provided collection or array element.static TypeDescriptorCreate a new type descriptor for an object.static TypeDescriptorTypeDescriptor.forParameter(Executable executable, int parameterIndex) static TypeDescriptorTypeDescriptor.fromParameter(Parameter parameter) TypeDescriptor.getElementDescriptor()If this type is an array, returns the array's component type.TypeDescriptor.getMapKeyDescriptor()If this type is aMapand its key type is parameterized, returns the map's key type.TypeDescriptor.getMapKeyDescriptor(Object mapKey) If this type is aMap, creates a mapKeyTypeDescriptorfrom the provided map key.TypeDescriptor.getMapValueDescriptor()If this type is aMapand its value type is parameterized, returns the map's value type.TypeDescriptor.getMapValueDescriptor(Object mapValue) If this type is aMap, creates a mapValueTypeDescriptorfrom the provided map value.private static TypeDescriptorTypeDescriptor.getRelatedIfResolvable(TypeDescriptor source, ResolvableType type) static TypeDescriptorTypeDescriptor.map(Class<?> mapType, TypeDescriptor keyDescriptor, TypeDescriptor valueDescriptor) Create a new type descriptor from aMaptype.static TypeDescriptorNarrows thisTypeDescriptorby setting its type to the class of the provided value.private TypeDescriptorTypeDescriptor.narrow(Object value, TypeDescriptor typeDescriptor) static TypeDescriptorTypeDescriptor.nested(MethodParameter methodParameter, int nestingLevel) Create a type descriptor for a nested type declared within the method parameter.static TypeDescriptorTypeDescriptor.nested(TypeDescriptor typeDescriptor, int nestingLevel) static TypeDescriptorCreate a type descriptor for a nested type declared within the field.Cast thisTypeDescriptorto a superclass or implemented interface preserving annotations and nested type context.static TypeDescriptorCreate a new type descriptor from the given type.参数类型为TypeDescriptor的cn.taketoday.core中的方法修饰符和类型方法说明private booleanTypeDescriptor.annotationsMatch(TypeDescriptor otherDesc) static TypeDescriptorTypeDescriptor.array(TypeDescriptor elementDescriptor) Create a new type descriptor as an array of the specified type.static TypeDescriptorTypeDescriptor.collection(Class<?> collectionType, TypeDescriptor elementDescriptor) Create a new type descriptor from aCollectiontype.private static TypeDescriptorTypeDescriptor.getRelatedIfResolvable(TypeDescriptor source, ResolvableType type) booleanTypeDescriptor.isAssignableTo(TypeDescriptor typeDescriptor) Returns true if an object of this type descriptor can be assigned to the location described by the given type descriptor.private booleanTypeDescriptor.isNestedAssignable(TypeDescriptor nestedTypeDescriptor, TypeDescriptor otherNestedTypeDescriptor) static TypeDescriptorTypeDescriptor.map(Class<?> mapType, TypeDescriptor keyDescriptor, TypeDescriptor valueDescriptor) Create a new type descriptor from aMaptype.private TypeDescriptorTypeDescriptor.narrow(Object value, TypeDescriptor typeDescriptor) static TypeDescriptorTypeDescriptor.nested(TypeDescriptor typeDescriptor, int nestingLevel) -
cn.taketoday.core.conversion中TypeDescriptor的使用
修饰符和类型字段说明private final TypeDescriptorConversionFailedException.sourceTypeprivate final TypeDescriptorConverterNotFoundException.sourceTypeprivate final TypeDescriptorConversionFailedException.targetTypeprivate final TypeDescriptorConverterNotFoundException.targetType修饰符和类型方法说明ConversionFailedException.getSourceType()Return the source type we tried to convert the value from.ConverterNotFoundException.getSourceType()Return the source type that was requested to convert from.ConversionFailedException.getTargetType()Return the target type we tried to convert the value to.ConverterNotFoundException.getTargetType()Return the target type that was requested to convert to.修饰符和类型方法说明booleanConversionService.canConvert(TypeDescriptor sourceType, TypeDescriptor targetType) Returntrueif objects ofsourceTypecan be converted to thetargetType.<T> TConversionService.convert(Object source, TypeDescriptor targetType) Convert the givensourceto the specifiedtargetType.ConversionService.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Convert the givensourceto the specifiedtargetType.GenericConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Convert the source object to the targetType described by theTypeDescriptor.ConversionService.getConverter(TypeDescriptor sourceType, TypeDescriptor targetType) Hook method to lookup the converter for a given sourceType/targetType pair.default GenericConverterConversionService.getConverter(Class<?> sourceType, TypeDescriptor targetType) Hook method to lookup the converter for a given sourceType/targetType pair.default GenericConverterConversionService.getConverter(Object sourceObject, TypeDescriptor targetType) Hook method to lookup the converter for a given sourceType/targetType pair.booleanConditionalConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) Should the conversion fromsourceTypetotargetTypecurrently under consideration be selected?参数类型为TypeDescriptor的cn.taketoday.core.conversion中的构造器限定符构造器说明ConversionFailedException(TypeDescriptor sourceType, TypeDescriptor targetType, Object value, Throwable cause) Create a new conversion exception.ConverterNotFoundException(TypeDescriptor sourceType, TypeDescriptor targetType) Create a new conversion executor not found exception. -
cn.taketoday.core.conversion.support中TypeDescriptor的使用
修饰符和类型字段说明private static final TypeDescriptorByteBufferConverter.BYTE_ARRAY_TYPEprivate static final TypeDescriptorByteBufferConverter.BYTE_BUFFER_TYPEprivate final TypeDescriptorGenericConversionService.ConverterCacheKey.sourceTypesourceType记录组件的字段。private static final TypeDescriptorStreamConverter.STREAM_TYPEprivate final TypeDescriptorConvertingPropertyEditorAdapter.targetDescriptorprivate final TypeDescriptorGenericConversionService.ConverterCacheKey.targetTypetargetType记录组件的字段。修饰符和类型方法说明GenericConversionService.ConverterCacheKey.sourceType()返回sourceType记录组件的值。GenericConversionService.ConverterCacheKey.targetType()返回targetType记录组件的值。修饰符和类型方法说明private voidGenericConversionService.assertNotPrimitiveTargetType(TypeDescriptor sourceType, TypeDescriptor targetType) booleanGenericConversionService.canBypassConvert(TypeDescriptor sourceType, TypeDescriptor targetType) Return whether conversion between the source type and the target type can be bypassed.booleanGenericConversionService.canConvert(TypeDescriptor sourceType, TypeDescriptor targetType) static booleanConversionUtils.canConvertElements(TypeDescriptor sourceElementType, TypeDescriptor targetElementType, ConversionService conversionService) private booleanMapToMapConverter.canConvertKey(TypeDescriptor sourceType, TypeDescriptor targetType) private booleanMapToMapConverter.canConvertValue(TypeDescriptor sourceType, TypeDescriptor targetType) ArrayToArrayConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ArrayToCollectionConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ArrayToObjectConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ArrayToStringConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ByteBufferConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) CollectionToArrayConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) CollectionToCollectionConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) CollectionToObjectConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) CollectionToStringConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) FallbackObjectToStringConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) <T> TGenericConversionService.convert(Object source, TypeDescriptor targetType) Convenience operation for converting a source object to the specified targetType, where the target type is a descriptor that provides additional conversion context.GenericConversionService.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) GenericConversionService.ConverterAdapter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) GenericConversionService.ConverterFactoryAdapter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) GenericConversionService.NoOpConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) IdToEntityConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) MapToMapConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ObjectToArrayConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ObjectToCollectionConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ObjectToObjectConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) ObjectToOptionalConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) StreamConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) StringToArrayConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) StringToCollectionConverter.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) private ObjectByteBufferConverter.convertFromByteBuffer(ByteBuffer source, TypeDescriptor targetType) private ObjectStreamConverter.convertFromStream(Stream<?> source, TypeDescriptor streamType, TypeDescriptor targetType) private ObjectMapToMapConverter.convertKey(Object sourceKey, TypeDescriptor sourceType, TypeDescriptor targetType) protected ObjectGenericConversionService.convertNullSource(TypeDescriptor sourceType, TypeDescriptor targetType) Template method to convert anullsource.private ObjectByteBufferConverter.convertToByteBuffer(Object source, TypeDescriptor sourceType) private ObjectStreamConverter.convertToStream(Object source, TypeDescriptor sourceType, TypeDescriptor streamType) private ObjectMapToMapConverter.convertValue(Object sourceValue, TypeDescriptor sourceType, TypeDescriptor targetType) GenericConversionService.Converters.find(TypeDescriptor sourceType, TypeDescriptor targetType) Find aGenericConvertergiven a source and target type.GenericConversionService.ConvertersForPair.getConverter(TypeDescriptor sourceType, TypeDescriptor targetType) GenericConversionService.getConverter(TypeDescriptor sourceType, TypeDescriptor targetType) Hook method to lookup the converter for a given sourceType/targetType pair.protected GenericConverterGenericConversionService.getDefaultConverter(TypeDescriptor sourceType, TypeDescriptor targetType) Return the default converter if no converter is found for the given sourceType/targetType pair.private GenericConverterGenericConversionService.Converters.getRegisteredConverter(TypeDescriptor sourceType, TypeDescriptor targetType, GenericConverter.ConvertiblePair convertiblePair) private ObjectGenericConversionService.handleConverterNotFound(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) private ObjectGenericConversionService.handleResult(TypeDescriptor sourceType, TypeDescriptor targetType, Object result) static ObjectConversionUtils.invokeConverter(GenericConverter converter, Object source, TypeDescriptor sourceType, TypeDescriptor targetType) booleanAbstractConditionalEnumConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanArrayToArrayConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanArrayToCollectionConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanArrayToObjectConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanArrayToStringConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanByteBufferConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanCollectionToArrayConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanCollectionToCollectionConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanCollectionToObjectConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanCollectionToStringConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanFallbackObjectToStringConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanGenericConversionService.ConverterAdapter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanGenericConversionService.ConverterFactoryAdapter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanIdToEntityConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanMapToMapConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanNumberToNumberConverterFactory.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanObjectToArrayConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanObjectToCollectionConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanObjectToObjectConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanObjectToOptionalConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanStreamConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanStringToArrayConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) booleanStringToCollectionConverter.matches(TypeDescriptor sourceType, TypeDescriptor targetType) private booleanByteBufferConverter.matchesFromByteBuffer(TypeDescriptor targetType) booleanStreamConverter.matchesFromStream(TypeDescriptor elementType, TypeDescriptor targetType) Validate that aCollectionof the elements held within the stream can be converted to the specifiedtargetType.private booleanByteBufferConverter.matchesToByteBuffer(TypeDescriptor sourceType) booleanStreamConverter.matchesToStream(TypeDescriptor elementType, TypeDescriptor sourceType) Validate that the specifiedsourceTypecan be converted to aCollectionof the type of the stream elements.限定符构造器说明privateConverterCacheKey(TypeDescriptor sourceType, TypeDescriptor targetType) 创建ConverterCacheKey记录的实例。ConvertingPropertyEditorAdapter(ConversionService conversionService, TypeDescriptor targetDescriptor) Create a new ConvertingPropertyEditorAdapter for a givenConversionServiceand the given target type.GenericTypeDescriptor(TypeDescriptor typeDescriptor) -
cn.taketoday.expression中TypeDescriptor的使用
修饰符和类型方法说明TypedValue.getTypeDescriptor()Expression.getValueTypeDescriptor()Return the most general type that can be passed to aExpression.setValue(java.lang.Object, java.lang.Object)method using the default context.Expression.getValueTypeDescriptor(EvaluationContext context) Return the most general type that can be passed to theExpression.setValue(EvaluationContext, Object)method for the given context.Expression.getValueTypeDescriptor(EvaluationContext context, Object rootObject) Return the most general type that can be passed to theExpression.setValue(EvaluationContext, Object, Object)method for the given context.Expression.getValueTypeDescriptor(Object rootObject) Return the most general type that can be passed to theExpression.setValue(Object, Object)method using the default context.参数类型为TypeDescriptor的cn.taketoday.expression中的方法修饰符和类型方法说明booleanTypeConverter.canConvert(TypeDescriptor sourceType, TypeDescriptor targetType) Returntrueif the type converter can convert the specified type to the desired target type.TypeConverter.convertValue(Object value, TypeDescriptor sourceType, TypeDescriptor targetType) Convert (or coerce) a value from one type to another, for example from abooleanto aString.类型变量类型为TypeDescriptor的cn.taketoday.expression中的方法参数修饰符和类型方法说明ConstructorResolver.resolve(EvaluationContext context, String typeName, List<TypeDescriptor> argumentTypes) Within the supplied context determine a suitable constructor on the supplied type that can handle the specified arguments.MethodResolver.resolve(EvaluationContext context, Object targetObject, String name, List<TypeDescriptor> argumentTypes) Within the supplied context determine a suitable method on the supplied object that can handle the specified arguments.参数类型为TypeDescriptor的cn.taketoday.expression中的构造器限定符构造器说明TypedValue(Object value, TypeDescriptor typeDescriptor) Create aTypedValuefor a particular value with a particularTypeDescriptorwhich may contain additional generic declarations. -
cn.taketoday.expression.common中TypeDescriptor的使用
修饰符和类型方法说明CompositeStringExpression.getValueTypeDescriptor()CompositeStringExpression.getValueTypeDescriptor(EvaluationContext context) CompositeStringExpression.getValueTypeDescriptor(EvaluationContext context, Object rootObject) CompositeStringExpression.getValueTypeDescriptor(Object rootObject) LiteralExpression.getValueTypeDescriptor()LiteralExpression.getValueTypeDescriptor(EvaluationContext context) LiteralExpression.getValueTypeDescriptor(EvaluationContext context, Object rootObject) LiteralExpression.getValueTypeDescriptor(Object rootObject) -
cn.taketoday.expression.spel中TypeDescriptor的使用
修饰符和类型方法说明ExpressionState.convertValue(TypedValue value, TypeDescriptor targetTypeDescriptor) ExpressionState.convertValue(Object value, TypeDescriptor targetTypeDescriptor) -
cn.taketoday.expression.spel.ast中TypeDescriptor的使用
修饰符和类型字段说明private final TypeDescriptorIndexer.CollectionIndexingValueRef.collectionEntryDescriptorprivate final TypeDescriptorIndexer.MapIndexingValueRef.mapEntryDescriptorprivate final TypeDescriptorMethodReference.CachedMethodExecutor.targettarget记录组件的字段。private final TypeDescriptorIndexer.PropertyIndexingValueRef.targetObjectTypeDescriptorprivate final TypeDescriptorMethodReference.MethodValueRef.targetTypeprivate final TypeDescriptorIndexer.ArrayIndexingValueRef.typeDescriptorprivate final TypeDescriptorIndexer.StringIndexingLValue.typeDescriptor类型参数类型为TypeDescriptor的cn.taketoday.expression.spel.ast中的字段修饰符和类型字段说明private final List<TypeDescriptor>MethodReference.CachedMethodExecutor.argumentTypesargumentTypes记录组件的字段。返回变量类型为TypeDescriptor的类型的cn.taketoday.expression.spel.ast中的方法修饰符和类型方法说明MethodReference.CachedMethodExecutor.argumentTypes()返回argumentTypes记录组件的值。private List<TypeDescriptor>MethodReference.getArgumentTypes(Object... arguments) 修饰符和类型方法说明private MethodExecutorMethodReference.getCachedExecutor(EvaluationContext evaluationContext, Object value, TypeDescriptor target, List<TypeDescriptor> argumentTypes) private TypedValueMethodReference.getValueInternal(EvaluationContext evaluationContext, Object value, TypeDescriptor targetType, Object[] arguments) booleanMethodReference.CachedMethodExecutor.isSuitable(Object value, TypeDescriptor target, List<TypeDescriptor> argumentTypes) 类型变量类型为TypeDescriptor的cn.taketoday.expression.spel.ast中的方法参数修饰符和类型方法说明private MethodExecutorMethodReference.findAccessorForMethod(List<TypeDescriptor> argumentTypes, Object targetObject, EvaluationContext evaluationContext) private ConstructorExecutorConstructorReference.findExecutorForConstructor(String typeName, List<TypeDescriptor> argumentTypes, ExpressionState state) Go through the list of registered constructor resolvers and see if any can find a constructor that takes the specified set of arguments.static StringFormatHelper.formatMethodForMessage(String name, List<TypeDescriptor> argumentTypes) Produce a readable representation for a given method name with specified arguments.private MethodExecutorMethodReference.getCachedExecutor(EvaluationContext evaluationContext, Object value, TypeDescriptor target, List<TypeDescriptor> argumentTypes) booleanMethodReference.CachedMethodExecutor.isSuitable(Object value, TypeDescriptor target, List<TypeDescriptor> argumentTypes) private voidMethodReference.throwIfNotNullSafe(List<TypeDescriptor> argumentTypes) 限定符构造器说明(专用程序包)ArrayIndexingValueRef(TypeConverter typeConverter, Object array, int index, TypeDescriptor typeDescriptor) privateCachedMethodExecutor(MethodExecutor methodExecutor, Class<?> staticClass, TypeDescriptor target, List<TypeDescriptor> argumentTypes) 创建CachedMethodExecutor记录的实例。CollectionIndexingValueRef(Collection collection, int index, TypeDescriptor collectionEntryDescriptor, TypeConverter typeConverter, boolean growCollection, int maximumSize) MapIndexingValueRef(TypeConverter typeConverter, Map map, Object key, TypeDescriptor mapEntryDescriptor) PropertyIndexingValueRef(Object targetObject, String value, EvaluationContext evaluationContext, TypeDescriptor targetObjectTypeDescriptor) StringIndexingLValue(String target, int index, TypeDescriptor typeDescriptor) 类型变量类型为TypeDescriptor的cn.taketoday.expression.spel.ast中的构造器参数限定符构造器说明privateCachedMethodExecutor(MethodExecutor methodExecutor, Class<?> staticClass, TypeDescriptor target, List<TypeDescriptor> argumentTypes) 创建CachedMethodExecutor记录的实例。 -
cn.taketoday.expression.spel.standard中TypeDescriptor的使用
修饰符和类型方法说明SpelExpression.getValueTypeDescriptor()SpelExpression.getValueTypeDescriptor(EvaluationContext context) SpelExpression.getValueTypeDescriptor(EvaluationContext context, Object rootObject) SpelExpression.getValueTypeDescriptor(Object rootObject) -
cn.taketoday.expression.spel.support中TypeDescriptor的使用
修饰符和类型字段说明final TypeDescriptorReflectivePropertyAccessor.InvokerPair.typeDescriptorprivate final TypeDescriptorReflectivePropertyAccessor.OptimalPropertyAccessor.typeDescriptor修饰符和类型字段说明private final Map<ReflectivePropertyAccessor.PropertyCacheKey,TypeDescriptor> ReflectivePropertyAccessor.typeDescriptorCache修饰符和类型方法说明private TypeDescriptorReflectivePropertyAccessor.getTypeDescriptor(EvaluationContext context, Object target, String name) private TypeDescriptorReflectivePropertyAccessor.getTypeDescriptor(Method readMethod, Method writeMethod, Class<?> declaringClass) 修饰符和类型方法说明booleanStandardTypeConverter.canConvert(TypeDescriptor sourceType, TypeDescriptor targetType) StandardTypeConverter.convertValue(Object value, TypeDescriptor sourceType, TypeDescriptor targetType) voidStandardEvaluationContext.setRootObject(Object rootObject, TypeDescriptor typeDescriptor) SimpleEvaluationContext.Builder.withTypedRootObject(Object rootObject, TypeDescriptor typeDescriptor) Specify a typed root object to resolve against.类型变量类型为TypeDescriptor的cn.taketoday.expression.spel.support中的方法参数修饰符和类型方法说明(专用程序包) 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 intReflectionHelper.getTypeDifferenceWeight(List<TypeDescriptor> paramTypes, List<TypeDescriptor> argTypes) Based onReflectiveMethodInvoker.getTypeDifferenceWeight(Class[], Object[])but operates on TypeDescriptors.DataBindingMethodResolver.resolve(EvaluationContext context, Object targetObject, String name, List<TypeDescriptor> argumentTypes) ReflectiveConstructorResolver.resolve(EvaluationContext context, String typeName, List<TypeDescriptor> argumentTypes) Locate a constructor on the type.ReflectiveMethodResolver.resolve(EvaluationContext context, Object targetObject, String name, List<TypeDescriptor> argumentTypes) Locate a method on a type. -
cn.taketoday.reflect中TypeDescriptor的使用
修饰符和类型方法说明protected TypeDescriptorProperty.createDescriptor()final TypeDescriptorProperty.getTypeDescriptor()ReturnsTypeDescriptorfor this property