Package io.atlasmap.java.core
Class ClassHelper
- java.lang.Object
-
- io.atlasmap.java.core.ClassHelper
-
public class ClassHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description ClassHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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 MethoddetectGetterMethod(Class<?> clazz, String methodName)static MethoddetectSetterMethod(Class<?> clazz, String methodName, Class<?> paramType)static StringgetMethodNameFromFieldName(String fieldName)static List<String>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)
-
-
-
Method Detail
-
detectGetterMethod
public static Method detectGetterMethod(Class<?> clazz, String methodName) throws NoSuchMethodException
- Throws:
NoSuchMethodException
-
detectAllGetterMethods
public static Map<String,Method> detectAllGetterMethods(Class<?> clazz) throws Exception
- Throws:
Exception
-
detectSetterMethod
public static Method detectSetterMethod(Class<?> clazz, String methodName, Class<?> paramType) throws NoSuchMethodException
- Throws:
NoSuchMethodException
-
detectClassFromTypeArgumentAt
public static Class<?> detectClassFromTypeArgumentAt(Type type, int pos)
-
lookupAccessor
public static JavaChildAccessor lookupAccessor(Object source, String name)
-
lookupAllAccessors
public static List<JavaChildAccessor> lookupAllAccessors(Object source) throws Exception
- Throws:
Exception
-
-