private String createMethodSignature ( Method method ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( "(" ) ; for ( Class < ? > type : method . getParameterTypes ( ) ) { sb . append ( getTypeString ( type ) ) ; } sb . append ( ")" ) ; Class < ? > type = method . getReturnType ( ) ; if ( type . getName ( ) . equals ( "void" ) ) { sb . append ( "V" ) ; } else { sb . append ( getTypeString ( type ) ) ; } return sb . toString ( ) ; }
Creates a method signature .