androidjnihelper.getconstructorid 获取构造函数id

2014-12-31 00:46| 发布者: 杨炎| 查看: 1286| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本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。

相关阅读

文章点评
相关文章