com.esotericsoftware.reflectasm
Class MethodAccess

java.lang.Object
  extended by com.esotericsoftware.reflectasm.MethodAccess

public abstract class MethodAccess
extends java.lang.Object


Constructor Summary
MethodAccess()
           
 
Method Summary
static MethodAccess get(java.lang.Class type)
           
 int getIndex(java.lang.String methodName)
          Returns the index of the first method with the specified name.
 int getIndex(java.lang.String methodName, java.lang.Class... paramTypes)
           
 java.lang.String[] getMethodNames()
           
 java.lang.Class[][] getParameterTypes()
           
abstract  java.lang.Object invoke(java.lang.Object object, int methodIndex, java.lang.Object... args)
           
 java.lang.Object invoke(java.lang.Object object, java.lang.String methodName, java.lang.Object... args)
          Invokes the first method with the specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodAccess

public MethodAccess()
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.Object... args)
Invokes the first method with the specified name.


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)

getMethodNames

public java.lang.String[] getMethodNames()

getParameterTypes

public java.lang.Class[][] getParameterTypes()

get

public static MethodAccess get(java.lang.Class type)