Appendix E. Annotation parameters

This appendix covers the available parameters for the annotations known by the Groovy compiler. This includes Groovy AST transformations and related annotations.

Table E.1. Annotation groupings

AST transform

Parameter details, chapter coverage

Code generation transformations
@groovy.transform.builder.Builder Table E.6, Section 9.2.1
@groovy.transform.EqualsAndHashCode Table E.16, Section 9.2.1
@groovy.transform.IndexedProperty none, Section 9.2.1
@groovy.transform.InheritConstructors Table E.24, Section 9.2.1
@groovy.lang.Lazy Table E.25, Section 9.2.1
@groovy.lang.Newify Table E.32, Section 19.8
@groovy.transform.ToString Table E.41, Section 9.2.1
@groovy.transform.TupleConstructor ...

Get Groovy in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.