Package one.nio.util
Class NativeReflection
- java.lang.Object
-
- one.nio.util.NativeReflection
-
public class NativeReflection extends java.lang.ObjectAllows 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 booleanIS_SUPPORTED
-
Constructor Summary
Constructors Constructor Description NativeReflection()
-
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 booleaninitJVMTI()static voidopenModules()
-
-
-
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()
-
-