Package groovy.lang

Class 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

    • Field Detail

      • propertyName

        protected String propertyName
      • isStatic

        protected boolean isStatic
    • Constructor Detail

      • ExpandoMetaProperty

        protected ExpandoMetaProperty​(String name)
      • ExpandoMetaProperty

        protected ExpandoMetaProperty​(String name,
                                      boolean isStatic)