public final class ReflectionUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
privateField(java.lang.Object obj,
java.lang.String name) |
static void |
privateField(java.lang.Object obj,
java.lang.String name,
java.lang.Object value) |
static java.lang.Object |
privateStaticField(java.lang.Class<?> cls,
java.lang.String name) |
static void |
privateStaticField(java.lang.Class<?> cls,
java.lang.String name,
java.lang.Object value) |
public static java.lang.Object privateField(java.lang.Object obj, java.lang.String name) throws java.lang.Exception
java.lang.Exception
public static void privateField(java.lang.Object obj, java.lang.String name, java.lang.Object value) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object privateStaticField(java.lang.Class<?> cls, java.lang.String name) throws java.lang.Exception
java.lang.Exception
public static void privateStaticField(java.lang.Class<?> cls, java.lang.String name, java.lang.Object value) throws java.lang.Exception
java.lang.Exception