|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.reflect.Field
This is used to access static and instance fields in objects.
| Field Summary | |
protected Class |
declaringClass
|
protected String |
fieldName
|
String |
fullType
|
protected int |
modifiers
|
Reflect |
reflect
|
static Wrapper |
wrapper
|
int |
wrapperType
|
| Fields inherited from interface ewe.reflect.Member |
DECLARED, PUBLIC |
| Method Summary | |
void |
copyValue(Object from,
Object to)
|
Class |
getDeclaringClass()
|
Class |
getFieldType()
Return the type of the field as a Class. |
int |
getModifiers()
|
String |
getName()
|
String |
getType()
Return the type of the field as a Java encoded type string. |
Wrapper |
getValue(Object from,
Wrapper dest)
Get the value of the field. |
void |
makeWrapperCompatible(Wrapper w)
|
void |
setValue(Object to,
Wrapper value)
Set the value of the field. |
Field |
toJavaField()
|
String |
toString()
Return a String representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Field Detail |
public int wrapperType
public String fullType
protected int modifiers
protected Class declaringClass
public Reflect reflect
protected String fieldName
public static Wrapper wrapper
| Method Detail |
public String getName()
getName in interface Memberpublic String toString()
Object
toString in class Objectpublic String getType()
getType in interface Memberpublic Class getFieldType()
public Wrapper getValue(Object from,
Wrapper dest)
from - The object to retrieve the field value from, or null for static fields.dest - An optional destination wrapper value. If it is null then a new one will be
created and returned.
public void setValue(Object to,
Wrapper value)
to - The object to set the field value to, or null for static fields.value - The value to set.
public void copyValue(Object from,
Object to)
public void makeWrapperCompatible(Wrapper w)
public int getModifiers()
getModifiers in interface Memberpublic Class getDeclaringClass()
getDeclaringClass in interface Memberpublic Field toJavaField()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||