com.google.common.truth
Class ReflectionUtil
java.lang.Object
com.google.common.truth.ReflectionUtil
@GwtIncompatible(value="java.lang.reflect.*")
public final class ReflectionUtil
- extends Object
Reflection utility methods.
- Author:
- Christian Gruber (cgruber@israfil.net)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Copyright © 2014. All rights reserved.