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) |
String[] |
getMethodNames() |
Class[][] |
getParameterTypes() |
abstract Object |
invoke(Object object,
int methodIndex,
Object... args) |
Object |
invoke(Object object,
String methodName,
Object... args)
Invokes the first method with the specified name.
|
public Object invoke(Object object, String methodName, Object... args)
public int getIndex(String methodName)
public String[] getMethodNames()
public Class[][] getParameterTypes()
public static MethodAccess get(Class type)
Copyright © 2015. All rights reserved.