Java方法的Signature是由方法的参数和返回值的类型共同构成的,下面是他们的结构︰
"(argument-types)return-type"
其中Java程序中参数类型和其对应的值如下︰
Signature Java中的类型
Z boolean
B byte
C char
S short
I int
J long
F float
D double
L fully-qualified-class; fully-qualified-class
一个Java类的方法的Signature可以通过javap命令获取︰
javap -s -p Java类名
from wikipad
Java
In the Java virtual machine, internal type signatures are used to identify methods and classes at the level of the virtual machine code.
Example: The method String String.substring(int, int) is represented as Ljava/lang/String/substring(II)Ljava/lang/String;