Lines Matching defs:method
31 // Determine whether or not the specified method is public.
35 fprintf(stderr, "Failed to get reflected method\n");
38 // We now have a Method instance. We need to call its
39 // getModifiers() method.
40 jclass method_class = env->FindClass("java/lang/reflect/Method");
42 fprintf(stderr, "Failed to find class java.lang.reflect.Method\n");
47 fprintf(stderr, "Failed to find java.lang.reflect.Method.getModifiers\n");
82 jmethodID method = env->GetStaticMethodID(klass.get(), "main", "([Ljava/lang/String;)V");
83 if (method == nullptr) {
89 // Make sure the method is public. JNI doesn't prevent us from
90 // calling a private method, so we have to check it explicitly.
91 if (!IsMethodPublic(env, klass.get(), method)) {
98 env->CallStaticVoidMethod(klass.get(), method, args.get());