public class TypeInfer extends Object
Modifier and Type | Method and Description |
---|---|
static int |
allTypeMatch(Class<?>[] sourceClasses,
List<Class<?>[]> targetClassesList,
int type)
类型是否全匹配
|
static <T> T |
invokeInfer(Object o,
List<Method> methods,
Object[] params)
推断调用方法
|
static <T> T |
newInstanceInfer(List<Constructor<T>> constructors,
Object[] params)
推断创建对象
|
public static <T> T newInstanceInfer(List<Constructor<T>> constructors, Object[] params)
constructors
- 构造params
- 参数public static <T> T invokeInfer(Object o, List<Method> methods, Object[] params)
o
- omethods
- 方法params
- 参数Copyright © 2024. All rights reserved.