Package com.io7m.cardant.parsers
Class CAMetadataMatchExpressions
java.lang.Object
com.io7m.cardant.parsers.CAExpressions
com.io7m.cardant.parsers.CAMetadataMatchExpressions
Expression parsers for metadata match expressions.
-
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.protected Map<CAStringConstantType, CAStringConstantType> syntax()Methods inherited from class com.io7m.cardant.parsers.CAExpressions
createParseError, createParseError, parse, serialize
-
Constructor Details
-
CAMetadataMatchExpressions
Expression parsers for metadata match expressions.- Parameters:
inStrings- The string resources
-
-
Method Details
-
syntax
- Specified by:
syntaxin classCAExpressions
-
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
-