Package com.google.common.truth
Class ReflectionUtil
- java.lang.Object
-
- com.google.common.truth.ReflectionUtil
-
@GwtIncompatible("java.lang.reflect.*") public final class ReflectionUtil extends Object
Reflection utility methods.- Author:
- Christian Gruber (cgruber@israfil.net)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Field
getField(Class<?> clazz, String fieldName)
static Class<?>
typeParameter(Class<?> clazz, int paramIndex)
Returns the captured type.
-
-
-
Method Detail
-
typeParameter
public static Class<?> typeParameter(Class<?> clazz, int paramIndex)
Returns the captured type.
-
getField
public static Field getField(Class<?> clazz, String fieldName) throws NoSuchFieldException
- Throws:
NoSuchFieldException
-
-