public class ReflectionFieldAccessor extends Object implements IFieldAccessor
Constructor and Description |
---|
ReflectionFieldAccessor(Field f) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Object |
get(Object on)
get field value.
|
Field |
getField()
Gets accessed field.
|
int |
hashCode() |
boolean |
isAccessible() |
void |
set(Object on,
Object value)
set field value.
|
String |
toString() |
public ReflectionFieldAccessor(Field f)
public Object get(Object on) throws UtilsException
IFieldAccessor
get
in interface IFieldAccessor
UtilsException
public void set(Object on, Object value) throws UtilsException
IFieldAccessor
set
in interface IFieldAccessor
UtilsException
public Field getField()
IFieldAccessor
getField
in interface IFieldAccessor
public boolean isAccessible()
isAccessible
in interface IFieldAccessor
IFieldAccessor.set(Object, Object)
or IFieldAccessor.get(Object)
will most likely throw an Exception.