5 Java_calls_docall (JNIEnv
*env
, jobject _this
)
22 klass
= (*env
)->GetObjectClass (env
, _this
);
23 super
= (*env
)->GetSuperclass (env
, klass
);
25 method
= (*env
)->GetMethodID (env
, klass
, "byte_f", "()B");
26 b
= (*env
)->CallByteMethod (env
, _this
, method
);
30 method
= (*env
)->GetMethodID (env
, klass
, "char_f", "(I)C");
32 c
= (*env
)->CallCharMethodA (env
, _this
, method
, &val
);
36 method
= (*env
)->GetMethodID (env
, super
, "int_f", "()I");
37 i
= (*env
)->CallNonvirtualIntMethod (env
, _this
, super
, method
);
41 i
= (*env
)->CallIntMethod (env
, _this
, method
);
45 method
= (*env
)->GetStaticMethodID (env
, klass
, "long_f", "(J)J");
46 l
= (*env
)->CallStaticLongMethod (env
, klass
, method
, (jlong
) 10);
50 method
= (*env
)->GetStaticMethodID (env
, klass
, "longpb_f", "(BJBJBJ)J");
51 l
= (*env
)->CallStaticLongMethod (env
, klass
, method
, (jbyte
) 13, (jlong
) 3,
52 (jbyte
) 13, (jlong
) 3, (jbyte
) 13, (jlong
) 4);
56 method
= (*env
)->GetMethodID (env
, klass
, "void_f", "()V");
57 (*env
)->CallVoidMethod (env
, _this
, method
);
59 method
= (*env
)->GetStaticMethodID (env
, klass
, "short_f", "()S");
60 s
= (*env
)->CallStaticShortMethod (env
, klass
, method
);
64 method
= (*env
)->GetMethodID (env
, klass
, "double_f", "()D");
65 d
= (*env
)->CallDoubleMethod (env
, _this
, method
);
69 method
= (*env
)->GetMethodID (env
, klass
, "float_f", "()F");
70 f
= (*env
)->CallFloatMethod (env
, _this
, method
);