jni java Method 호출등에 사용되는 signature는 다음과 같다.
- B=byte
- C=char
- D=double
- F=float
- I=int
- J=long
- S=short
- V=void
- Z=boolean
- Lfully-qualified-class=fully qualified class
- [type=array of type>
- (argument types)return type=method type. If no arguments, use empty argument types: (). If return type is void (or constructor) use (argument types)V.
원문 사이트 :
http://dev.kanngard.net/Permalinks/ID_20050509144235.html
ex)
java method
jni call
추가 설명
Descriptor : Java Class Type
Z : boolean
B : byte
C : char
S : short
I : int
J : long
F : float
D : double
Ljava/lang/String; : String
[I : int[]
[Ljava/lang/Object : Object[]
()Ljava/lang/String; : String f();
(ILjava/lang/Class;)J : long f(int i, Class c);
([B)V : String(byte[] bytes);
- Trackback Address :: http://codepedia.tistory.com/trackback/116