|
||||||||||
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 | |
---|---|
Field |
field(Class cls,
String name,
Class definedIn)
Returns an specific field of some class. |
Field |
fieldOrNull(Class cls,
String name,
Class definedIn)
Returns an specific field of some class. |
Iterator |
fieldsFor(Class cls)
Returns an iterator for all fields for some class |
void |
flushCache()
|
protected Object |
readResolve()
|
Iterator |
serializableFieldsFor(Class cls)
Deprecated. As of 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 Iterator serializableFieldsFor(Class cls)
fieldsFor(Class)
instead
cls
- the class you are interested on
public Iterator fieldsFor(Class cls)
cls
- the class you are interested on
public Field field(Class cls, String name, 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
ObjectAccessException
- if no field can be foundpublic Field fieldOrNull(Class cls, String name, 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
null
public void flushCache()
flushCache
in interface Caching
protected Object readResolve()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |