Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

Re: [groovy-user] Where can I see all member functions for Groovy
lists & maps?

Martin C. Martin

2010-02-09

Replies: Find Java Web Hosting

Author LoginPost Reply
On 2/9/2010 12:34 PM, cpjust wrote:
> Am I correct in assuming that every groovy class inherits from
> DefaultGroovyMethods?
>  
More or less. It's more accurate to say the methods are added to the
class of the first argument. So if there's a DefaultGroovyMethod like this:

static foo (Collection c, String s) { ... }

Then all Collections will get (what looks like) an instance method
foo(String s).

Best,
Martin

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.