public class Reflect extends Object
| Constructor and Description |
|---|
Reflect() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends AnnotatedElement> |
annotatedBy(Class<? extends Annotation> annotationType) |
static Iterable<Field> |
findAllAnnotatedFields(Class<?> type,
Class<? extends Annotation> annot) |
static Iterable<MethodInvoker> |
findAllAnnotatedInvokables(Class<?> type,
Class<? extends Annotation> annot) |
static Iterable<Method> |
findAllAnnotatedMethods(Class<?> type,
Class<? extends Annotation> annot) |
static Iterable<Field> |
findAllFields(Class<?> type) |
static Iterable<Method> |
findAllMethods(Class<?> type) |
static List<com.google.inject.Key<?>> |
getParameterKeys(com.google.inject.TypeLiteral<?> type,
Method method) |
static Class<?> |
getTargetClass(Class<?> proxy) |
static Class<?> |
getTargetClass(Object instance) |
static boolean |
isAnnotationPresent(AnnotatedElement annotatedElement,
Class<? extends Annotation> annotationType) |
static boolean |
overrides(Method a,
Method b)
Returns true if a overrides b.
|
static com.google.common.base.Predicate<Method> |
withSignature(String methodName,
Class<?>... classes) |
public static boolean isAnnotationPresent(AnnotatedElement annotatedElement, Class<? extends Annotation> annotationType)
public static List<com.google.inject.Key<?>> getParameterKeys(com.google.inject.TypeLiteral<?> type, Method method)
public static Iterable<MethodInvoker> findAllAnnotatedInvokables(Class<?> type, Class<? extends Annotation> annot)
public static Iterable<Method> findAllAnnotatedMethods(Class<?> type, Class<? extends Annotation> annot)
public static Iterable<Field> findAllAnnotatedFields(Class<?> type, Class<? extends Annotation> annot)
public static <T extends AnnotatedElement> com.google.common.base.Predicate<T> annotatedBy(Class<? extends Annotation> annotationType)
public static com.google.common.base.Predicate<Method> withSignature(String methodName, Class<?>... classes)
Copyright © 2010–2015 Mycila. All rights reserved.