Package com.skava.report.util
Class ReflectionUtils
java.lang.Object
com.skava.report.util.ReflectionUtils
This class defines ReflectionUtils
- Since:
- Jul 4, 2018
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Method
Get method from Class type with parameter typestatic org.springframework.core.MethodParameter
getMethodParameter
(Class<?> clazz, String methodName, Class<?> parameterType, int parameterIndex) Get Method Parameter of a method from class type
-
Constructor Details
-
ReflectionUtils
public ReflectionUtils()
-
-
Method Details
-
getMethod
Get method from Class type with parameter type- Parameters:
clazz
- type of classmethodName
- name of methodparameterType
- type of parameter- Returns:
Method
-
getMethodParameter
public static org.springframework.core.MethodParameter getMethodParameter(Class<?> clazz, String methodName, Class<?> parameterType, int parameterIndex) Get Method Parameter of a method from class type- Parameters:
clazz
- type of classmethodName
- name of methodparameterType
- type of parameterparameterIndex
- index of parameter- Returns:
MethodParameter
-