Class NamedAnnotationMemberClosure<T>

java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Closure<T>
com.blackbuild.klum.ast.NamedAnnotationMemberClosure<T>
Type Parameters:
T -
All Implemented Interfaces:
groovy.lang.GroovyCallable<T>, groovy.lang.GroovyObject, Serializable, Cloneable, Runnable, Callable<T>
Direct Known Subclasses:
NoClosure, Validate.GroovyTruth, Validate.Ignore

public abstract class NamedAnnotationMemberClosure<T> extends groovy.lang.Closure<T>
Dummy annotation to mark a member field accepting a closure as a special value (like Undefine, Ignored, etc.), i.e. the closure will not be executed, but a special handling is done. This allows to mark the member as Class<? extends Closure> instead of simply class, reducing the need for manual validation.
See Also:
  • Field Summary

    Fields inherited from class groovy.lang.Closure

    DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    doCall(Object ignored)
     
    doCall(Object... ignored)
     

    Methods inherited from class groovy.lang.Closure

    andThen, andThenSelf, andThenSelf, asWritable, call, call, call, clone, compose, composeSelf, composeSelf, curry, curry, dehydrate, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, getProperty, getResolveStrategy, getThisObject, isCase, leftShift, leftShift, memoize, memoizeAtLeast, memoizeAtMost, memoizeBetween, ncurry, ncurry, rcurry, rcurry, rehydrate, rightShift, run, setDelegate, setDirective, setProperty, setResolveStrategy, throwRuntimeException, trampoline, trampoline

    Methods inherited from class groovy.lang.GroovyObjectSupport

    getMetaClass, setMetaClass

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface groovy.lang.GroovyObject

    invokeMethod
  • Constructor Details

    • NamedAnnotationMemberClosure

      protected NamedAnnotationMemberClosure(Object owner, Object thisObject)
  • Method Details