public final class ReflectionUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Class<?> |
determineGenericsType(Class<?> clazz,
Method method,
boolean isReadMethod) |
static Class<?> |
determineGenericsType(Class<?> parentClazz,
PropertyDescriptor propDescriptor) |
static Class<?> |
determineGenericsType(Type type) |
static Method |
findAMethod(Class<?> clazz,
String methodName)
Find a method with concrete string representation of it's parameters
|
static PropertyDescriptor |
findPropertyDescriptor(Class<?> objectClass,
String fieldName,
HintContainer deepIndexHintContainer) |
static DeepHierarchyElement[] |
getDeepFieldHierarchy(Class<?> parentClass,
String field,
HintContainer deepIndexHintContainer) |
static Field |
getFieldFromBean(Class<?> clazz,
String fieldName) |
static Method |
getMethod(Class<?> clazz,
String methodName) |
static Method |
getMethod(Class<?> clazz,
String name,
Class<?>[] parameterTypes) |
static Method |
getMethod(Object obj,
String methodName) |
static Method |
getNonStandardSetter(Class<?> clazz,
String fieldName)
Finds non-standard setters
PropertyUtils.getPropertyDescriptors(java.lang.Class<?>) does
not find. |
static PropertyDescriptor[] |
getPropertyDescriptors(Class<?> objectClass) |
static Object |
invoke(Method method,
Object obj,
Object[] args) |
static <T> T |
newInstance(Class<T> clazz) |
public static PropertyDescriptor findPropertyDescriptor(Class<?> objectClass, String fieldName, HintContainer deepIndexHintContainer)
public static DeepHierarchyElement[] getDeepFieldHierarchy(Class<?> parentClass, String field, HintContainer deepIndexHintContainer)
public static Method findAMethod(Class<?> clazz, String methodName) throws NoSuchMethodException
clazz
- clazz to searchmethodName
- name of method with representation of it's parametersNoSuchMethodException
public static PropertyDescriptor[] getPropertyDescriptors(Class<?> objectClass)
public static Method getMethod(Class<?> clazz, String name, Class<?>[] parameterTypes) throws NoSuchMethodException
NoSuchMethodException
public static <T> T newInstance(Class<T> clazz)
public static Class<?> determineGenericsType(Class<?> parentClazz, PropertyDescriptor propDescriptor)
public static Class<?> determineGenericsType(Class<?> clazz, Method method, boolean isReadMethod)
public static Method getNonStandardSetter(Class<?> clazz, String fieldName)
PropertyUtils.getPropertyDescriptors(java.lang.Class<?>)
does
not find. The non-standard setters include
void
clazz
- The class to find non-standard setters fromfieldName
- The field to find a non-standard setter fornull
Copyright © 2005–2017 dozer. All rights reserved.