public static String convertMethodSignature(String className,String methodName,String methodSig,String pkgName){
  StringBuilder args=new StringBuilder();
  SignatureConverter converter=new SignatureConverter(methodSig);
  converter.skip();
  args.append('(');
  while (converter.getFirst() != ')') {
    if (args.length() > 1) {
      args.append(", ");
    }
    args.append(shorten(pkgName,converter.parseNext()));
  }
  converter.skip();
  args.append(')');
  StringBuilder result=new StringBuilder();
  result.append(className);
  result.append('.');
  result.append(methodName);
  result.append(args.toString());
  return result.toString();
}

public static String convertMethodSignature ( String className , String methodName , String methodSig , String pkgName ) { StringBuilder args = new StringBuilder ( ) ; SignatureConverter converter = new SignatureConverter ( methodSig ) ; converter . skip ( ) ; args . append ( '(' ) ; while ( converter . getFirst ( ) != ')' ) { if ( args . length ( ) > 1 ) { args . append ( ", " ) ; } args . append ( shorten ( pkgName , converter . parseNext ( ) ) ) ; } converter . skip ( ) ; args . append ( ')' ) ; StringBuilder result = new StringBuilder ( ) ; result . append ( className ) ; result . append ( '.' ) ; result . append ( methodName ) ; result . append ( args . toString ( ) ) ; return result . toString ( ) ; }
convenience method for generating a method signature in human readable form .
