Package one.nio.util

Class NativeReflection


  • public class NativeReflection
    extends java.lang.Object
    Allows to get a subset of available Class' fields or methods, when the standard getDeclaredFields() / getDeclaredMethods() fail with NoClassDefFoundError due to some missing class file.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean IS_SUPPORTED  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.reflect.Field[] getFields​(java.lang.Class<?> cls, boolean includeStatic)  
      static java.lang.reflect.Method[] getMethods​(java.lang.Class<?> cls, boolean includeStatic)  
      private static boolean initJVMTI()  
      static void openModules()  
      • Methods inherited from class java.lang.Object

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

      • IS_SUPPORTED

        public static final boolean IS_SUPPORTED
    • Constructor Detail

      • NativeReflection

        public NativeReflection()
    • Method Detail

      • initJVMTI

        private static boolean initJVMTI()
      • getFields

        public static java.lang.reflect.Field[] getFields​(java.lang.Class<?> cls,
                                                          boolean includeStatic)
      • getMethods

        public static java.lang.reflect.Method[] getMethods​(java.lang.Class<?> cls,
                                                            boolean includeStatic)
      • openModules

        public static void openModules()