Class CAMediaTypeMatchExpressions
java.lang.Object
com.io7m.cardant.parsers.CAExpressions
com.io7m.cardant.parsers.CAMediaTypeMatchExpressions
-
Constructor Summary
ConstructorsConstructorDescriptionCAMediaTypeMatchExpressions(CAStrings inStrings) Expression parsers for mediatype match expressions. -
Method Summary
Modifier and TypeMethodDescriptionmediatypeMatch(com.io7m.jsx.SExpressionType e) Parse a match expression for mediatypes.mediatypeMatch(String text) Parse a match expression for mediatypes.com.io7m.jsx.SExpressionTypemediatypeMatchSerialize(CAComparisonFuzzyType<String> 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
-
CAMediaTypeMatchExpressions
Expression parsers for mediatype match expressions.- Parameters:
inStrings- The string resources
-
-
Method Details
-
mediatypeMatch
Parse a match expression for mediatypes.- Parameters:
text- The input text- Returns:
- A match expression
- Throws:
CAException- On errors
-
mediatypeMatch
Parse a match expression for mediatypes.- Parameters:
e- The input expression- Returns:
- A match expression
- Throws:
CAException- On errors
-
mediatypeMatchSerializeToString
Serialize a match expression to a string.- Parameters:
value- The expression- Returns:
- The serialized text
- Throws:
CAException- On errors
-
mediatypeMatchSerialize
public com.io7m.jsx.SExpressionType mediatypeMatchSerialize(CAComparisonFuzzyType<String> expression) Serialize a match expression.- Parameters:
expression- The expression- Returns:
- The serialized expression
-
syntaxRules
- Returns:
- The syntax rules
-