public class Property extends Object implements FieldInvoker
| 限定符和类型 | 方法和说明 |
|---|---|
Annotation |
getAnnotation(Class<? extends Annotation> clazz) |
Field |
getField() |
String |
getName() |
Class<?> |
getType()
Returns the field type.
|
Object |
getValue(Object target) |
boolean |
isFinal() |
boolean |
isHide() |
boolean |
isStatic() |
boolean |
readable()
Checks if the field is readable.
|
void |
setValue(Object target,
Object value) |
String |
toString() |
boolean |
writeable()
Checks if the field is writeable.
|
protected Field field
public Property(Field field)
public Object getValue(Object target)
getValue 在接口中 FieldInvokerpublic void setValue(Object target, Object value)
setValue 在接口中 FieldInvokerpublic Annotation getAnnotation(Class<? extends Annotation> clazz)
public Class<?> getType()
FieldInvokergetType 在接口中 FieldInvokerClass object of this field.public Field getField()
public boolean readable()
FieldInvokertrue.readable 在接口中 FieldInvokertrue if the field is readablepublic boolean writeable()
FieldInvokertrue.writeable 在接口中 FieldInvokertrue if the field is writeableCopyright © 2019. All rights reserved.