[prev in list] [next in list] [prev in thread] [next in thread] 

List:       groovy-user
Subject:    Re: [groovy-user] If I have a ClassNode, is there a way to get a
From:       "Eyvind W. Axelsen" <eyvindwa () gmail ! com>
Date:       2009-03-30 9:32:16
Message-ID: 720073180903300232o658c2df3w273147c1755d246 () mail ! gmail ! com
[Download RAW message or body]

Thanks Peter, I will look into it.

Eyvind.

On Mon, Mar 30, 2009 at 11:29 AM, Peter Niederwieser <pniederw@gmail.com> wrote:
> 
> 
> Eyvind W. Axelsen wrote:
> > 
> > so how would I go about creating a ClassNode that I could modify to my
> > needs from the original source?
> > 
> As in your example, just that instead of saving the ClassNode you modify it.
> Then myCL.parseClass() will return the java.lang.Class for the modified
> ClassNode.
> 
> One more thing: I'm not sure how much of a difference it makes, but I'd
> rather do AST manipulation in phase CANONICALIZATION instead of
> CLASS_GENERATION.
> 
> Cheers,
> Peter
> --
> View this message in context: \
> http://www.nabble.com/If-I-have-a-ClassNode%2C-is-there-a-way-to-get-a-Class--tp22682215p22779278.html
>  Sent from the groovy - user mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
> http://xircles.codehaus.org/manage_email
> 
> 
> 



-- 

Sent from: Oslo 03 Norway.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic