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
NoSuchMethodException
public static Method getMethod(Class<?> theClass, String methodName, Class<?>[] parameterTypes) throws NoSuchMethodException
NoSuchMethodException
public static Field getField(Class<?> theClass, String fieldName) throws NoSuchFieldException
NoSuchFieldException
Copyright © 2006–2017. All rights reserved.