Thanks, Dinko. I'll read through the information and see what turns up On Mon, Aug 3, 2015, 5:33 PM Dinko Srkoč <dinko.sr...@gmail.com> wrote:
> I don't know whether this is still the case, but IntelliJ IDEA used to > use GroovyDSL scripts for supporting common AST transformations in the > IDE (since IDEA 9). > > More info about gdsl scripts can be found here: > > https://confluence.jetbrains.com/display/GRVY/Scripting+IDE+for+DSL+awareness > > Cheers, > Dinko > > On 2 August 2015 at 18:50, Robert Stagner <restag...@gmail.com> wrote: > > I'm relatively new to Groovy. And, while working through the @Builder > > example (Listing 9.9), from Groovy In Action Second Edition, which is a > > _fantastic_ book by the way, I was under the impression that the > following > > piece of code > > > > @Builder > > class Chemist { > > String first > > String last > > int born > > } > > > > def builder = Chemist.builder() > > > > > > would result in the builder() method being recognized in the IDE I am > using > > (IntelliJ IDEA). Instead, the IDE informs me "Cannot resolve symbol > > 'builder'". > > > > I thought that since @Builder was a compile-time metaprogramming > structure, > > the IDE would recognize the builder() method and allow me to use the > IDE's > > auto-complete feature ... > > > > Is that not true of the @Builder annotation ? > > Am I making the wrong assumption here ? > > > > >