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

# Class CBDeclarationParser

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

All Implemented Interfaces:
  `CBElementParserType<CBASTDeclarationType>`

public final class CBDeclarationParser extends Object implements CBElementParserType<CBASTDeclarationType>
A parser for declarations.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CBDeclarationParser(boolean inTooLateForLanguage)`
  A parser for declarations.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CBASTDeclarationType`
  `parse(CBParseContextType context, com.io7m.jsx.SExpressionType expression)`
  Parse an element.

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

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

- ## Constructor Details

  - ### CBDeclarationParser

    public CBDeclarationParser(boolean inTooLateForLanguage)
    A parser for declarations.
    Parameters:
      `inTooLateForLanguage` - `true` if it is too late for a language declaration to appear

- ## Method Details

  - ### parse

    public CBASTDeclarationType parse(CBParseContextType context, com.io7m.jsx.SExpressionType expression) throws CBParseFailedException
    Description copied from interface: `CBElementParserType`
    Parse an element.
    Specified by:
      `parse` in interface `CBElementParserType<CBASTDeclarationType>`
    Parameters:
      `context` - The context
      `expression` - The expression
    Returns:
      A parsed element
    Throws:
      `CBParseFailedException` - On parse errors