|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.objectify.impl.MethodWrapper
public class MethodWrapper
Wrapper which makes a method with a single parameter look just like a field. Well, almost - if you try to get() the value it is always null.
Constructor Summary | |
---|---|
MethodWrapper(java.lang.reflect.Method method)
|
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 MethodWrapper(java.lang.reflect.Method method)
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 |