Package groovy.lang

Class ExpandoMetaClass.ExpandoMetaProperty

java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.ExpandoMetaClass.ExpandoMetaProperty
All Implemented Interfaces:
GroovyObject
Enclosing class:
ExpandoMetaClass

protected class ExpandoMetaClass.ExpandoMetaProperty extends GroovyObjectSupport
Instances of this class are returned when using the << left shift operator.

Example:

metaClass.myMethod << { String args -> }

This allows callbacks to the ExpandoMetaClass for registering appending methods

Author:
Graeme Rocher
  • Field Details

    • propertyName

      protected String propertyName
    • isStatic

      protected boolean isStatic
  • Constructor Details

    • ExpandoMetaProperty

      protected ExpandoMetaProperty(String name)
    • ExpandoMetaProperty

      protected ExpandoMetaProperty(String name, boolean isStatic)
  • Method Details