public final class Reflections extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
canAssign(Class<?> to,
Class<?> from) |
static Object |
getAnnotationAttribute(Annotation annot,
String attributeName) |
static Method |
getCompatibleMethod(Class<?> c,
String methodName,
Class<?>... paramTypes) |
static Method |
getCompatibleMethodCached(Class<?> c,
String methodName,
Class<?>... paramTypes) |
static Object |
invoke(Method m,
Object object,
Object[] parameters) |
static Class<?> |
primitiveToWrapper(Class<?> clasz) |
public static Object getAnnotationAttribute(@Nonnull Annotation annot, @Nonnull String attributeName)
public static Method getCompatibleMethod(Class<?> c, String methodName, Class<?>... paramTypes)
public static Object invoke(Method m, Object object, Object[] parameters) throws IllegalAccessException, InvocationTargetException
Copyright © 2014. All rights reserved.