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 .