接口 SetterMethod
- 所有已知实现类:
GetterSetterPropertyAccessor,MethodAccessorPropertyAccessor,MethodAccessorSetterMethod,PropertyAccessor,ReadOnlyGetterMethodPropertyAccessor,ReadOnlyMethodAccessorPropertyAccessor,ReadOnlyPropertyAccessor,ReflectivePropertyAccessor,ReflectiveReadOnlyPropertyAccessor,ReflectiveSetterMethod,WriteOnlyPropertyAccessor
public interface SetterMethod
Fast call bean's setter Method
Method- 作者:
- TODAY
2020-08-14 00:29
-
方法概要
修饰符和类型方法说明static SetterMethodnew SetterMethod from java reflect propertystatic SetterMethodfromMethod(MethodInvoker invoker) use fast invoke techMethodInvokerstatic SetterMethodfromMethod(Method method) use fast invoke techMethodInvokerstatic SetterMethodfromReflective(Field field) use java reflectFieldtechdefault Methodvoidset property
-
方法详细资料
-
set
set propertyIf value is null and target property type is primitive this method will do nothing.
- 参数:
obj- Target objvalue- property value- 抛出:
ReflectionException- If this property is read only
-
getWriteMethod
- 抛出:
ReflectionException- If this property is read only- 从以下版本开始:
- 3.0
-
fromField
new SetterMethod from java reflect property- 参数:
field- given java reflect property- 返回:
- SetterMethod
-
fromMethod
use fast invoke techMethodInvoker- 参数:
method- java reflectMethod- 返回:
- SetterMethod
- 另请参阅:
-
fromMethod
use fast invoke techMethodInvoker- 参数:
invoker- fast MethodInvoker- 返回:
- SetterMethod
- 另请参阅:
-
fromReflective
use java reflectFieldtech- 参数:
field- Field- 返回:
- Reflective SetterMethod
- 另请参阅:
-