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,
BeanContainer beanContainer)
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, BeanContainer beanContainer) throws NoSuchMethodException
clazz - clazz to searchmethodName - name of method with representation of it's parametersbeanContainer - beanContainer instanceNoSuchMethodException - if no method foundpublic static PropertyDescriptor[] getPropertyDescriptors(Class<?> objectClass)
public static Method getMethod(Class<?> clazz, String name, Class<?>[] parameterTypes) throws NoSuchMethodException
NoSuchMethodExceptionpublic 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:
voidclazz - The class to find non-standard setters fromfieldName - The field to find a non-standard setter fornullCopyright © 2005–2021 dozer. All rights reserved.