Friday 28th March, 2014
4:15pm to 5:00pm
Groovy is a dynamic language that provides different types of metaprogramming techniques. In this talk we’ll mainly see runtime metaprogramming. I’ll explain Groovy Meta-Object-Protocol (MOP), the metaclass, how to intercept method calls, how to deal with method missing and property missing, the use of mixings and categories. All of these topics will be explained with examples in order to understand them.
Also, I’ll talk a little bit about compile-time metaprogramming with AST Transformations. AST Transformations provide a wonderful way of manipulating code at compile time via modifications of the Abstract Syntax Tree. We’ll see a basic but powerful example of what we can do with AST transformations.
Geek, Father, Groovy & Grails Developer, Sysadmin, Linux-lover, Pro-Opensource, Lord of Sealand and creator of http://www.bokzuy.com . Working at @kaleidosnet
Sign in to add slides, notes or videos to this session