Re: Dynamic class types

2020-10-19 Thread Saravanan Palanichamy
Worked like a charm. I used my derived groovyclassloader to create my own compile unit that overrides the default resolve visitor with my own resolve visitor that first resolves per my needs and then calls the default resolve visitor to close out every else. Thank you for your response Regards

RE: Dynamic class types

2020-10-19 Thread Milles, Eric (TR Technology)
You might run your transformation in (at least) 2 phases. In the first phase, you can mark or replace ClassNode instances that you expect to fill in as resolved or primary. ResolveVisitor checks isResolved() and isPrimaryClassNode() first. -Original Message- From: Saravanan

Dynamic class types

2020-10-19 Thread Saravanan Palanichamy
Hello everyone My DSL that uses AST transformations has this quirk * A Groovy script defines classes and uses other classes from the class path * I want to be able to replace all these types during compile with my own standard class definition * If I have the types I am replacing in the class