Package org.codehaus.groovy.runtime

# Class GeneratedDispatcher.Bundle

java.lang.Object
org.codehaus.groovy.runtime.GeneratedDispatcher.Bundle

Enclosing interface:
  GeneratedDispatcher

public static final class GeneratedDispatcher.Bundle extends Object
The hosting class's three dispatch shapes, linked once by `GeneratedDispatcher.bootstrap(java.lang.invoke.MethodHandles.Lookup, java.lang.String, java.lang.invoke.MethodType)` and shared by all of that class's adapters.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Bundle(GeneratedDispatcher dispatcher, GeneratedDispatcher.Arity1 arity1, GeneratedDispatcher.Arity2 arity2)`
  Public because the hosting class's compiler-emitted factory constructs it directly (see `ClosureWriter#writeDispatchersFactory`); not API for hand-written code.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `GeneratedDispatcher.Arity1`
  `arity1()`
  The one-value dispatcher.
  `GeneratedDispatcher.Arity2`
  `arity2()`
  The two-value dispatcher.
  `GeneratedDispatcher`
  `dispatcher()`
  The array-shaped dispatcher, covering every target.

  ### Methods inherited from class java.lang.Object

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

- ## Constructor Details

  - ### Bundle

    public Bundle(GeneratedDispatcher dispatcher, GeneratedDispatcher.Arity1 arity1, GeneratedDispatcher.Arity2 arity2)
    Public because the hosting class's compiler-emitted factory constructs it directly (see `ClosureWriter#writeDispatchersFactory`); not API for hand-written code.

- ## Method Details

  - ### dispatcher

    public GeneratedDispatcher dispatcher()
    The array-shaped dispatcher, covering every target.

  - ### arity1

    public GeneratedDispatcher.Arity1 arity1()
    The one-value dispatcher.

  - ### arity2

    public GeneratedDispatcher.Arity2 arity2()
    The two-value dispatcher.