Return-Path: X-Original-To: apmail-groovy-users-archive@minotaur.apache.org Delivered-To: apmail-groovy-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4395918F02 for ; Tue, 4 Aug 2015 00:43:31 +0000 (UTC) Received: (qmail 39533 invoked by uid 500); 4 Aug 2015 00:43:26 -0000 Delivered-To: apmail-groovy-users-archive@groovy.apache.org Received: (qmail 39496 invoked by uid 500); 4 Aug 2015 00:43:26 -0000 Mailing-List: contact users-help@groovy.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.incubator.apache.org Delivered-To: mailing list users@groovy.incubator.apache.org Received: (qmail 39486 invoked by uid 99); 4 Aug 2015 00:43:26 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Aug 2015 00:43:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A482B199327 for ; Tue, 4 Aug 2015 00:43:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.901 X-Spam-Level: ** X-Spam-Status: No, score=2.901 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id szZPasK1RvyX for ; Tue, 4 Aug 2015 00:43:14 +0000 (UTC) Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id CDD9B43DD9 for ; Tue, 4 Aug 2015 00:43:13 +0000 (UTC) Received: by pdbnt7 with SMTP id nt7so80094668pdb.0 for ; Mon, 03 Aug 2015 17:42:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=N5ka194DACIOog1MVEzDG3LOCqykq027pv0Bp5geMss=; b=XXyMVxdesvCb5WvHmvR347eTrWvKH5LlNrzdRkgQ1YcidGWF9trtqWLNLXPc920zu1 qP1EVxrUF3szpfyuw8yPpJl+J++f4UEYq9qlb4h3SJWgj31g6laoaIO1gaozqLrkkryF bKuaWi+brM20KqGKIErENLvcTEnNEoUfMg742fdpOZXxhQXng6a2K68tozBmTlw4UWyi WjK+CX6jSRUNpQ+ceSSeIIkEX1aSjCirqrbPWZ6FetPUTpU5USaiG9e/eTVxVGYytZBJ AXx0tC55Rcv2jD2Ixovsf0qB/Fo73jw0NjCq1MZ4PxeR8SDfrBpY8syNUNZfHpEcnr02 IPLw== X-Received: by 10.70.131.4 with SMTP id oi4mr1731328pdb.122.1438648947379; Mon, 03 Aug 2015 17:42:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Robert Stagner Date: Tue, 04 Aug 2015 00:42:17 +0000 Message-ID: Subject: Re: @Builder and Groovy In Action Second Edition To: users@groovy.incubator.apache.org Content-Type: multipart/alternative; boundary=001a1133d94e771600051c718f91 --001a1133d94e771600051c718f91 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks, Dinko. I'll read through the information and see what turns up On Mon, Aug 3, 2015, 5:33 PM Dinko Srko=C4=8D 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+aware= ness > > Cheers, > Dinko > > On 2 August 2015 at 18:50, Robert Stagner 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 =3D 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 ? > > > > > --001a1133d94e771600051c718f91 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Thanks, Dinko. I'll read through the information and see= what turns up


On Mon, Aug 3, 2015, 5:33 P= M=C2=A0Dinko Srko=C4=8D <dinko.= srkoc@gmail.com> wrote:
I do= n'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.jetb= rains.com/display/GRVY/Scripting+IDE+for+DSL+awareness

Cheers,
Dinko

On 2 August 2015 at 18:50, Robert Stagner <restagner@gmail.com> wrote:
> I'm relatively new to Groovy.=C2=A0 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 follo= wing
> piece of code
>
> @Builder
> class Chemist {
>=C2=A0 =C2=A0 =C2=A0String first
>=C2=A0 =C2=A0 =C2=A0String last
>=C2=A0 =C2=A0 =C2=A0int born
> }
>
> def builder =3D Chemist.builder()
>
>
> would result in the builder() method being recognized in the IDE I am = using
> (IntelliJ IDEA).=C2=A0 Instead, the IDE informs me "Cannot resolv= e symbol
> 'builder'".
>
> I thought that since @Builder was a compile-time metaprogramming struc= ture,
> the IDE would recognize the builder() method and allow me to use the I= DE's
> auto-complete feature ...
>
> Is that not true of the @Builder annotation ?
> Am I making the wrong assumption here ?
>
>
--001a1133d94e771600051c718f91--