Java tutorial
//package com.java2s; import java.lang.reflect.Type; public class Main { public static Type getMethodType(Class<?> paramClass, String paramString) { try { Type localType = paramClass.getMethod(paramString, new Class[0]).getGenericReturnType(); return localType; } catch (Exception localException) { } return null; } }