users@jaxb.java.net

Re: CodeModel : how to generate System.err.println()

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Thu, 14 Dec 2006 16:11:19 -0800

Benoit Callebaut wrote:
> The problem at the moment is that in my parser I cannot know if the
> meaning of a qualified "thing" refers to aclass or a variable.
> I need somebody for that and I don't want that.
> I will dig into the Javac code to see how it is done.

You might just want to use the "direct" statement.


> Another concern: It is possible that in the "XML code", I try to refer
> to a class not yet generated and thus not yet known to the model.

Yeah, you just need to get the right JDefinedClass instance.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com