buf.append(current.getName()); for(;arity > 0; arity--) buf.append("[]"); if(i != (types.length - 1)) buf.append(","); } buf.append(")"); types = getExceptionTypes(); if(types.length > 0) { buf.append(" throws "); for(i = 0; i < types.length; i++) { current = types[i]; buf.append(current.getName()); if(i != (types.length - 1)) buf.append(",");
sb.append(')'); c = getExceptionTypes(); if (c.length > 0) { sb.append(" throws ").append(c[0].getName()); for (int i = 1; i < c.length; i++) sb.append(',').append(c[i].getName());
  public String toString() {    StringBuffer buf;    String mods;    Class[] types;    Class current;    int i, arity;            buf = new StringBuffer();    mods = Modifier.toString(getModifiers());    if(mods.length() != 0) {      buf.append(mods);      buf.append(" ");    }    buf.append(getName());    buf.append("(");    types = getParameterTypes();    for(i = 0; i < types.length; i++) {      current = types[i];      arity = 0;      while(current.isArray()) {        current = current.getComponentType();        arity++;      }      buf.append(current.getName());      for(;arity > 0; arity--) buf.append("[]");      if(i != (types.length - 1))        buf.append(",");    }    buf.append(")");    types = getExceptionTypes();    if(types.length > 0) {      buf.append(" throws ");      for(i = 0; i < types.length; i++) {        current = types[i];        buf.append(current.getName());        if(i != (types.length - 1))          buf.append(",");      }    }    return buf.toString();  }