org.truth0.util
Class ReflectionUtil

java.lang.Object
  extended by org.truth0.util.ReflectionUtil

@GwtIncompatible(value="java.lang.reflect.*")
public class ReflectionUtil
extends Object

Reflection utility methods.

Author:
Christian Gruber (cgruber@israfil.net)

Constructor Summary
ReflectionUtil()
           
 
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
 

Constructor Detail

ReflectionUtil

public ReflectionUtil()
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 © 2013. All Rights Reserved.