Reputation: 50365
I am looking for how the methods like ArrayList#sort(Closure) are implemented in Groovy. I've downloaded Groovy's source in a zip (http://groovy.codehaus.org/Building+Groovy+from+Source), but I can't find any file containing the source of extension methods to ArrayList. Does anyone know where these Groovy extensions for Java's collection API are located?
Upvotes: 1
Views: 322
Reputation: 8245
Take a look at the sort
methods of org.codehaus.groovy.runtime.DefaultGroovyMethods
class.
Upvotes: 3