public class MethodTypeUtil extends Object
MethodType相关工具类| Constructor and Description |
|---|
MethodTypeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static MethodType |
methodType(Executable executable)
|
static MethodType |
methodType(Executable executable,
Class<?> declaringClass)
|
public static MethodType methodType(Executable executable)
Executable的MethodTypeexecutable - 方法或构造MethodTypepublic static MethodType methodType(Executable executable, Class<?> declaringClass)
Executable的MethodTypeexecutable - 方法或构造declaringClass - 方法或构造对应的类,用于获取其声明的参数类型,如果为null,则使用Executable.getDeclaringClass()MethodTypeCopyright © 2025. All rights reserved.