public static class FieldGetters.GetterMethodFieldGetter extends FieldGetter
| 限定符和类型 | 字段和说明 |
|---|---|
protected Method |
getterMethod |
| 构造器和说明 |
|---|
GetterMethodFieldGetter(Method getterMethod) |
protected Method getterMethod
public GetterMethodFieldGetter(Method getterMethod)
public FieldGetter takeOver(Class<?> targetClass, String fieldName)
FieldGettertakeOver 在类中 FieldGettertargetClass - target.fieldName 表达式中 target 的 Class 类型fieldName - target.fieldName 表达式中的 fieldName 部分public Object get(Object target, String fieldName) throws Exception
FieldGetterget 在类中 FieldGettertarget - 目标对象fieldName - 字段名称ExceptionCopyright © 2024. All rights reserved.