Is there a way to compute a Java class\'s method\'s signature? A signature
like ([Ljava/lang/String;)V represents a function that takes a
From the JLS, §8.4.2:
8.4.2 Method Signature
The signature of a method consists of the name of the method and the number and types of formal parameters to the method. A class may not declare two methods with the same signature, or a compile-time error occurs.
The example:
class Point implements Move { int x, y; abstract void move(int dx, int dy); void move(int dx, int dy) { x += dx; y += dy; } }causes a compile-time error because it declares two
movemethods with the same signature. This is an error even though one of the declarations isabstract.
So the "rule" is
the name of the method and the number and types of formal parameters to the method