Class ReflectionUtils

java.lang.Object
com.skava.report.util.ReflectionUtils

public class ReflectionUtils extends Object
This class defines ReflectionUtils
Since:
Jul 4, 2018
Author:
Infosys Equinox
  • Constructor Details

    • ReflectionUtils

      public ReflectionUtils()
  • Method Details

    • getMethod

      public static Method getMethod(Class<?> clazz, String methodName, Class<?> parameterType)
      Get method from Class type with parameter type
      Parameters:
      clazz - type of class
      methodName - name of method
      parameterType - 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 class
      methodName - name of method
      parameterType - type of parameter
      parameterIndex - index of parameter
      Returns:
      MethodParameter