users@jaxb.java.net

Re: Some codemodel questions

From: Colin Fleming <colin.mailinglist_at_gmail.com>
Date: Mon, 14 May 2007 19:15:45 +0200

> You can easily get the respective JClass of any plain old class via the
> JCodeModel.
>
> JCodeModel codeModel = ... // such as implClass.owner() where
> implClass is a JDefinedClass instance
> JClass myJClass = codeModel.ref(MyClass.class)

Thanks! That's useful to know. Unfortunately I've just realised this
doesn't help me with the constructor invocation, I was thinking of
JDefinedClass. Any other ideas how I can generate this?

Thanks,
Colin