public abstract class MethodAccess extends Object
Constructor and Description |
---|
MethodAccess() |
Modifier and Type | Method and Description |
---|---|
static MethodAccess |
get(Class type) |
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.
|
String[] |
getMethodNames() |
Class[][] |
getParameterTypes() |
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 String[] getMethodNames()
public Class[][] getParameterTypes()
public Class[] getReturnTypes()
public static MethodAccess get(Class type)
Copyright © 2017. All rights reserved.