public class ReflectionUtils extends Object
| Constructor and Description |
|---|
ReflectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<List<Annotation>> |
findAndMergeParameterAnnotations(Method method)
Utility function to find all annotations on the parameters of the specified method and merge them with the same
annotations on all base classes and interfaces.
|
static Method |
findMethodByParamTypeNames(Class<?> clazz,
String methodName,
List<String> paramTypeNames) |
static Method |
findMethodByParamTypes(Class<?> clazz,
String methodName,
Class<?>[] parameterTypes) |
static List<Method> |
findMethodsByName(Class<?> clazz,
String methodName) |
static Method |
getStaticMethodFromSuperInterfaces(Class<?> clazz,
String methodName) |
static String[] |
toDatatypeNames(Class<?>... types) |
static Class<?>[] |
toJavaClasses(String... typeNames) |
public static List<Method> findMethodsByName(Class<?> clazz, String methodName) throws NoSuchMethodException
NoSuchMethodExceptionpublic static Method findMethodByParamTypes(Class<?> clazz, String methodName, Class<?>[] parameterTypes) throws NoSuchMethodException
NoSuchMethodExceptionpublic static Method findMethodByParamTypeNames(Class<?> clazz, String methodName, List<String> paramTypeNames) throws NoSuchMethodException
NoSuchMethodExceptionpublic static List<List<Annotation>> findAndMergeParameterAnnotations(Method method)
method - the method in questionpublic static Method getStaticMethodFromSuperInterfaces(Class<?> clazz, String methodName) throws NoSuchMethodException
NoSuchMethodExceptionCopyright © 2021. All rights reserved.