Class PackedClosure.FixedN

All Implemented Interfaces:
GroovyCallable<Object>, GroovyObject, Serializable, Cloneable, Runnable, Callable<Object>, GeneratedClosure
Enclosing class:
PackedClosure

public static final class PackedClosure.FixedN extends PackedClosure implements GeneratedClosure
Arities above four (rare) and vararg-shaped literals (trailing array parameter, e.g. { ...z -> }, any arity): a varargs doCall — MOP selection packs the arguments back into one array, and PackedClosure.dispatchAll(java.lang.Object[]) applies the same arity/coercion contract as the base call lanes. For the vararg shapes this varargs declaration is also the faithful one: their generated class declares a vararg doCall, whose selection flexibility (zero arguments collect to an empty trailing array where a fixed one-parameter doCall would null-fill) a Fixed* member cannot reproduce. A single Object[] argument spreads through MOP routes here, exactly as it feeds the trailing array of a classed vararg doCall.
See Also: