Class MethodReflectionUtils

java.lang.Object
com.weirddev.testme.intellij.common.reflection.MethodReflectionUtils

public class MethodReflectionUtils extends Object
Date: 30/12/2017
Author:
Yaron Yamin
  • Constructor Details

    • MethodReflectionUtils

      public MethodReflectionUtils()
  • Method Details

    • getReturnTypeReflectively

      @Nullable public static <T> T getReturnTypeReflectively(Object object, Class ownerClass, Class<T> returnClass, @Nullable @Nullable String methodName, Object... params)
    • invokeMethodReflectivelyWithFallback

      @Nullable public static <T> T invokeMethodReflectivelyWithFallback(Object owner, Class<T> returnClass, String methodName, @Nullable @Nullable String fallbackMethodName)