public class MethodWrap extends Object
| 限定符 | 构造器和说明 |
|---|---|
protected |
MethodWrap(Method m) |
| 限定符和类型 | 方法和说明 |
|---|---|
static MethodWrap |
get(Method method) |
<T extends Annotation> |
getAnnotation(Class<T> clz)
获取注解
|
Annotation[] |
getAnnotations() |
Method |
getMethod()
获取函数本身
|
String |
getName()
获取函数名
|
Parameter[] |
getParameters()
获取函数参数
|
Class<?> |
getReturnType()
获取函数反回类型
|
Object |
invoke(Object obj,
Object... args)
执行
|
Object |
invokeByAspect(Object obj,
Object... args)
执行,并尝试事务
|
protected MethodWrap(Method m)
public static MethodWrap get(Method method)
public String getName()
public Method getMethod()
public Class<?> getReturnType()
public Parameter[] getParameters()
public Annotation[] getAnnotations()
public <T extends Annotation> T getAnnotation(Class<T> clz)
Copyright © 2020. All rights reserved.