Class Reflection


  • final class Reflection
    extends java.lang.Object
    Package-private reflection code.
    • Constructor Summary

      Constructors 
      Constructor Description
      Reflection()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static java.lang.Object getUnchecked​(java.lang.reflect.Field field, java.lang.Object obj)
      Delegates to Field.get(Object) and rethrows IllegalAccessException as IllegalArgumentException.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Reflection

        Reflection()
    • Method Detail

      • getUnchecked

        static java.lang.Object getUnchecked​(java.lang.reflect.Field field,
                                             java.lang.Object obj)
        Delegates to Field.get(Object) and rethrows IllegalAccessException as IllegalArgumentException.
        Parameters:
        field - The receiver of the get call.
        obj - The argument of the get call.
        Returns:
        The result of the get call.
        Throws:
        java.lang.IllegalArgumentException - Thrown after catching IllegalAccessException.