Package com.io7m.cedarbridge.schema.parser.internal

# Class CBParser

java.lang.Object
com.io7m.cedarbridge.schema.parser.internal.CBParser

All Implemented Interfaces:
  `CBParserType`, `Closeable`, `AutoCloseable`

public final class CBParser extends Object implements CBParserType
The default parser implementation.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CBParser(CBStringsType inStrings, Consumer<CBError> inErrors, CBExpressionSourceType inSource)`
  The default parser implementation.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `CBASTPackage`
  `execute()`
  Execute the parser.

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

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

- ## Constructor Details

  - ### CBParser

    public CBParser(CBStringsType inStrings, Consumer<CBError> inErrors, CBExpressionSourceType inSource)
    The default parser implementation.
    Parameters:
      `inStrings` - The string resources
      `inErrors` - The error consumer
      `inSource` - The expression source

- ## Method Details

  - ### execute

    public CBASTPackage execute() throws CBParseFailedException
    Description copied from interface: `CBParserType`
    Execute the parser.
    Specified by:
      `execute` in interface `CBParserType`
    Returns:
      A parsed package
    Throws:
      `CBParseFailedException` - On parse errors

  - ### close

    public void close() throws IOException
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `Closeable`
    Throws:
      `IOException`