public abstract class MethodAccess extends Object
| 构造器和说明 |
|---|
MethodAccess() |
| 限定符和类型 | 方法和说明 |
|---|---|
static MethodAccess |
create(Class type)
Creates a new MethodAccess for the specified type.
|
static MethodAccess |
get(Class type) |
List<Type[]> |
getGenericParameterTypes() |
List<Type> |
getGenericReturnTypes() |
int |
getIndex(String methodName)
Returns the index of the first method with the specified name.
|
int |
getIndex(String methodName,
Class... paramTypes)
Returns the index of the first method with the specified name and param types.
|
int |
getIndex(String methodName,
int paramsCount)
Returns the index of the first method with the specified name and the specified number of arguments.
|
List<String> |
getMethodNames() |
List<Class[]> |
getParameterTypes() |
List<Class> |
getReturnTypes() |
abstract Object |
invoke(Object object,
int methodIndex,
Object... args) |
Object |
invoke(Object object,
String methodName,
Class[] paramTypes,
Object... args)
Invokes the method with the specified name and the specified param types.
|
Object |
invoke(Object object,
String methodName,
Object... args)
Invokes the first method with the specified name and the specified number of arguments.
|
public Object invoke(Object object, String methodName, Class[] paramTypes, Object... args)
public Object invoke(Object object, String methodName, Object... args)
public int getIndex(String methodName)
public int getIndex(String methodName, Class... paramTypes)
public int getIndex(String methodName, int paramsCount)
public static MethodAccess get(Class type)
public static MethodAccess create(Class type)
type - Must not be a primitive type, or void.Copyright © 2024 fossc. All rights reserved.