users@codemodel.java.net

Re: modifying existing classes

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Sun, 14 Sep 2008 17:13:35 -0300

dar imiro wrote:
> I'd like to know if its possible
> to generate a java-sourcefile, by using an existing .class-file as a
> template. E.g. load the old class and start modifying it and finally
> write it out as a new java source.

No, codeModel doesn't have a discompiler, which is needed for doing what
you do.

> I guess you can load existing class and copy all its contents to a new model, but this seems like too much work.
>
>
> _________________________________________________________________
> Connect to the next generation of MSN Messenger
> http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
>


-- 
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/