AndroidJNIHelper 安卓JNI辅助器


Helper interface for JNI interaction; signature creation and method lookups

用于和JNI互动的辅助器接口;创建签名和查找方法。

Class Variables类变量

  • debug

    Set debug to true to log calls through the AndroidJNIHelper
            设置调试为true来通过AndroidJNIHelper记录调用。      

Class Functions类函数

  • GetConstructorID
    Scans a particular Java class for a constructor method matching a signature.
          扫描一个特定的Java类,用于一个构造方法匹配的签名。
  • GetMethodID
    Scans a particular Java class for a method matching a name and a signature.
          扫描一个特定的Java类,用于一个方法匹配一个名字和一个签名。
  • GetFieldID
    Scans a particular Java class for a field matching a name and a signature.
          扫描一个特定的Java类,用于一个域匹配一个名字和一个签名。
  • ConvertToJNIArray
    Creates a Java array from a managed array
          从一个托管数组 ,创建一个Java数组。
  • CreateJNIArgArray
    Creates the parameter array to be used as argument list when invoking Java code through CallMethod() in AndroidJNI.
          创建参数数组作为参数列表中使用,通过在AndroidJNI中的CallMethod()调用Java代码。
  • GetConstructorID
    Get a JNI method ID for a constructor based on calling arguments.
          扫描一个特定的Java类,用于一个构造方法匹配的签名。
  • GetMethodID
    Get a JNI method ID based on calling arguments.
          获取一个JNI方法ID,根据调用参数。
  • GetSignature
    Creates the JNI signature string for particular object type
          创建JNI签名字符串用于特定的对象类型。
  • ConvertFromJNIArray.<ArrayType>
    Creates a managed array from a Java array
          从一个Java数组,创建一个托管数组。
  • GetMethodID.<ReturnType>
    Get a JNI method ID based on calling arguments.
          根据调用的参数,获取一个JNI方法ID。
  • GetFieldID.<FieldType>
    Get a JNI field ID based on type detection. Generic parameter represents the field type.
          获取一个JNI域ID,根据检测的类型。泛型参数表示域类型。
  • GetSignature.<ReturnType>
    Creates the JNI signature string for an object parameter list.
          创建JNI签名字符串用于对象参数列表。


,