public class FieldWrap extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
Annotation[] |
annoS
自己申明的注解
|
Class<?> |
entityClz
实体类型
|
Field |
field
字段
|
ParameterizedType |
genericType
字段泛型类型(可能为null)
|
boolean |
readonly
字段是否只读
|
Class<?> |
type
字段类型
|
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
get(Object tObj) |
VarDescriptor |
getDescriptor()
变量申明者
|
String |
getName() |
Object |
getValue(Object tObj)
获取字段的值
|
VarHolder |
holder(AopContext ctx,
Object obj,
Runnable onDone)
获取自身的临时对象
|
void |
setValue(Object tObj,
Object val)
设置字段的值
|
void |
setValue(Object tObj,
Object val,
boolean disFun) |
public final Class<?> entityClz
public final Field field
public final Annotation[] annoS
public final Class<?> type
@Nullable public final ParameterizedType genericType
public final boolean readonly
public VarDescriptor getDescriptor()
public String getName()
public VarHolder holder(AopContext ctx, Object obj, Runnable onDone)
public Object getValue(Object tObj) throws ReflectiveOperationException
public Object get(Object tObj) throws IllegalAccessException
Copyright © 2023. All rights reserved.