The return value signature of the Java method called by the Android JNI

Source: Internet
Author: User

Intercepted from http://blog.csdn.net/lonelyroamer/article/details/7932787

 

How to sign :

Below to see how the sign signature is written to indicate the type of property or method to get.

1, normal type signature

2, reference type signature

object     L, and then The complete type of the separation package, followed by;   such as string    signature is    ljava/lang/string;

array      begins with [, in addition to the signature of the array element type              such as int[]   signature is [i      , in the example int[][] signature is [[I     , An Object array signature is [Ljava/lang/object;

]

3, Method signature

(parameter 1 type signature parameter 2 type signature parameter 3 type signature   ...) Return value type signature

Also note that even if the Java constructor does not return a value, it also adds the V signature

 

Because signatures are more difficult to remember, the JDK provides a tool JAVAP to see the declarations of a class. It is possible to set the signature of each method/property for the output.

Javap-s <options> className

-s means signature

Options can make-private -protected-public The method/property that is used to selectively output private or protected or public declarations.

The return value signature of the Java method called by the Android jni

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.