|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.reflections.ReflectionUtils
public abstract class ReflectionUtils
convenient reflection methods
| Constructor Summary | |
|---|---|
ReflectionUtils()
|
|
| Method Summary | ||
|---|---|---|
protected static boolean |
areAnnotationMembersMatcing(java.lang.annotation.Annotation annotation1,
java.lang.reflect.AnnotatedElement annotatedElement)
checks for annotation member values matching on an annotated element or it's first annotated super type, based on equlaity of members |
|
static
|
getAllSuperTypes(java.lang.Class<T> type)
|
|
static java.util.List<java.lang.reflect.AnnotatedElement> |
getAllSuperTypesAnnotatedWith(java.lang.reflect.AnnotatedElement annotatedElement,
java.lang.annotation.Annotation annotation)
return all super types of a given annotated element annotated with a given annotation up in hierarchy, including the given type |
|
protected static
|
getMatchingAnnotations(java.util.Set<T> annotatedElements,
java.lang.annotation.Annotation annotation)
returns a subset of given annotatedWith, where annotation member values matches the given annotation |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectionUtils()
| Method Detail |
|---|
public static <T> java.util.Collection<? extends java.lang.Class<?>> getAllSuperTypes(java.lang.Class<T> type)
public static java.util.List<java.lang.reflect.AnnotatedElement> getAllSuperTypesAnnotatedWith(java.lang.reflect.AnnotatedElement annotatedElement,
java.lang.annotation.Annotation annotation)
protected static boolean areAnnotationMembersMatcing(java.lang.annotation.Annotation annotation1,
java.lang.reflect.AnnotatedElement annotatedElement)
override this to adopt a different annotation member values matching strategy
protected static <T extends java.lang.reflect.AnnotatedElement> java.util.Set<T> getMatchingAnnotations(java.util.Set<T> annotatedElements,
java.lang.annotation.Annotation annotation)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||