public class ReflectionUtils extends Object
| Constructor and Description |
|---|
ReflectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Constructor<?> |
getConstructor(Class<?> theClass,
Class<?>[] parameterTypes) |
static Field |
getField(Class<?> theClass,
String fieldName) |
static Method |
getMethod(Class<?> theClass,
String methodName,
Class<?>[] parameterTypes) |
public static Constructor<?> getConstructor(Class<?> theClass, Class<?>[] parameterTypes) throws NoSuchMethodException
NoSuchMethodExceptionpublic static Method getMethod(Class<?> theClass, String methodName, Class<?>[] parameterTypes) throws NoSuchMethodException
NoSuchMethodExceptionpublic static Field getField(Class<?> theClass, String fieldName) throws NoSuchFieldException
NoSuchFieldExceptionCopyright © 2006–2016. All rights reserved.