Package: groovy.lang

## [Java] Interface GroovyObject

-     public interface GroovyObject

  GDK enhancements for GroovyObject.

  displayName:
    GroovyObject
  receiverFqcn:
    groovy.lang.GroovyObject

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public MetaClass` | `getMetaClass()` Obtains a MetaClass for an object either from the registry or in the case of a GroovyObject from the object itself.
    `` | `public void` | `setMetaClass(MetaClass metaClass)` Sets the metaclass for a `GroovyObject`.

- - ### Method Detail

    - #### public MetaClass getMetaClass()

      Obtains a MetaClass for an object either from the registry or in the case of a GroovyObject from the object itself.

      Returns:
        The MetaClass
      Since:
        1.6.0

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

      Sets the metaclass for a `GroovyObject`.

      Parameters:
        `metaClass` - the new metaclass value
      Since:
        2.0.0