public final class ReflectionUtils extends Object
Modifier and Type | Method and Description |
---|---|
static AnnotatedElement |
getAnnotatedElement(Class<?> beanClass,
String propertyName,
Class<?> propertyClass) |
static Field |
getFieldOrNull(Class<?> beanClass,
String propertyName) |
static Set<Field> |
getFields(Class<?> cl) |
static Method |
getGetterOrNull(Class<?> beanClass,
String name) |
static Method |
getGetterOrNull(Class<?> beanClass,
String name,
Class<?> type) |
static Set<Class<?>> |
getImplementedInterfaces(Class<?> cl) |
static Set<Class<?>> |
getSuperClasses(Class<?> cl) |
static Type |
getTypeParameter(Type type,
int index) |
static Class<?> |
getTypeParameterAsClass(Type type,
int index) |
static int |
getTypeParameterCount(Type type) |
public static AnnotatedElement getAnnotatedElement(Class<?> beanClass, String propertyName, Class<?> propertyClass)
@Nullable public static Field getFieldOrNull(Class<?> beanClass, String propertyName)
@Nullable public static Method getGetterOrNull(Class<?> beanClass, String name, Class<?> type)
public static int getTypeParameterCount(Type type)
Copyright © 2007–2015 Mysema Ltd. All rights reserved.