Package cn.imaq.autumn.rpc.server.asm
Class MethodAccess
- java.lang.Object
-
- cn.imaq.autumn.rpc.server.asm.MethodAccess
-
public abstract class MethodAccess extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MethodAccess()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static MethodAccessget(java.lang.Class<?> type)java.lang.reflect.Type[][]getGenericTypes()intgetIndex(java.lang.String methodName)Returns the index of the first method with the specified name.intgetIndex(java.lang.String methodName, int paramsCount)Returns the index of the first method with the specified name and the specified number of arguments.intgetIndex(java.lang.String methodName, java.lang.Class... paramTypes)Returns the index of the first method with the specified name and param types.java.lang.String[]getMethodNames()java.lang.Class<?>[][]getParameterTypes()java.lang.Class<?>[]getReturnTypes()abstract java.lang.Objectinvoke(java.lang.Object object, int methodIndex, java.lang.Object... args)java.lang.Objectinvoke(java.lang.Object object, java.lang.String methodName, java.lang.Class<?>[] paramTypes, java.lang.Object... args)Invokes the method with the specified name and the specified param types.java.lang.Objectinvoke(java.lang.Object object, java.lang.String methodName, java.lang.Object... args)Invokes the first method with the specified name and the specified number of arguments.
-
-
-
Method Detail
-
invoke
public abstract java.lang.Object invoke(java.lang.Object object, int methodIndex, java.lang.Object... args)
-
invoke
public java.lang.Object invoke(java.lang.Object object, java.lang.String methodName, java.lang.Class<?>[] paramTypes, java.lang.Object... args)Invokes the method with the specified name and the specified param types.
-
invoke
public java.lang.Object invoke(java.lang.Object object, java.lang.String methodName, java.lang.Object... args)Invokes the first method with the specified name and the specified number of arguments.
-
getIndex
public int getIndex(java.lang.String methodName)
Returns the index of the first method with the specified name.
-
getIndex
public int getIndex(java.lang.String methodName, java.lang.Class... paramTypes)Returns the index of the first method with the specified name and param types.
-
getIndex
public int getIndex(java.lang.String methodName, int paramsCount)Returns the index of the first method with the specified name and the specified number of arguments.
-
getMethodNames
public java.lang.String[] getMethodNames()
-
getParameterTypes
public java.lang.Class<?>[][] getParameterTypes()
-
getGenericTypes
public java.lang.reflect.Type[][] getGenericTypes()
-
getReturnTypes
public java.lang.Class<?>[] getReturnTypes()
-
get
public static MethodAccess get(java.lang.Class<?> type)
-
-