Class ClosureStaticMetaMethod

  • All Implemented Interfaces:
    ClosureInvokingMethod, java.lang.Cloneable

    public class ClosureStaticMetaMethod
    extends MetaMethod
    implements ClosureInvokingMethod
    This class represents a MetaMethod that is a closure that pretends to be a static method. It is used by ExpandoMetaClass to allow addition of static methods defined as closures
    Since:
    01.1
    Author:
    Graeme Rocher
    • Constructor Detail

      • ClosureStaticMetaMethod

        public ClosureStaticMetaMethod​(java.lang.String name,
                                       java.lang.Class declaringClass,
                                       Closure c)
        Parameters:
        name - The name of the MetaMethod
        declaringClass - The class which declared the MetaMethod
        c - The closure that this ClosureMetaMethod will invoke when called
      • ClosureStaticMetaMethod

        public ClosureStaticMetaMethod​(java.lang.String name,
                                       java.lang.Class declaringClass,
                                       Closure c,
                                       java.lang.Class[] paramTypes)