Package one.nio.util

Class NativeReflection

java.lang.Object
one.nio.util.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 Details

    • IS_SUPPORTED

      public static final boolean IS_SUPPORTED
  • Constructor Details

    • NativeReflection

      public NativeReflection()
  • Method Details

    • getFields

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

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

      public static void openModules()