overloading JNI return values
| From: | Brian Schaffner | Date: | Tue, 29 Jun 1999 17:33:39 +0000 |
| Subject: | overloading JNI return values | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-7816@lists.php.net to get a copy of this message | ||
i've got a handle on the zend external API now ....
the latest question is:
the java nata interface API expects you to know the return type for
the methods that you invoke on a particular java class. in fact, it expects
you to use something like this:
CallStaticVoidMethod()
CallStaticBooleanMethod()
CallObjectMethod()
CallFloatMethod()
CallNonvirtualIntMethod()
CallNonvirtualLongMethod()
so, if within PHP we do:
$x = new JAVA("MyClass");
$y = $x->MyMethod();
how do we know which JNI function to use? the only things I can think of
seem like hacks:
$y = (int) $x->MyMethod();
$y = $x->iMyMethod();
$y = $x->MyMethod(...,"int")
anybody got an idea here?
-brian-