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

# Class CBProtocolParser

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

All Implemented Interfaces:
  `CBElementParserType<CBASTProtocolDeclaration>`

public final class CBProtocolParser extends Object implements CBElementParserType<CBASTProtocolDeclaration>
A parser for protocol declarations.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CBProtocolParser()`
  A parser for protocol declarations.

- ## Method Summary

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

  - ### CBProtocolParser

    public CBProtocolParser()
    A parser for protocol declarations.

- ## Method Details

  - ### parse

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