T - - field type.public static interface Reflection.FieldAccessor<T>
| Modifier and Type | Method and Description |
|---|---|
T |
get(java.lang.Object target)
Retrieve the content of a field.
|
boolean |
hasField(java.lang.Object target)
Determine if the given object has this field.
|
void |
set(java.lang.Object target,
java.lang.Object value)
Set the content of a field.
|
T get(java.lang.Object target)
target - - the target object, or NULL for a static field.void set(java.lang.Object target,
java.lang.Object value)
target - - the target object, or NULL for a static field.value - - the new value of the field.boolean hasField(java.lang.Object target)
target - - the object to test.