Package groovy.lang

Class GroovyObjectSupport

    • Constructor Detail

      • GroovyObjectSupport

        public GroovyObjectSupport()
    • Method Detail

      • getMetaClass

        public MetaClass getMetaClass()
        Description copied from interface: GroovyObject
        Returns the metaclass for a given class.
        Specified by:
        getMetaClass in interface GroovyObject
        Returns:
        the metaClass of this instance
      • setMetaClass

        public void setMetaClass​(MetaClass metaClass)
        Description copied from interface: GroovyObject
        Allows the MetaClass to be replaced with a derived implementation.
        Specified by:
        setMetaClass in interface GroovyObject
        Parameters:
        metaClass - the new metaclass