Package com.io7m.cedarbridge.schema.binder

# Class CBBinderFactory

java.lang.Object
com.io7m.cedarbridge.schema.binder.CBBinderFactory

All Implemented Interfaces:
  `CBBinderFactoryType`

public final class CBBinderFactory extends Object implements CBBinderFactoryType
The binder factory implementation.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CBBinderFactory()`
  Construct a binder factory
  `CBBinderFactory(CBStringsType inStrings)`
  Construct a binder factory.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CBBinderType`
  `createBinder(CBLoaderType loader, Consumer<CBError> errors, CBExpressionLineLogType lineLog, CBASTPackage parsedPackage)`
  Create a binder.

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

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

- ## Constructor Details

  - ### CBBinderFactory

    public CBBinderFactory(CBStringsType inStrings)
    Construct a binder factory.
    Parameters:
      `inStrings` - String resources

  - ### CBBinderFactory

    public CBBinderFactory()
    Construct a binder factory

- ## Method Details

  - ### createBinder

    public CBBinderType createBinder(CBLoaderType loader, Consumer<CBError> errors, CBExpressionLineLogType lineLog, CBASTPackage parsedPackage)
    Description copied from interface: `CBBinderFactoryType`
    Create a binder.
    Specified by:
      `createBinder` in interface `CBBinderFactoryType`
    Parameters:
      `loader` - A package loader
      `errors` - A receiver of binder errors
      `lineLog` - A line log, for diagnostic messages
      `parsedPackage` - A parsed package
    Returns:
      A new binder