类型签名(Type Signatures)

    (<Parameter 1 Type Code>[<Parameter 1 Class>];...)<Return Type Code>

The JNI uses the Java VM’s representation of type signatures. Following Table shows these type signatures.

Type Signature Java Type
Z booleab
B byte
C char
S short
I int
J long
F float
D double
L full-qualified-class full-qualified-class
[type type[]
(arg-types)ret-type method type


For example, the Java method:

    long f (int n, String s, int[] arr);

has the following type signature:

    (ILjava/lang/String;[I)J

相关文章:

  • 2021-06-23
  • 2021-11-10
  • 2021-09-16
  • 2021-06-12
  • 2021-09-25
  • 2021-09-22
  • 2021-12-03
猜你喜欢
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2021-10-22
  • 2021-05-30
  • 2021-11-17
相关资源
相似解决方案