Class GenericsUtils
- java.lang.Object
-
- com.logicaldoc.webservice.doc.util.GenericsUtils
-
public class GenericsUtils extends Object
Get a variable's java type, or a collection's generic type
For Example,
"String a" => String.class, and "List<Integer> b" => Integer.class
-
-
Constructor Summary
Constructors Constructor Description GenericsUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Class<?>
getFieldGenericType(Field field)
static String
getMethodGenericParameterName(Method method, int paramIndex)
static Class<?>
getMethodGenericParameterTypes(Method method, int paramIndex)
static Class<?>
getMethodGenericReturnType(Method method)
-