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