public class Reflection extends Object
Modifier and Type | Method and Description |
---|---|
static Field |
getDeclaredField(Class<?> clazz,
String fieldName) |
static Object |
getFieldValue(Field field,
Object obj) |
static Method |
getMethod(Class<?> clazz,
String methodName) |
static <T> T |
invoke(Method method,
Object obj) |
static <T> T |
invokeWithDefault(Method method,
Object obj,
T defaultValue) |
Copyright © 2011–2017 Glowroot contributors. All rights reserved.