public class MethodInfo extends Object
MethodInfo class.
| 限定符和类型 | 字段和说明 |
|---|---|
protected Class<?> |
clazz |
protected boolean |
isVarArgs |
protected Long |
key |
protected Method |
method |
protected Class<?>[] |
paraTypes |
| 构造器和说明 |
|---|
MethodInfo(Long key,
Class<?> clazz,
Method method)
Constructor for MethodInfo.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Long |
getKey()
Getter for the field
key. |
String |
getName()
getName.
|
protected Class<?>[] |
getParameterTypes()
getParameterTypes.
|
Object |
invoke(Object target,
Object... args)
invoke.
|
protected Object |
invokeVarArgsMethod(Object target,
Object[] argValues)
invokeVarArgsMethod.
|
boolean |
isStatic()
isStatic.
|
boolean |
isVarArgs()
isVarArgs.
|
String |
toString()
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
invoke.
target - a Object object.args - a Object object.Object object.ReflectiveOperationException - if any.protected Object invokeVarArgsMethod(Object target, Object[] argValues) throws ReflectiveOperationException
invokeVarArgsMethod.
target - a Object object.argValues - an array of Object objects.Object object.ReflectiveOperationException - if any.public boolean isStatic()
isStatic.
public boolean isVarArgs()
isVarArgs.
protected Class<?>[] getParameterTypes()
getParameterTypes.
Class objects.Copyright © 2023. All rights reserved.