public final class ReflectUtil extends Object
java.lang.reflect-related utility methods.| Modifier and Type | Method and Description |
|---|---|
static Constructor<?> |
getMostSpecificConstructor(Class<?> type,
Class<?>[] argumentTypes) |
static Method |
getMostSpecificMethod(Class<?> targetType,
String methodName,
Class<?>[] argumentTypes) |
static Class<?>[] |
getTypes(List<Object> values) |
public static Method getMostSpecificMethod(Class<?> targetType, String methodName, Class<?>[] argumentTypes) throws NoSuchMethodException
targetTypeNoSuchMethodException - No applicable
method existsNoSuchMethodException - Two or more applicable methods exist, and none is more specific
than all otherspublic static Constructor<?> getMostSpecificConstructor(Class<?> type, Class<?>[] argumentTypes) throws NoSuchMethodException
typeNoSuchMethodException - No applicable
constructor existsNoSuchMethodException - Two or more applicable constructors exist, and none is more
specific than all othersCopyright © 2016 Arno Unkrig. All rights reserved.