public class FieldWrap extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
FieldWrap(Class<?> clz,
Field f1) |
| Modifier and Type | Method and Description |
|---|---|
Annotation[] |
getAnnoS()
获取所有注解
|
Field |
getField()
获取字段
|
ParameterizedType |
getGenericType()
获取参数类型
|
String |
getName()
获取字段名
|
Class<?> |
getOwnerClz()
获取所有者类
|
Class<?> |
getType()
获取类型
|
Object |
getValue(Object tObj)
获取字段的值
|
Object |
getValue(Object tObj,
boolean disFun)
获取字段的值
|
VarHolder |
holder(AppContext ctx,
Object obj,
InjectGather gather)
获取自身的临时对象
|
void |
setValue(Object tObj,
Object val)
设置字段的值
|
void |
setValue(Object tObj,
Object val,
boolean disFun) |
VarSpec |
spec()
变量申明
|
TypeWrap |
typeWrapOf(Type genericInfo) |
public VarSpec spec()
public Class<?> getOwnerClz()
public String getName()
public Field getField()
public Class<?> getType()
@Nullable public ParameterizedType getGenericType()
public Annotation[] getAnnoS()
public VarHolder holder(AppContext ctx, Object obj, InjectGather gather)
Copyright © 2025. All rights reserved.