public class Whitebox
extends java.lang.Object
Constructor and Description |
---|
Whitebox() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
getInternalState(java.lang.Object object,
java.lang.String fieldName) |
static java.lang.Class<?> |
getType(java.lang.Object object) |
static <T> T |
invokeMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Object... arguments) |
static <T> T |
invokeMethod(java.lang.Object object,
java.lang.String methodName,
java.lang.Object... arguments) |
static void |
setInternalState(java.lang.Object object,
java.lang.String fieldName,
java.lang.Object value) |
public static <T> T getInternalState(java.lang.Object object, java.lang.String fieldName)
public static void setInternalState(java.lang.Object object, java.lang.String fieldName, java.lang.Object value)
public static <T> T invokeMethod(java.lang.Object object, java.lang.String methodName, java.lang.Object... arguments)
public static <T> T invokeMethod(java.lang.Class<?> clazz, java.lang.String methodName, java.lang.Object... arguments)
public static java.lang.Class<?> getType(java.lang.Object object)