Save This Page
Home » groovy-src-1.6.5 » groovy » lang » [javadoc | source]
groovy.lang
public interface: GroovyObject [javadoc | source] The interface implemented by all Groovy objects.

Especially handy for using Groovy objects when in the Java world.

Method from groovy.lang.GroovyObject Summary:
getMetaClass,   getProperty,   invokeMethod,   setMetaClass,   setProperty
Method from groovy.lang.GroovyObject Detail:
 public MetaClass getMetaClass()
    Returns the metaclass for a given class.
 public Object getProperty(String propertyName)
    Retrieves a property value.
 public Object invokeMethod(String name,
    Object args)
    Invokes the given method.
 public  void setMetaClass(MetaClass metaClass)
    Allows the MetaClass to be replaced with a derived implementation.
 public  void setProperty(String propertyName,
    Object newValue)
    Sets the given property to the new value.