Class ReflectionUtils


  • public final class ReflectionUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static @NotNull java.util.Optional<java.lang.reflect.Field> findField​(@NotNull java.lang.Class<?> cl, @NotNull java.lang.String name)  
      static @NotNull java.util.Optional<java.lang.reflect.Method> findGetter​(@NotNull java.lang.Class<?> cl, @NotNull java.lang.String propertyName)  
      static void makeAccessible​(@NotNull java.lang.reflect.Executable obj)  
      • Methods inherited from class java.lang.Object

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

      • findField

        @NotNull
        public static @NotNull java.util.Optional<java.lang.reflect.Field> findField​(@NotNull
                                                                                     @NotNull java.lang.Class<?> cl,
                                                                                     @NotNull
                                                                                     @NotNull java.lang.String name)
      • findGetter

        @NotNull
        public static @NotNull java.util.Optional<java.lang.reflect.Method> findGetter​(@NotNull
                                                                                       @NotNull java.lang.Class<?> cl,
                                                                                       @NotNull
                                                                                       @NotNull java.lang.String propertyName)
      • makeAccessible

        public static void makeAccessible​(@NotNull
                                          @NotNull java.lang.reflect.Executable obj)
                                   throws java.lang.SecurityException
        Throws:
        java.lang.SecurityException