|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thoughtworks.xstream.converters.reflection.FieldDictionary
public class FieldDictionary
A field dictionary instance caches information about classes fields.
Constructor Summary | |
---|---|
FieldDictionary()
|
|
FieldDictionary(FieldKeySorter sorter)
|
Method Summary | |
---|---|
java.lang.reflect.Field |
field(java.lang.Class cls,
java.lang.String name,
java.lang.Class definedIn)
Returns an specific field of some class. |
java.lang.reflect.Field |
fieldOrNull(java.lang.Class cls,
java.lang.String name,
java.lang.Class definedIn)
Works like field(Class, String, Class) but returns null instead of throwing exception. |
java.util.Iterator |
fieldsFor(java.lang.Class cls)
Returns an iterator for all fields for some class |
protected java.lang.Object |
readResolve()
|
java.util.Iterator |
serializableFieldsFor(java.lang.Class cls)
Deprecated. since 1.3, use fieldsFor(Class) instead |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldDictionary()
public FieldDictionary(FieldKeySorter sorter)
Method Detail |
---|
public java.util.Iterator serializableFieldsFor(java.lang.Class cls)
fieldsFor(Class)
instead
cls
- the class you are interested on
public java.util.Iterator fieldsFor(java.lang.Class cls)
cls
- the class you are interested on
public java.lang.reflect.Field field(java.lang.Class cls, java.lang.String name, java.lang.Class definedIn)
cls
- the class where the field is to be searchedname
- the field namedefinedIn
- the superclass (or the class itself) of cls where the field was defined
public java.lang.reflect.Field fieldOrNull(java.lang.Class cls, java.lang.String name, java.lang.Class definedIn)
field(Class, String, Class)
but returns null instead of throwing exception.
protected java.lang.Object readResolve()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |