< prev index next >

src/java.base/share/classes/jdk/internal/reflect/MethodAccessor.java

Print this page

20  *
21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22  * or visit www.oracle.com if you need additional information or have any
23  * questions.
24  */
25 
26 package jdk.internal.reflect;
27 
28 import java.lang.reflect.InvocationTargetException;
29 
30 /** This interface provides the declaration for
31     java.lang.reflect.Method.invoke(). Each Method object is
32     configured with a (possibly dynamically-generated) class which
33     implements this interface.
34 */
35 
36 public interface MethodAccessor {
37     /** Matches specification in {@link java.lang.reflect.Method} */
38     public Object invoke(Object obj, Object[] args)
39         throws IllegalArgumentException, InvocationTargetException;



40 }

20  *
21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22  * or visit www.oracle.com if you need additional information or have any
23  * questions.
24  */
25 
26 package jdk.internal.reflect;
27 
28 import java.lang.reflect.InvocationTargetException;
29 
30 /** This interface provides the declaration for
31     java.lang.reflect.Method.invoke(). Each Method object is
32     configured with a (possibly dynamically-generated) class which
33     implements this interface.
34 */
35 
36 public interface MethodAccessor {
37     /** Matches specification in {@link java.lang.reflect.Method} */
38     public Object invoke(Object obj, Object[] args)
39         throws IllegalArgumentException, InvocationTargetException;
40 
41     public Object invoke(Object obj, Object[] args, Class<?> caller)
42             throws IllegalArgumentException, InvocationTargetException;
43 }
< prev index next >