Class CBParser
java.lang.Object
com.io7m.cedarbridge.schema.parser.internal.CBParser
- All Implemented Interfaces:
CBParserType, Closeable, AutoCloseable
The default parser implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionCBParser(CBStringsType inStrings, Consumer<CBError> inErrors, CBExpressionSourceType inSource) The default parser implementation. -
Method Summary
-
Constructor Details
-
CBParser
public CBParser(CBStringsType inStrings, Consumer<CBError> inErrors, CBExpressionSourceType inSource) The default parser implementation.- Parameters:
inStrings- The string resourcesinErrors- The error consumerinSource- The expression source
-
-
Method Details
-
execute
Description copied from interface:CBParserTypeExecute the parser.- Specified by:
executein interfaceCBParserType- Returns:
- A parsed package
- Throws:
CBParseFailedException- On parse errors
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-