Class CAMetadataMatchExpressions
java.lang.Object
com.io7m.cardant.parsers.CAExpressions
com.io7m.cardant.parsers.CAMetadataMatchExpressions
-
Constructor Summary
ConstructorsConstructorDescriptionCAMetadataMatchExpressions(CAStrings inStrings) Expression parsers for metadata match expressions. -
Method Summary
Modifier and TypeMethodDescriptionmetadataMatch(String text) Parse a match expression for metadata.com.io7m.jsx.SExpressionTypeSerialize a match expression.Serialize a match expression to a string.metadataValueMatch(String text) Parse a metadata value match expression.toString()Methods inherited from class com.io7m.cardant.parsers.CAExpressions
createParseError, createParseError, parse, ruleBranch, ruleLeaf, ruleLeafWithExamples, serialize, strings
-
Constructor Details
-
CAMetadataMatchExpressions
Expression parsers for metadata match expressions.- Parameters:
inStrings- The string resources
-
-
Method Details
-
toString
-
metadataMatch
Parse a match expression for metadata.- Parameters:
text- The input text- Returns:
- A match expression
- Throws:
CAException- On errors
-
metadataValueMatch
Parse a metadata value match expression.- Parameters:
text- The expression text- Returns:
- A value match expression
- Throws:
CAException- On errors
-
metadataMatchSerializeToString
Serialize a match expression to a string.- Parameters:
value- The expression- Returns:
- The serialized text
- Throws:
CAException- On errors
-
metadataMatchSerialize
Serialize a match expression.- Parameters:
value- The expression- Returns:
- The serialized expression
-
syntaxRules
- Returns:
- The syntax rules
-