androidjnihelper.getmethodid 获取方法id

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

摘要: androidjnihelper.getmethodid 获取方法idstatic functiongetmethodid(javaclass: intptr,methodname: string,signature: string = "",isstatic: bool = false) : intptrparameters参数javaclassraw jni java class ...

androidjnihelper.getmethodid 获取方法id

static functiongetmethodid(javaclass: intptr,methodname: string,signature: string = "",isstatic: bool = false) : intptr

parameters参数

javaclass

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

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

methodname

name of the method as declared in java.

在java所声明的方法名。

signature

method 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 method 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 method with the correct name will be returned.

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

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

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

相关阅读

文章点评
相关文章