Package com.io7m.cardant.parsers
Class CAExpressions
java.lang.Object
com.io7m.cardant.parsers.CAExpressions
- Direct Known Subclasses:
CAConstraintExpressions,CAItemLocationMatchExpressions,CAMetadataExpressions,CAMetadataMatchExpressions,CANameMatchExpressions,CATypeMatchExpressions
The base type of expression parsers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final CAExceptioncreateParseError(com.io7m.jsx.SExpressionType expression) protected final CAExceptioncreateParseError(com.io7m.jsx.SExpressionType expression, Exception e) static com.io7m.jsx.SExpressionTypeParse text as an s-expression.static Stringserialize(com.io7m.jsx.SExpressionType expression) Serialize an expression to a string.protected abstract Map<CAStringConstantType, CAStringConstantType> syntax()
-
Constructor Details
-
CAExpressions
-
-
Method Details
-
serialize
Serialize an expression to a string.- Parameters:
expression- The expression- Returns:
- The serialized expression
- Throws:
CAException- On errors
-
parse
Parse text as an s-expression.- Parameters:
text- The text- Returns:
- The parsed expression
- Throws:
CAException- On errors
-
syntax
-
createParseError
-
createParseError
-