[GCC-XML] JNI variables
Brad King
brad.king at kitware.com
Tue Aug 24 07:18:24 EDT 2004
k a wrote:
> Thanks for your reply. Here's an example of the header file content and the related generated XML output:
>
> ============
> Header File
> ============
> #include <jni.h>
> jobject exampleFunc(JNIEnv *env, jclass clazz, jobject obj);
>
> =========
> XML File
> =========
> <Function id="_3" name="exampleFunc" returns="_67" context="_1" mangled="_Z11exampleFuncP7JNIEnv_P7_jclassP8_jobject" location="f0:3" file="f0" line="3" extern="1">
> <Argument type="_206" />
> <Argument type="_62" />
> <Argument type="_66" />
> </Function>
>
> ...
>
> <PointerType id="_66" type="_82" />
> <Typedef id="_67" name="jobject" type="_66" context="_1" location="f1:78" file="f1" line="78" />
>
> ...
>
> <Class id="_82" name="_jobject" context="_1" mangled="8_jobject" location="f1:63" file="f1" line="63" members="_803 _804" bases="" />
>
> ==============
>
> Well, I guess that's all lead to _jobject (id=82). I guess the question is, could you tell me why jobject is modelled as a PointerType?
It is just what the JNI developers designed. From jni.h:
class _jobject {};
typedef _jobject *jobject;
-Brad
More information about the gccxml
mailing list