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