找回密碼
 注冊帳號

掃一掃,訪問微社區

androidjnihelper.getconstructorid 獲取構造函數id

2014-12-31 00:46| 發布者: 楊炎| 查看: 1532| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: androidjnihelper.getconstructorid 獲取構造函數idstatic functiongetconstructorid(javaclass: intptr,signature: string = "") : intptrparameters參數javaclassraw jni java class object (obtained by callinga ...

androidjnihelper.getconstructorid 獲取構造函數id

static functiongetconstructorid(javaclass: intptr,signature: string = "") : intptr

parameters參數

javaclass

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

原始jni java類對象。(通過調用androidjni.findclass)

signature

constructor method signature (e.g. obtained by callingandroidjnihelper.getsignature).

構造函數的方法簽名(例如,通過調用androidjnihelper.getsignature)

description描述

scans a particular java class for a constructor method matching a signature.

掃描一個特定的java類,用于一個構造方法匹配的簽名。

the signature comparison is done to allow for sub-/base-classes of the class types. if no signature is provided the first constuctor found will be returned.

簽名比較是為了類的類型的sub-/base-classes。如果沒有提供

簽名,首次構造發現將被返回。

參見:androidjnihelper.getsignature,androidjnihelper.getmethodid,androidjnihelper.getfieldid

o static functiongetconstructorid(jclass: system.intptr,args: object[]) : system.intptr

parameters參數

javaclass

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

原始jni java類對象。(通過調用androidjni.findclass)

args

array with parameters to be passed to the constructor when invoked.

當調用時,帶有參數的陣列傳遞到構造函數

description描述

get a jni method id for a constructor based on calling arguments.

獲取一個jni方法id,用于一個根據調用參數的構造函數。

scans a particular java class for a constructor method matching a signature based on passed arguments. the signature comparison is done to allow for sub-/base-classes of the class types.

掃描一個特定的java類,用于一個構造方法匹配的簽名,根據傳遞參數。簽名比較是為了類的類型的sub-/base-classes。

相關閱讀

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