code: public String toMethodSignature(String name, boolean varargs) {
          StringBuffer buf = new StringBuffer();
          buf.append(mRetType.getFullName());
          buf.append(' ');
          buf.append(name);
          buf.append('(');
  
          TypeDesc[] params = mParams;
          for (int i=0; i<params.length; i++) {
              if (i > 0) {
                  buf.append(", ");
              }
              TypeDesc param = params[i];
              if (varargs && param.isArray() && i == (params.length - 1)) {
                  buf.append(param.getComponentType().getFullName());
                  buf.append("...");
              } else {
                  buf.append(param.getFullName());
              }
          }
  
          return buf.append(')').toString();
      }
docs: Returns this in Java method signature syntax.
  
  @param name method name
  @param varargs request that the last argument, if it is an array, to
  be formatted in varargs syntax.