Package com.io7m.cardant.type_packages.parsers.internal

# Class CATypePackageParser

java.lang.Object
com.io7m.cardant.type_packages.parsers.internal.CATypePackageParser

All Implemented Interfaces:
  `com.io7m.anethum.api.ParserType<CATypePackageDeclaration>`, `CATypePackageParserType`, `Closeable`, `AutoCloseable`

public final class CATypePackageParser extends Object implements CATypePackageParserType
A parser.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CATypePackageParser(com.io7m.blackthorne.core.BTPreserveLexical context, URI inSource, InputStream inStream, Consumer<com.io7m.anethum.api.ParseStatus> inStatusConsumer)`
  A parser.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `CATypePackageDeclaration`
  `execute()`

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

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

- ## Constructor Details

  - ### CATypePackageParser

    public CATypePackageParser(com.io7m.blackthorne.core.BTPreserveLexical context, URI inSource, InputStream inStream, Consumer<com.io7m.anethum.api.ParseStatus> inStatusConsumer)
    A parser.
    Parameters:
      `context` - The parse context
      `inSource` - The source URI
      `inStream` - The input stream
      `inStatusConsumer` - The status consumer

- ## Method Details

  - ### execute

    public CATypePackageDeclaration execute() throws com.io7m.anethum.api.ParsingException
    Specified by:
      `execute` in interface `com.io7m.anethum.api.ParserType<CATypePackageDeclaration>`
    Throws:
      `com.io7m.anethum.api.ParsingException`

  - ### close

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