Package com.io7m.cedarbridge.schema.parser

# Class CBParserFactory

java.lang.Object
com.io7m.cedarbridge.schema.parser.CBParserFactory

All Implemented Interfaces:
  `CBParserFactoryType`

public final class CBParserFactory extends Object implements CBParserFactoryType
A parser factory.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CBParserFactory()`
  Construct a parser factory
  `CBParserFactory(CBStringsType inStrings)`
  Construct a parser factory.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CBParserType`
  `createParser(Consumer<CBError> errors, CBExpressionSourceType source)`
  Create a parser.

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

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

- ## Constructor Details

  - ### CBParserFactory

    public CBParserFactory(CBStringsType inStrings)
    Construct a parser factory.
    Parameters:
      `inStrings` - String resources

  - ### CBParserFactory

    public CBParserFactory()
    Construct a parser factory

- ## Method Details

  - ### createParser

    public CBParserType createParser(Consumer<CBError> errors, CBExpressionSourceType source)
    Description copied from interface: `CBParserFactoryType`
    Create a parser.
    Specified by:
      `createParser` in interface `CBParserFactoryType`
    Parameters:
      `errors` - A receiver of parse errors
      `source` - An expression source
    Returns:
      A new parser