public class PrivateAccessor extends Object
| Constructor and Description |
|---|
PrivateAccessor() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
get(Object ref,
String field) |
static <T> T |
getStatic(Class<?> clazz,
String field) |
static <T> T |
invoke(Object ref,
String method,
Object... args) |
static <T> T |
invokeStatic(Class<?> clazz,
String method,
Object... args) |
static <T> void |
set(Object ref,
String field,
T value) |
static <T> void |
setStatic(Class<?> clazz,
String field,
T value) |
Copyright © 2021. All rights reserved.