code: public static String getExecutableString(Method method)
      {
          if (method == null)
          {
              return "";
          }
          StringBuilder sb = new StringBuilder();
          sb.append(method.getDeclaringClass().getCanonicalName());
          sb.append(' ');
          sb.append(method.getName());
          sb.append('(');
          boolean f = true;
          for (Class<?> p : method.getParameterTypes())
          {
              if (f)
              {
                  f = false;
              }
              else
              {
                  sb.append(',');
              }
              aName(sb, p);
          }
          sb.append(')');
          return sb.toString();
      }
docs: Returns method in text form. Format is
  &lt;canonical name of method class&gt; ' ' &lt;method name&gt; '(' arguments ')'
  
  Arguments is a comma separated list of argument type names. Argument type name
  is canonical name of argument class. Arrays however are printed with leading '['.
  Example T0.class.getDeclaredMethod("m1", String.class, int.class, long[].class)
  produces "org.vesalainen.bcc.T0 m1(java.lang.String,int,[long)"
  
  @param method
  @return