public final class ReflectUtil
extends java.lang.Object
java.lang.reflect-related utility methods.| Modifier and Type | Method and Description |
|---|---|
static java.lang.reflect.Constructor<?> |
getMostSpecificConstructor(java.lang.Class<?> type,
java.lang.Class<?>[] argumentTypes) |
static java.lang.reflect.Method |
getMostSpecificMethod(java.lang.Class<?> targetType,
java.lang.String methodName,
java.lang.Class<?>[] argumentTypes) |
static java.lang.Class<?>[] |
getTypes(java.util.List<java.lang.Object> values) |
public static java.lang.Class<?>[] getTypes(java.util.List<java.lang.Object> values)
valuespublic static java.lang.reflect.Method getMostSpecificMethod(java.lang.Class<?> targetType,
java.lang.String methodName,
java.lang.Class<?>[] argumentTypes)
throws java.lang.NoSuchMethodException
targetTypejava.lang.NoSuchMethodException - No applicable
method existsjava.lang.NoSuchMethodException - Two or more applicable methods exist, and none is more specific
than all otherspublic static java.lang.reflect.Constructor<?> getMostSpecificConstructor(java.lang.Class<?> type,
java.lang.Class<?>[] argumentTypes)
throws java.lang.NoSuchMethodException
typejava.lang.NoSuchMethodException - No applicable
constructor existsjava.lang.NoSuchMethodException - Two or more applicable constructors exist, and none is more
specific than all others