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 ?