• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Groovy Java Compiler

 
Greenhorn
Posts: 27
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,
I have two classes as such:
File JavaCompiler.java
@GroovyJava
public class JavaCompiler2{}

File JavaCompiler1.groovy
public class JavaCompiler1 extends JavaCompiler2{}

I have an annotation processor as such:


Question
How do I implement Visitor.java in such a way that the tree elements of the annotated java class are transformed into fitting nodes for Groovy's AST?

Goal
The goal is to transform the annotated Java class into the Groovy AST, compile it then get it compile it together again with JavaCompiler1.groovy
 
reply
    Bookmark Topic Watch Topic
  • New Topic