Hi Roberto, sorry by the delay. What I'm doing is a generator for presentations. Given a java class with my example methods, create a set of html slides.
The generator reads the javadoc and the body of the method, and put them in a hash table into the generated class. Then in client side I can use this info to insert the code and wording in my slides using gwtquery. You can see my generator in github [1], focus on parseJava() in line #73. Right now I'm using japa.parser.JavaParser [2], but I'm wondering if there is a way to use gwt parsers so as I dont have to import a 3party library. [1] https://github.com/manolo/gwt-slides/blob/master/src/main/java/org/gquery/slides/bind/SlidesGenerator.java#L73 [2] https://code.google.com/p/javaparser/ Thanks - Manolo On Wed, May 15, 2013 at 2:39 PM, Roberto Lublinerman <[email protected]>wrote: > Can you share what you are attempting to do? Generators only get to see > structure (class hierarchy and method definitions) as far as I know. > > > On Sunday, May 12, 2013 3:57:35 AM UTC-7, Manuel Carrasco Moñino wrote: >> >> Hi all >> >> Is there a way to get the body of a method in a generator? I've seen >> JMethodBody is used in compile time, but I dont figure out how to get it in >> generators. >> >> Thanks >> > -- > -- > http://groups.google.com/group/Google-Web-Toolkit-Contributors > --- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit Contributors" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
