public class MethodInfo extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected Class<?> |
clazz |
protected boolean |
isVarArgs |
protected Long |
key |
protected Method |
method |
protected Class<?>[] |
paraTypes |
| 限定符 | 构造器和说明 |
|---|---|
protected |
MethodInfo()
仅供 NullMethodInfo 继承使用
|
|
MethodInfo(Long key,
Class<?> clazz,
Method method) |
| 限定符和类型 | 方法和说明 |
|---|---|
Long |
getKey() |
String |
getName() |
protected Class<?>[] |
getParameterTypes() |
Object |
invoke(Object target,
Object... args) |
protected Object |
invokeVarArgsMethod(Object target,
Object[] argValues) |
boolean |
isStatic() |
boolean |
isVarArgs() |
boolean |
notNull()
仅仅 NullMethodInfo 会覆盖此方法并返回 false
1:MethodKit.getMethod(...)
|
String |
toString() |
protected final Long key
protected final Class<?> clazz
protected final Method method
protected final boolean isVarArgs
protected final Class<?>[] paraTypes
public Object invoke(Object target, Object... args) throws ReflectiveOperationException
protected Object invokeVarArgsMethod(Object target, Object[] argValues) throws ReflectiveOperationException
public Long getKey()
public String getName()
public boolean isStatic()
public boolean isVarArgs()
protected Class<?>[] getParameterTypes()
public boolean notNull()
Copyright © 2024. All rights reserved.