androidjnihelper.getfieldid 获取域id

2014-12-31 00:50| 发布者: 杨炎| 查看: 1686| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: androidjnihelper.getfieldid 获取域idstatic functiongetfieldid(javaclass: intptr,fieldname: string,signature: string = "",isstatic: bool = false) : intptrparameters参数javaclassraw jni java class objec ...

androidjnihelper.getfieldid 获取域id

static functiongetfieldid(javaclass: intptr,fieldname: string,signature: string = "",isstatic: bool = false) : intptr

parameters参数

javaclass

raw jni java class object (obtained by callingandroidjni.findclass).

原始jni java类对象。(通过调用androidjni.findclass)

fieldname

name of the field as declared in java.

signature

field signature (e.g. obtained by callingandroidjnihelper.getsignature).

域签名(例如通过调用androidjnihelper.getsignature)。

isstatic

set to true for static methods; false for instance (nonstatic) methods.

设置为true为静态方法;false为实例(非静态)方法。

description描述

scans a particular java class for a field matching a name and a signature.

扫描一个特定的java类,用于一个域匹配一个名字和一个签名。

the signature comparison is done to allow sub-/base-classes of a class types. if no signature is provided the first field with the correct name will be returned.

签名比较是为了允许类的类型的 sub-/base-classes。如果没有提供

签名,具有正确的名称的首个域将被返回。

参见:androidjnihelper.getsignature,androidjnihelper.getconstructorid,androidjnihelper.getmethodid

相关阅读

文章点评
相关文章