1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 10:19:33 +02:00

jmethodID -> Method class

This commit is contained in:
Nikolay Pultsin 2012-03-30 13:33:51 +01:00
parent 181fbe9997
commit daf77393a2
9 changed files with 41 additions and 27 deletions

View file

@ -58,3 +58,14 @@ jlong LongMethod::call(jobject base, ...) {
va_end(lst);
return result;
}
BooleanMethod::BooleanMethod(JNIEnv *env, jclass cls, const std::string &name, const std::string &signature) : Method(env, cls, name, signature + "Z") {
}
jboolean BooleanMethod::call(jobject base, ...) {
va_list lst;
va_start(lst, base);
jboolean result = myEnv->CallBooleanMethod(base, myId, lst);
va_end(lst);
return result;
}