Package io.atlasmap.java.core
Class ClassHelper
java.lang.Object
io.atlasmap.java.core.ClassHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondetectAllGetterMethods
(Class<?> clazz) detectAllJavaFields
(Class<?> clazz) static Class<?>
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) 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)
-
Constructor Details
-
ClassHelper
public ClassHelper()
-
-
Method Details
-
getterMethodNames
-
getMethodNameFromFieldName
-
isMethodNameFromFieldName
-
detectGetterMethod
public static Method detectGetterMethod(Class<?> clazz, String methodName) throws NoSuchMethodException - Throws:
NoSuchMethodException
-
detectAllGetterMethods
- Throws:
Exception
-
detectAllJavaFields
-
detectSetterMethod
public static Method detectSetterMethod(Class<?> clazz, String methodName, Class<?> paramType) throws NoSuchMethodException - Throws:
NoSuchMethodException
-
detectClassFromTypeArgument
-
detectClassFromTypeArgumentAt
-
lookupGetterMethod
-
lookupJavaField
-
lookupAccessor
-
lookupAllAccessors
- Throws:
Exception
-