Package: groovy.lang

## [Java] Interface GroovyObject

-     public interface GroovyObject

  The interface implemented by all Groovy objects.

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

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public MetaClass` | `getMetaClass()` Returns the metaclass for a given class.
    `` | `public void` | `setMetaClass(MetaClass metaClass)` Allows the MetaClass to be replaced with a derived implementation.

- - ### Method Detail

    - #### public MetaClass getMetaClass()

      Returns the metaclass for a given class.

      Returns:
        the metaClass of this instance

    - #### public void setMetaClass(MetaClass metaClass)

      Allows the MetaClass to be replaced with a derived implementation.

      Parameters:
        `metaClass` - the new metaclass