com.google.common.truth
Class ReflectionUtil

java.lang.Object
  extended by 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)

Method Summary
static Field getField(Class<?> clazz, String fieldName)
           
static Class<?> typeParameter(Class<?> clazz, int paramIndex)
          Returns the captured type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 2014. All rights reserved.