|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.objectify.impl.FieldWrapper
public class FieldWrapper
Wrapper which makes a field look just like... a field. More importantly, we can also make methods look just like this.
Constructor Summary | |
---|---|
FieldWrapper(java.lang.reflect.Field field)
|
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.Object pojo)
Get the value of the thing thing (field) if possible, or null if not possible (method) |
java.lang.reflect.Type |
getGenericType()
Get the "generictype", which can be a ParameterizedType |
java.lang.Class<?> |
getType()
Get the type of the thing. |
boolean |
isSerialized()
|
void |
set(java.lang.Object pojo,
java.lang.Object value)
Actually set the thing (field or method) on an object |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FieldWrapper(java.lang.reflect.Field field)
Method Detail |
---|
public java.lang.Class<?> getType()
Wrapper
getType
in interface Wrapper
public java.lang.reflect.Type getGenericType()
Wrapper
getGenericType
in interface Wrapper
public void set(java.lang.Object pojo, java.lang.Object value)
Wrapper
set
in interface Wrapper
public java.lang.Object get(java.lang.Object pojo)
Wrapper
get
in interface Wrapper
public boolean isSerialized()
isSerialized
in interface Wrapper
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |