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:
parent
181fbe9997
commit
daf77393a2
9 changed files with 41 additions and 27 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue