public class ClassHelper extends Object
| Constructor and Description |
|---|
ClassHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Method> |
detectAllGetterMethods(Class<?> clazz) |
static List<Field> |
detectAllJavaFields(Class<?> clazz) |
static Class<?> |
detectClassFromTypeArgument(Type type) |
static Class<?> |
detectClassFromTypeArgumentAt(Type type,
int pos) |
static Method |
detectGetterMethod(Class<?> clazz,
String methodName) |
static Method |
detectSetterMethod(Class<?> clazz,
String methodName,
Class<?> paramType) |
static String |
getMethodNameFromFieldName(String fieldName) |
static List<String> |
getterMethodNames(String fieldName) |
static String |
isMethodNameFromFieldName(String fieldName) |
static JavaChildAccessor |
lookupAccessor(Object source,
String name) |
static List<JavaChildAccessor> |
lookupAllAccessors(Object source) |
static Method |
lookupGetterMethod(Object object,
String name) |
static Field |
lookupJavaField(Object source,
String fieldName) |
public static Method detectGetterMethod(Class<?> clazz, String methodName) throws NoSuchMethodException
NoSuchMethodExceptionpublic static Map<String,Method> detectAllGetterMethods(Class<?> clazz) throws Exception
Exceptionpublic static Method detectSetterMethod(Class<?> clazz, String methodName, Class<?> paramType) throws NoSuchMethodException
NoSuchMethodExceptionpublic static Class<?> detectClassFromTypeArgumentAt(Type type, int pos)
public static JavaChildAccessor lookupAccessor(Object source, String name)
public static List<JavaChildAccessor> lookupAllAccessors(Object source) throws Exception
ExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.