Class CATypeMatchExpressions
java.lang.Object
com.io7m.cardant.parsers.CAExpressions
com.io7m.cardant.parsers.CATypeMatchExpressions
-
Constructor Summary
ConstructorsConstructorDescriptionCATypeMatchExpressions(CAStrings inStrings) Expression parsers for type match expressions. -
Method Summary
Modifier and TypeMethodDescriptiontypeMatch(com.io7m.jsx.SExpressionType e) Parse a match expression for types.Parse a match expression for types.com.io7m.jsx.SExpressionTypetypeMatchSerialize(CAComparisonSetType<CATypeRecordIdentifier> expression) Serialize a match expression.Serialize a match expression to a string.Methods inherited from class com.io7m.cardant.parsers.CAExpressions
createParseError, createParseError, parse, ruleBranch, ruleLeaf, ruleLeafWithExamples, serialize, strings
-
Constructor Details
-
CATypeMatchExpressions
Expression parsers for type match expressions.- Parameters:
inStrings- The string resources
-
-
Method Details
-
typeMatch
Parse a match expression for types.- Parameters:
text- The input text- Returns:
- A match expression
- Throws:
CAException- On errors
-
typeMatch
Parse a match expression for types.- Parameters:
e- The input expression- Returns:
- A match expression
- Throws:
CAException- On errors
-
typeMatchSerializeToString
Serialize a match expression to a string.- Parameters:
value- The expression- Returns:
- The serialized text
- Throws:
CAException- On errors
-
typeMatchSerialize
public com.io7m.jsx.SExpressionType typeMatchSerialize(CAComparisonSetType<CATypeRecordIdentifier> expression) Serialize a match expression.- Parameters:
expression- The expression- Returns:
- The serialized expression
-
syntaxRules
- Returns:
- The syntax rules
-