org.ektorp.util
Class ReflectionUtils
java.lang.Object
org.ektorp.util.ReflectionUtils
public class ReflectionUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectionUtils
public ReflectionUtils()
findAnnotation
public static <T extends Annotation> T findAnnotation(Class<?> clazz,
Class<T> annotationClass,
Predicate<Field> p)
eachField
public static Collection<Field> eachField(Class<?> clazz,
Predicate<Field> p)
eachMethod
public static Collection<Method> eachMethod(Class<?> clazz,
Predicate<Method> p)
eachAnnotation
public static <T extends Annotation> void eachAnnotation(Class<?> clazz,
Class<T> annotationClass,
Predicate<T> p)
findMethod
public static Method findMethod(Class<?> clazz,
String name)
- Ignores case when comparing method names
- Parameters:
clazz
- name
-
- Returns:
hasAnnotation
public static boolean hasAnnotation(AnnotatedElement e,
Class<? extends Annotation> annotationClass)
Copyright © 2011. All Rights Reserved.