Package groovy.lang

Class ExpandoMetaClass.ExpandoMetaConstructor

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

protected class ExpandoMetaClass.ExpandoMetaConstructor extends GroovyObjectSupport
Handles the ability to use the left shift operator to append new constructors
  • Constructor Details

    • ExpandoMetaConstructor

      protected ExpandoMetaConstructor()
  • Method Details

    • leftShift

      public Object leftShift(Closure c)
      Appends a constructor definition using the << DSL operator.
      Parameters:
      c - the closure implementing the constructor body
      Returns:
      this helper for fluent use