Programming Grails - Cdn.oreilly.com
Programming Grails - Cdn.oreilly.com
Programming Grails - Cdn.oreilly.com
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Table of Contents<br />
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi<br />
1. Introduction to Groovy. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1<br />
Installing Groovy 1<br />
Groovy Console 2<br />
Optional Typing 3<br />
Collections and Maps 4<br />
Properties 5<br />
Using the AST Browser 7<br />
De<strong>com</strong>piling with JD-GUI 8<br />
De<strong>com</strong>piling with javap 8<br />
Closures 8<br />
Interface Coercion 11<br />
Programmatic Closures 11<br />
Owner, Delegate, and this 12<br />
Groovy’s Contributions in the War Against Verbosity 13<br />
Constructors 14<br />
Checked Exceptions 15<br />
Groovy Truth 15<br />
Semicolons 16<br />
Optional Return 16<br />
Scope 16<br />
Parentheses 16<br />
Default Imports 16<br />
Differences Between Java and Groovy 17<br />
Array Initialization 17<br />
in and def Keywords 17<br />
do/while Loops 17<br />
for Loops 17<br />
iii