好吧我知道我是Java小白,连signature的确切定义都不知道,最近一直在用Javaparser这个包做Java code mining 有空写一写教程,还是挺好用的。
Siganture of Java method说白了就是java method name 加上参数列表,举个栗子
public void setMapReference(int xCoordinate, int yCoordinate)
{
//method code
}
这里 setMapReference的Signature 就是 setMapReference(int, int)
public void setMapReference(Point position)
{
//method code
}
而这个例子中,Signature就是 setMapReference(Point)