类 MethodAccessorPropertyAccessor

java.lang.Object
cn.taketoday.reflect.PropertyAccessor
cn.taketoday.reflect.MethodAccessorPropertyAccessor
所有已实现的接口:
GetterMethod, SetterMethod

final class MethodAccessorPropertyAccessor extends PropertyAccessor
MethodInvoker PropertyAccessor implementation
作者:
TODAY 2020/9/11 15:54
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • get

      public Object get(Object obj)
      从接口复制的说明: GetterMethod
      Get property from obj
      指定者:
      get 在接口中 GetterMethod
      指定者:
      get 在类中 PropertyAccessor
      参数:
      obj - Target object
      返回:
      Property
    • set

      public void set(Object obj, Object value)
      从接口复制的说明: SetterMethod
      set property

      If value is null and target property type is primitive this method will do nothing.

      指定者:
      set 在接口中 SetterMethod
      指定者:
      set 在类中 PropertyAccessor
      参数:
      obj - Target obj
      value - property value
    • getReadMethod

      public Method getReadMethod()
    • getWriteMethod

      public Method getWriteMethod()