Package one.nio.util

Class NativeReflection


  • public class NativeReflection
    extends 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 Detail

      • IS_SUPPORTED

        public static final boolean IS_SUPPORTED
    • Constructor Detail

      • NativeReflection

        public NativeReflection()
    • Method Detail

      • getFields

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

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

        public static void openModules()