Package com.io7m.cedarbridge.codegen.javastatic.internal.generics

# Class CBGenericSerializerMethodRefs

java.lang.Object
com.io7m.cedarbridge.codegen.javastatic.internal.generics.CBGenericSerializerMethodRefs

public final class CBGenericSerializerMethodRefs extends Object
Functions to calculate or generate serializer method references.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CBGenericSerializerMethodRefs(CBCGJavaNamePool inNames, CBTypeExpressionType inExpr, CBGenericSerializerMethodDirection inDirection)`
  Create a method reference generator.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CBGenericSerializerMethodRefType`
  `build()`
  `static Deque<CBGenericSerializerMethodRefViaLambda>`
  `findLambdasInDeclarationOrder(CBGenericSerializerMethodRefType ref)`
  Find all lambda expressions inside the given method reference.

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

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

- ## Constructor Details

  - ### CBGenericSerializerMethodRefs

    public CBGenericSerializerMethodRefs(CBCGJavaNamePool inNames, CBTypeExpressionType inExpr, CBGenericSerializerMethodDirection inDirection)
    Create a method reference generator.
    Parameters:
      `inNames` - The local name pool
      `inExpr` - The root type expression
      `inDirection` - The serialization method direction

- ## Method Details

  - ### build

    public CBGenericSerializerMethodRefType build()
    Returns:
      A method reference for the root expression

  - ### findLambdasInDeclarationOrder

    public static Deque<CBGenericSerializerMethodRefViaLambda> findLambdasInDeclarationOrder(CBGenericSerializerMethodRefType ref)
    Find all lambda expressions inside the given method reference. The lambdas are returned in declaration order.
    Parameters:
      `ref` - The reference
    Returns:
      The stack of lambda expressions