Class MethodAccess


  • public abstract class MethodAccess
    extends Object
    • Constructor Detail

      • MethodAccess

        public MethodAccess()
    • Method Detail

      • invoke

        public abstract Object invoke​(Object object,
                                      int methodIndex,
                                      Object... args)
      • invoke

        public Object invoke​(Object object,
                             String methodName,
                             Class[] paramTypes,
                             Object... args)
        Invokes the method with the specified name and the specified param types.
      • invoke

        public Object invoke​(Object object,
                             String methodName,
                             Object... args)
        Invokes the first method with the specified name and the specified number of arguments.
      • getIndex

        public int getIndex​(String methodName)
        Returns the index of the first method with the specified name.
      • getIndex

        public int getIndex​(String methodName,
                            Class... paramTypes)
        Returns the index of the first method with the specified name and param types.
      • getIndex

        public int getIndex​(String methodName,
                            int paramsCount)
        Returns the index of the first method with the specified name and the specified number of arguments.
      • getMethodNames

        public String[] getMethodNames()
      • getParameterTypes

        public Class[][] getParameterTypes()
      • getReturnTypes

        public Class[] getReturnTypes()