Package io.atlasmap.java.core
Class ClassHelper
java.lang.Object
io.atlasmap.java.core.ClassHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetectAllGetterMethods(Class<?> clazz) detectAllJavaFields(Class<?> clazz) static Class<?>static Class<?>detectClassFromTypeArgumentAt(Type type, int pos) static MethoddetectGetterMethod(Class<?> clazz, String methodName) static MethoddetectSetterMethod(Class<?> clazz, String methodName, Class<?> paramType) static StringgetMethodNameFromFieldName(String fieldName) getterMethodNames(String fieldName) static StringisMethodNameFromFieldName(String fieldName) static JavaChildAccessorlookupAccessor(Object source, String name) static List<JavaChildAccessor>lookupAllAccessors(Object source) static MethodlookupGetterMethod(Object object, String name) static FieldlookupJavaField(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
-