|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.javalid.core.cache.AnnotationClassCache
public class AnnotationClassCache
This class stores the annotation cache for exactly one class.
| Constructor Summary | |
|---|---|
AnnotationClassCache(java.lang.Class clazz,
ValidateDefinition definition,
boolean fieldsCached)
|
|
| Method Summary | |
|---|---|
void |
addAnnotationClassCache(java.lang.String className,
AnnotationClassLevelCache cacheElement)
|
void |
addAnnotationFieldCache(java.lang.String className,
java.lang.reflect.Field field,
AnnotationFieldCache cacheElement)
Adds the field and the cache for it to this class cache. |
void |
addAnnotationMethodCache(java.lang.String className,
java.lang.reflect.Method method,
AnnotationMethodCache cacheElement)
Adds the method and the cache for it to this class cache. |
java.util.Map<java.lang.reflect.Field,AnnotationCache> |
getAnnotationCacheFields(java.lang.String className)
|
AnnotationBaseCache |
getAnnotationCacheForClass(java.lang.String className)
Returns the classcache for given className (that which was found on the class exactly, no inherited stuff). |
java.util.Map<java.lang.reflect.Method,AnnotationCache> |
getAnnotationCacheMethods(java.lang.String className)
|
java.util.List<java.lang.reflect.Field> |
getFieldsForClassName(java.lang.String className)
|
java.util.List<java.lang.reflect.Method> |
getMethodsForClassName(java.lang.String className)
|
ValidateDefinition |
getValidateDefinition()
|
boolean |
isFieldsCached()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationClassCache(java.lang.Class clazz,
ValidateDefinition definition,
boolean fieldsCached)
| Method Detail |
|---|
public boolean isFieldsCached()
public ValidateDefinition getValidateDefinition()
public void addAnnotationFieldCache(java.lang.String className,
java.lang.reflect.Field field,
AnnotationFieldCache cacheElement)
field - The field to addcacheElement - The cache elementpublic java.util.Map<java.lang.reflect.Field,AnnotationCache> getAnnotationCacheFields(java.lang.String className)
public java.util.List<java.lang.reflect.Field> getFieldsForClassName(java.lang.String className)
public void addAnnotationMethodCache(java.lang.String className,
java.lang.reflect.Method method,
AnnotationMethodCache cacheElement)
method - The method to addcacheElement - The cache element
public void addAnnotationClassCache(java.lang.String className,
AnnotationClassLevelCache cacheElement)
public java.util.Map<java.lang.reflect.Method,AnnotationCache> getAnnotationCacheMethods(java.lang.String className)
public java.util.List<java.lang.reflect.Method> getMethodsForClassName(java.lang.String className)
public AnnotationBaseCache getAnnotationCacheForClass(java.lang.String className)
className - The classname to look for
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||