Package org.analogweb.util
Class ReflectionUtils
- java.lang.Object
-
- org.analogweb.util.ReflectionUtils
-
public final class ReflectionUtils extends Object
- Author:
- snowgoose
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ReflectionUtils.TypeFilter
-
Constructor Summary
Constructors Constructor Description ReflectionUtils()
-
Method Summary
-
-
-
Method Detail
-
getMethodParameterAnnotation
public static <T extends Annotation> T getMethodParameterAnnotation(Method method, Class<T> annotationClass, int parameterIndex)
-
getInstanceQuietly
public static <T> T getInstanceQuietly(Class<T> clazz)
-
getInstanceQuietly
public static Object getInstanceQuietly(Constructor<?> constructor, Object... args)
-
getInstanceQuietly
public static <T> T getInstanceQuietly(Class<T> type, Constructor<?> constructor, Object... args)
-
filterClassAsImplementsInterface
public static <T> List<Class<T>> filterClassAsImplementsInterface(Class<T> filteringType, Collection<Class<?>> collectedClasses)
-
filterClassAsImplementsInterface
public static <T> List<Class<T>> filterClassAsImplementsInterface(Class<T> filteringType, Collection<Class<?>> collectedClasses, ReflectionUtils.TypeFilter typeFilter)
-
writeValueToField
public static void writeValueToField(String fieldName, Object instance, Object value)
-
setAccessible
public static void setAccessible(Field field)
-
getValueOfField
public static Object getValueOfField(String fieldName, int modifier, Object instance)
-
getMethodQuietly
public static Method getMethodQuietly(Class<?> clazz, String methodName, Class<?>[] parameterTypes)
-
getInvocationMethodDefault
public static Method getInvocationMethodDefault(InvocationMetadata metadata)
-
nop
public void nop()
-
getInvocationMethod
public static Method getInvocationMethod(InvocationMetadata metadata)
-
findAllImplementsInterfacesRecursivery
public static Set<Class<?>> findAllImplementsInterfacesRecursivery(Class<?> find)
-
findParameterizedType
public static ParameterizedType findParameterizedType(Class<?> clazz)
-
-