Package com.io7m.cedarbridge.exprsrc

# Class CBExpressionSources

java.lang.Object
com.io7m.cedarbridge.exprsrc.CBExpressionSources

All Implemented Interfaces:
  `CBExpressionSourceFactoryType`

public final class CBExpressionSources extends Object implements CBExpressionSourceFactoryType
The default expression source factory.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CBExpressionSources()`
  Construct an expression source factory.
  `CBExpressionSources(com.io7m.jsx.api.lexer.JSXLexerSupplierType inLexers, com.io7m.jsx.api.parser.JSXParserSupplierType inParsers)`
  Construct a parser factory.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CBExpressionSourceType`
  `create(URI uri, InputStream stream)`
  Create a source of expressions from the given stream.

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

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

  ### Methods inherited from interface com.io7m.cedarbridge.exprsrc.api.CBExpressionSourceFactoryType

  `create`

- ## Constructor Details

  - ### CBExpressionSources

    public CBExpressionSources(com.io7m.jsx.api.lexer.JSXLexerSupplierType inLexers, com.io7m.jsx.api.parser.JSXParserSupplierType inParsers)
    Construct a parser factory.
    Parameters:
      `inLexers` - S-expression lexers
      `inParsers` - S-expression parsers

  - ### CBExpressionSources

    public CBExpressionSources()
    Construct an expression source factory. Dependencies are fetched using `ServiceLoader`.

- ## Method Details

  - ### create

    public CBExpressionSourceType create(URI uri, InputStream stream)
    Description copied from interface: `CBExpressionSourceFactoryType`
    Create a source of expressions from the given stream.
    Specified by:
      `create` in interface `CBExpressionSourceFactoryType`
    Parameters:
      `uri` - The stream URI
      `stream` - The stream
    Returns:
      An expression source