Class AccessLevelReflectionUtils


  • public class AccessLevelReflectionUtils
    extends java.lang.Object
    Date: 2/13/2017
    Author:
    Yaron Yamin
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object getField​(java.lang.reflect.Field field, java.lang.Object obj)  
      static void replaceField​(java.lang.reflect.Field field, java.lang.Object newValue)  
      • Methods inherited from class java.lang.Object

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

      • AccessLevelReflectionUtils

        public AccessLevelReflectionUtils()
    • Method Detail

      • replaceField

        public static void replaceField​(java.lang.reflect.Field field,
                                        java.lang.Object newValue)
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getField

        public static java.lang.Object getField​(java.lang.reflect.Field field,
                                                java.lang.Object obj)
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception