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