public final class ReflectionUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ReflectionUtils.TypeFilter |
| Constructor and Description |
|---|
ReflectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<Class<T>> |
filterClassAsImplementsInterface(Class<T> filteringType,
Collection<Class<?>> collectedClasses) |
static <T> List<Class<T>> |
filterClassAsImplementsInterface(Class<T> filteringType,
Collection<Class<?>> collectedClasses,
ReflectionUtils.TypeFilter typeFilter) |
static Set<Class<?>> |
findAllImplementsInterfacesRecursivery(Class<?> find) |
static ParameterizedType |
findParameterizedType(Class<?> clazz) |
static Field |
getAccessibleField(Class<?> targetClass,
String fieldName) |
static List<Class<?>> |
getCallerClasses() |
static List<Class<?>> |
getCallerClasses(Thread thread) |
static <T> T |
getInstanceQuietly(Class<T> clazz) |
static <T> T |
getInstanceQuietly(Class<T> type,
Constructor<?> constructor,
Object... args) |
static Object |
getInstanceQuietly(Constructor<?> constructor,
Object... args) |
static Method |
getInvocationMethod(InvocationMetadata metadata) |
static Method |
getInvocationMethodDefault(InvocationMetadata metadata) |
static <T extends Annotation> |
getMethodParameterAnnotation(Method method,
Class<T> annotationClass,
int parameterIndex) |
static Method |
getMethodQuietly(Class<?> clazz,
String methodName,
Class<?>[] parameterTypes) |
static Method[] |
getMethods(Class<?> clazz) |
static Object |
getValueOfField(String fieldName,
int modifier,
Object instance) |
void |
nop() |
static void |
setAccessible(Field field) |
static void |
writeValueToField(Field field,
Object instance,
Object value) |
static void |
writeValueToField(String fieldName,
Object instance,
Object value) |
public static <T extends Annotation> T getMethodParameterAnnotation(Method method, Class<T> annotationClass, int parameterIndex)
public static <T> T getInstanceQuietly(Class<T> clazz)
public static Object getInstanceQuietly(Constructor<?> constructor, Object... args)
public static <T> T getInstanceQuietly(Class<T> type, Constructor<?> constructor, Object... args)
public static <T> List<Class<T>> filterClassAsImplementsInterface(Class<T> filteringType, Collection<Class<?>> collectedClasses)
public static <T> List<Class<T>> filterClassAsImplementsInterface(Class<T> filteringType, Collection<Class<?>> collectedClasses, ReflectionUtils.TypeFilter typeFilter)
public static void writeValueToField(String fieldName, Object instance, Object value)
public static void setAccessible(Field field)
public static Object getValueOfField(String fieldName, int modifier, Object instance)
public static Method getMethodQuietly(Class<?> clazz, String methodName, Class<?>[] parameterTypes)
public static Method getInvocationMethodDefault(InvocationMetadata metadata)
public void nop()
public static Method getInvocationMethod(InvocationMetadata metadata)
public static Set<Class<?>> findAllImplementsInterfacesRecursivery(Class<?> find)
public static ParameterizedType findParameterizedType(Class<?> clazz)
Copyright © 2011-2017 Analog Web Framework Development Team. All Rights Reserved.