James,
Can't you create the small class which will do the same thing via
reflection?
E.g.:
public String toString() { return Util.toString(this); }
Best regards,
Mike Aizatsky.
------------------------------
IntelliJ Software, "Develop with pleasure!" http://www.intellij.com
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:eap-features-
> [EMAIL PROTECTED]] On Behalf Of Jim Birchfield
> Sent: Wednesday, February 20, 2002 7:54 PM
> To: [EMAIL PROTECTED]
> Subject: [Eap-features] Generate a toString method
>
> I think it would be nice to be able to generate a toString method that
can
> print out all variables. Something like this:
>
> private String name;
> private String gender;
>
> /** IDEA generated */
> public String toString() {
> StringBuffer buf = new StringBuffer();
> buf.append("name=");
> buf.append(name);
> buf.append(", gender=");
> buf.append(gender);
> return buf.toString();
> }
>
> it would be even nicer to adjust this method when ever variables are
> added,
> subtracted, or changed.
>
> James Birchfield
> Development Manager
> Genscape, Inc.
> (502) 583-2298 (o)
> (502) 639-3136 (c)
>
>
>
> _______________________________________________
> Eap-features mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-features
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features