|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wamblee.reflection.FieldAccessor<T>
T - Type of the field.public class FieldAccessor<T>
Utility for interfacing to a field of an object.
| Constructor Summary | |
|---|---|
FieldAccessor(Field aField)
Constructs the accessor. |
|
| Method Summary | |
|---|---|
T |
get(Object aEntity)
Gets the value. |
Field |
getField()
Gets the field. |
Class<T> |
getType()
Gets the type of the value. |
void |
set(Object aEntity,
T aValue)
Sets the value. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FieldAccessor(Field aField)
aField - Field.| Method Detail |
|---|
public T get(Object aEntity)
Accessor
get in interface Accessor<T>aEntity - Object
public void set(Object aEntity,
T aValue)
Accessor
set in interface Accessor<T>aEntity - Object.aValue - Value.public Field getField()
public Class<T> getType()
Accessor
getType in interface Accessor<T>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||