Modifier and Type | Class and Description |
---|---|
private static class |
FieldDictionary.DictionaryEntry |
Modifier and Type | Field and Description |
---|---|
private java.util.Map |
dictionaryEntries |
private static FieldDictionary.DictionaryEntry |
OBJECT_DICTIONARY_ENTRY |
private FieldKeySorter |
sorter |
Constructor and Description |
---|
FieldDictionary() |
FieldDictionary(FieldKeySorter sorter) |
Modifier and Type | Method and Description |
---|---|
private FieldDictionary.DictionaryEntry |
buildDictionaryEntryForClass(java.lang.Class cls,
FieldDictionary.DictionaryEntry lastDictionaryEntry) |
private java.util.Map |
buildMap(java.lang.Class type,
boolean tupleKeyed) |
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)
Returns an specific field of some class.
|
java.util.Iterator |
fieldsFor(java.lang.Class cls)
Returns an iterator for all fields for some class
|
void |
flushCache() |
private FieldDictionary.DictionaryEntry |
getDictionaryEntry(java.lang.Class cls) |
private void |
init() |
protected java.lang.Object |
readResolve() |
java.util.Iterator |
serializableFieldsFor(java.lang.Class cls)
Deprecated.
As of 1.3, use
fieldsFor(Class) instead |
private static final FieldDictionary.DictionaryEntry OBJECT_DICTIONARY_ENTRY
private transient java.util.Map dictionaryEntries
private final FieldKeySorter sorter
public FieldDictionary()
public FieldDictionary(FieldKeySorter sorter)
private void init()
public java.util.Iterator serializableFieldsFor(java.lang.Class cls)
fieldsFor(Class)
insteadcls
- the class you are interested onpublic java.util.Iterator fieldsFor(java.lang.Class cls)
cls
- the class you are interested onpublic 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 definedObjectAccessException
- if no field can be foundpublic java.lang.reflect.Field fieldOrNull(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 definednull
private java.util.Map buildMap(java.lang.Class type, boolean tupleKeyed)
private FieldDictionary.DictionaryEntry buildDictionaryEntryForClass(java.lang.Class cls, FieldDictionary.DictionaryEntry lastDictionaryEntry)
private FieldDictionary.DictionaryEntry getDictionaryEntry(java.lang.Class cls)
public void flushCache()
flushCache
in interface Caching
protected java.lang.Object readResolve()