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

# Class CBPackageDeclarationParser

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

All Implemented Interfaces:
  `CBElementParserType<CBASTPackageDeclaration>`

public final class CBPackageDeclarationParser extends Object implements CBElementParserType<CBASTPackageDeclaration>
A parser for package declarations.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CBPackageDeclarationParser()`
  A parser for package declarations.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CBASTPackageDeclaration`
  `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

  - ### CBPackageDeclarationParser

    public CBPackageDeclarationParser()
    A parser for package declarations.

- ## Method Details

  - ### parse

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