public interface FieldAccessor
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object instance)
Retrieve the value of a field for a particular instance.
|
Field |
getField()
Retrieve the underlying field.
|
void |
set(Object instance,
Object value)
Set the value of a field for a particular instance.
|
Object get(Object instance)
instance - - the instance, or NULL for a static field.IllegalStateException - If the current security context prohibits reflection.void set(Object instance, Object value)
instance - - the instance, or NULL for a static field.value - - the new value of the field.Field getField()
Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.