Constructor and Description |
---|
FieldDictionary() |
FieldDictionary(FieldKeySorter sorter) |
Modifier and Type | Method and Description |
---|---|
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 |
public FieldDictionary()
public FieldDictionary(FieldKeySorter sorter)
public Iterator serializableFieldsFor(Class cls)
fieldsFor(Class)
insteadcls
- the class you are interested onpublic Iterator fieldsFor(Class cls)
cls
- the class you are interested onpublic 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 definedObjectAccessException
- 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 definednull
public void flushCache()
flushCache
in interface Caching
protected Object readResolve()
Copyright © 2004–2016 XStream. All rights reserved.