找回密碼
 注冊帳號

掃一掃,訪問微社區

androidjnihelper.getfieldid 獲取域id

2014-12-31 00:50| 發布者: 楊炎| 查看: 1805| 評論: 0|原作者: 蠻牛|來自: unity3d腳本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

相關閱讀

文章點評
相關文章
女校游泳队彩金