|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_paderborn.tools.fsa.FSATypeConverterCache
cache "converter" methods from sourcetype to targettype
Field Summary | |
static java.lang.String |
DEFAULT_CONVERTER_METHOD
No comment provided by developer, please add a comment to improve documentation. |
private java.util.TreeMap |
methodCache
methodCache : TreeMap ( |
private static FSATypeConverterCache |
theInstance
the Singleton instance |
Constructor Summary | |
private |
FSATypeConverterCache()
Default private Constructor |
Method Summary | |
private void |
addToMethodCache(java.lang.String key,
java.lang.reflect.Method[] elem)
|
java.lang.String |
createMethodCacheKey(java.lang.Class sourceClass,
java.lang.Class targetClass)
compute key for methodCache |
java.lang.String |
createMethodCacheKey(java.lang.Class sourceClass,
java.lang.Class targetClass,
java.lang.String methodName)
compute key for methodCache |
private java.util.Iterator |
entriesOfMethodCache()
|
private java.lang.reflect.Method[] |
findConverterMethod(java.lang.Class sourceClass,
java.lang.Class targetClass,
java.lang.String methodName)
No comment provided by developer, please add a comment to improve documentation. |
private java.lang.reflect.Method[] |
findConverterMethods(java.lang.Class sourceClass,
java.lang.Class targetClass)
No comment provided by developer, please add a comment to improve documentation. |
static FSATypeConverterCache |
get()
get the Singleton instance |
java.lang.reflect.Method[] |
getConverterMethods(java.lang.Class sourceClass,
java.lang.Class targetClass)
get all static methods from FSATypeConverterCache with result= |
java.lang.reflect.Method |
getDefaultConverterMethods(java.lang.Class sourceClass,
java.lang.Class targetClass)
get default converter method |
private java.lang.reflect.Method[] |
getFromMethodCache(java.lang.String key)
|
private boolean |
hasKeyInMethodCache(java.lang.String key)
|
private java.util.Iterator |
iteratorOfMethodCache()
|
private java.util.Iterator |
keysOfMethodCache()
|
private void |
removeAllFromMethodCache()
|
private void |
removeKeyFromMethodCache(java.lang.String key)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_CONVERTER_METHOD
private static FSATypeConverterCache theInstance
private java.util.TreeMap methodCache
key:String =
Constructor Detail |
private FSATypeConverterCache()
Method Detail |
public static FSATypeConverterCache get()
private java.lang.reflect.Method[] findConverterMethod(java.lang.Class sourceClass, java.lang.Class targetClass, java.lang.String methodName)
sourceClass
- No description providedtargetClass
- No description providedmethodName
- No description provided
private java.lang.reflect.Method[] findConverterMethods(java.lang.Class sourceClass, java.lang.Class targetClass)
sourceClass
- No description providedtargetClass
- No description provided
public java.lang.reflect.Method getDefaultConverterMethods(java.lang.Class sourceClass, java.lang.Class targetClass)
targetClass
- the target/result classsourceClass
- the source/parameter class
public java.lang.reflect.Method[] getConverterMethods(java.lang.Class sourceClass, java.lang.Class targetClass)
targetClass
- the target/result classsourceClass
- the source/parameter class
public java.lang.String createMethodCacheKey(java.lang.Class sourceClass, java.lang.Class targetClass, java.lang.String methodName)
methodName
- the methodnametargetClass
- the target ClasssourceClass
- the source Class
public java.lang.String createMethodCacheKey(java.lang.Class sourceClass, java.lang.Class targetClass)
targetClass
- the target ClasssourceClass
- the source Class
private boolean hasKeyInMethodCache(java.lang.String key)
key
- No description provided
methodCache
private java.util.Iterator iteratorOfMethodCache()
methodCache
private java.util.Iterator keysOfMethodCache()
methodCache
private java.util.Iterator entriesOfMethodCache()
methodCache
private java.lang.reflect.Method[] getFromMethodCache(java.lang.String key)
key
- No description provided
methodCache
private void addToMethodCache(java.lang.String key, java.lang.reflect.Method[] elem)
key
- The object added.elem
- The object added.methodCache
private void removeKeyFromMethodCache(java.lang.String key)
key
- No description providedmethodCache
private void removeAllFromMethodCache()
methodCache
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |