Expr []args = _args;  out.print("env.getClass(\""); out.printJavaString(_className); out.print("\").callMethod(env, ");   if (isMethod()) out.print("q_this"); else out.print("NullThisValue.NULL");  out.print(", \""); out.printJavaString(_name); out.print("\"");  if (args.length <= 5) {   for (int i = 0; i < args.length; i++) { out.print(", ");  args[i].generateArg(out); }  out.print(")"); } else { out.print(", new Value[] {");  for (int i = 0; i < args.length; i++) { if (i != 0) out.print(", ");  args[i].generateArg(out); }  out.print("})"); }
generate(out, false);
  public void generate(PhpWriter out)    throws IOException  {    Expr []args = _args;    out.print("env.getClass(\"");    out.printJavaString(_className);    out.print("\").callMethod(env, ");    // XXX: needed for mediawiki    if (isMethod())      out.print("q_this");    else      out.print("NullThisValue.NULL");    out.print(", \"");    out.printJavaString(_name);    out.print("\"");    if (args.length <= 5) {      // XXX: check variable args            for (int i = 0; i < args.length; i++) {	out.print(", ");      	args[i].generateArg(out);      }      out.print(")");    }    else {      out.print(", new Value[] {");      for (int i = 0; i < args.length; i++) {	if (i != 0)	  out.print(", ");      	args[i].generateArg(out);      }            out.print("})");    }  }