Class CBVariantParser
java.lang.Object
com.io7m.cedarbridge.schema.parser.internal.CBVariantParser
- All Implemented Interfaces:
CBElementParserType<CBASTTypeVariant>
A parser for variant declarations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe syntax section for variants. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse(CBParseContextType context, com.io7m.jsx.SExpressionType expression) Parse an element.
-
Field Details
-
SPEC_SECTION
The syntax section for variants.
-
-
Constructor Details
-
CBVariantParser
public CBVariantParser()A parser for variant declarations.
-
-
Method Details
-
parse
public CBASTTypeVariant parse(CBParseContextType context, com.io7m.jsx.SExpressionType expression) throws CBParseFailedException Description copied from interface:CBElementParserTypeParse an element.- Specified by:
parsein interfaceCBElementParserType<CBASTTypeVariant>- Parameters:
context- The contextexpression- The expression- Returns:
- A parsed element
- Throws:
CBParseFailedException- On parse errors
-