public static String getMethodSignature ( String name , String rawSignature ) { StringBuilder signature = new StringBuilder ( ) ; String returnType = org . objectweb . asm . Type . getReturnType ( rawSignature ) . getClassName ( ) ; if ( returnType != null ) { signature . append ( returnType ) ; signature . append ( ' ' ) ; } signature . append ( name ) ; signature . append ( ' ' ) ; org . objectweb . asm . Type [ ] types = org . objectweb . asm . Type . getArgumentTypes ( rawSignature ) ; for ( int i = 0 ; i < types . length ; i ++ ) { if ( i > 0 ) { signature . append ( ' ' ) ; } signature . append ( types [ i ] . getClassName ( ) ) ; } signature . append ( ' ' ) ; return signature . toString ( ) ; }
Return a method signature .