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 |
getNonVoidSetter(Class<?> clazz,
String fieldName) |
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)
Copyright © 2005-2014 dozer. All Rights Reserved.