public static String rewriteMethodSignature(ClassNameRewriter classNameRewriter,String methodSignature){
  if (classNameRewriter != IdentityClassNameRewriter.instance()) {
    SignatureParser parser=new SignatureParser(methodSignature);
    StringBuilder buf=new StringBuilder();
    buf.append('(');
    for (Iterator<String> i=parser.parameterSignatureIterator(); i.hasNext(); ) {
      buf.append(rewriteSignature(classNameRewriter,i.next()));
    }
    buf.append(')');
    buf.append(rewriteSignature(classNameRewriter,parser.getReturnTypeSignature()));
    methodSignature=buf.toString();
  }
  return methodSignature;
}

public static String rewriteMethodSignature ( ClassNameRewriter classNameRewriter , String methodSignature ) { if ( classNameRewriter != IdentityClassNameRewriter . instance ( ) ) { SignatureParser parser = new SignatureParser ( methodSignature ) ; StringBuilder buf = new StringBuilder ( ) ; buf . append ( '(' ) ; for ( Iterator < String > i = parser . parameterSignatureIterator ( ) ; i . hasNext ( ) ; ) { buf . append ( rewriteSignature ( classNameRewriter , i . next ( ) ) ) ; } buf . append ( ')' ) ; buf . append ( rewriteSignature ( classNameRewriter , parser . getReturnTypeSignature ( ) ) ) ; methodSignature = buf . toString ( ) ; } return methodSignature ; }
rewrite a method signature .
