public final class ReflectionHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
assertGetterMethod(Method getterMethod,
Class<? extends Annotation> annotationClass) |
static void |
assertReadMethod(Method readMethod,
Class<? extends Annotation> annotationClass) |
static Method |
getGetterMethod(Class containingClass,
String propertyName) |
static String |
getGetterPropertyName(Member member)
Returns the JavaBeans property name of the given member.
|
static Method |
getSetterMethod(Class containingClass,
Class propertyType,
String propertyName) |
static boolean |
hasGetterMethod(Class containingClass,
String propertyName) |
static boolean |
isGetterMethod(Method method)
Checks whether the given method is a valid getter method according to the JavaBeans standard.
|
static boolean |
isList(Type type) |
static boolean |
isMap(Type type) |
public static String getGetterPropertyName(Member member)
member - never nullpublic static boolean isGetterMethod(Method method)
method - never nullpublic static boolean hasGetterMethod(Class containingClass, String propertyName)
containingClass - never nullpropertyName - never nullpublic static Method getGetterMethod(Class containingClass, String propertyName)
containingClass - never nullpropertyName - never nullpublic static Method getSetterMethod(Class containingClass, Class propertyType, String propertyName)
containingClass - never nullpropertyType - never nullpropertyName - never nullpublic static void assertGetterMethod(Method getterMethod, Class<? extends Annotation> annotationClass)
public static void assertReadMethod(Method readMethod, Class<? extends Annotation> annotationClass)
public static boolean isMap(Type type)
type - never nullMapCopyright © 2006–2016 JBoss by Red Hat. All rights reserved.