public static String signatureMethodName(String sig){
  int pos1=sig.indexOf(": ") + 2;
  int pos2=sig.indexOf("(",pos1);
  pos1=sig.lastIndexOf(" ",pos2) + 1;
  return sig.substring(pos1,pos2);
}

public static String signatureMethodName ( String sig ) { int pos1 = sig . indexOf ( ": " ) + 2 ; int pos2 = sig . indexOf ( "(" , pos1 ) ; pos1 = sig . lastIndexOf ( " " , pos2 ) + 1 ; return sig . substring ( pos1 , pos2 ) ; }
given a method signature , returns a substring denoting the method name .
