Groovy delegate, owner, this references.


/ Published in: Groovy
Save to your folder(s)

This, owner, and delegate:
this : as in Java, this refers to the instance of the enclosing class where a Closure is defined
owner : the enclosing object (this or a surrounding closure)
delegate : by default the same as owner, but changeable.
(http://groovy.codehaus.org/Closures).

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.