Lines Matching refs:Method
34 void printMethodInfo(Method meth) {
38 System.out.println("Method name is " + meth.getName());
85 Method meth;
92 System.err.println("succeeded on package-scope method");
104 System.err.println("inner-method invoke unexpectedly worked");
125 Method meth = null;
159 System.out.println("Calling no-arg void-return method");
163 /* try invoking a method that throws an exception */
411 Method m;
487 Method[] methods = niuClass.getDeclaredMethods();
490 Method method = niuClass.getMethod("staticMethod", (Class[]) null);
491 System.out.println("got method");
492 method.invoke(null);
493 System.out.println("invoked method");
518 Method method;
520 method = Main.class.getMethod("fancyMethod",
525 Type[] parmTypes = method.getGenericParameterTypes();
526 Type ret = method.getGenericReturnType();
527 System.out.println("generic method " + method.getName() + " params='"
581 Method method1, method2;
601 Method method1;
602 Method method2;
603 Method method3;
657 Method method1;
658 Method method2;
659 Method method3;
714 Method.class.getDeclaredConstructor().setAccessible(true);
715 System.out.println("Didn't get an exception from Method.class.getDeclaredConstructor().setAccessible");