public class ReflectivePropertyOperator extends Object implements PropertyOperator
PropertyOperator abstract implementation class.| 限定符和类型 | 字段和说明 |
|---|---|
protected @Nullable ConverterManager |
converterManager
converter register
|
| 构造器和说明 |
|---|
ReflectivePropertyOperator(@Nullable ConverterManager converterManager)
Create a property operator.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected @Nullable MethodInvoker |
createInvoker(Class<?> targetType,
String propertyName,
Method method)
Create
MethodInvoker according to the specified method. |
@Nullable MethodInvoker |
findGetter(Class<?> targetType,
String propertyName)
Get getter method.
|
protected @Nullable Method |
findGetterMethod(Class<?> targetType,
String propertyName)
Find getter method by given type and field name.
|
@Nullable MethodInvoker |
findSetter(Class<?> targetType,
String propertyName)
Get setter method.
|
protected @Nullable Method |
findSetterMethod(Class<?> targetType,
String propertyName)
Find setter method by given type and field name.
|
protected @Nullable MethodInvoker |
resolveInvoker(Class<?> targetType,
String propertyName,
@Nullable Method method)
Resolve the invoker which finally to used.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadProperty, writePropertyprotected @Nullable ConverterManager converterManager
public ReflectivePropertyOperator(@Nullable ConverterManager converterManager)
converterManager - converter managerpublic @Nullable MethodInvoker findGetter(Class<?> targetType, String propertyName)
findGetter 在接口中 PropertyOperatortargetType - target typepropertyName - property namepublic @Nullable MethodInvoker findSetter(Class<?> targetType, String propertyName)
findSetter 在接口中 PropertyOperatortargetType - target typepropertyName - property nameprotected @Nullable Method findSetterMethod(Class<?> targetType, String propertyName)
targetType - target typepropertyName - property nameprotected @Nullable Method findGetterMethod(Class<?> targetType, String propertyName)
targetType - target typepropertyName - property nameprotected @Nullable MethodInvoker createInvoker(Class<?> targetType, String propertyName, Method method)
MethodInvoker according to the specified method.targetType - target typepropertyName - property namemethod - getter method or setter methodMethodInvokerprotected final @Nullable MethodInvoker resolveInvoker(Class<?> targetType, String propertyName, @Nullable Method method)
targetType - target typepropertyName - property namemethod - methodcreateInvoker(java.lang.Class<?>, java.lang.String, java.lang.reflect.Method),
ParameterConvertibleMethodInvokerCopyright © 2023. All rights reserved.