Class CAMetadataTypeMatchExpressions

java.lang.Object
com.io7m.cardant.parsers.CAExpressions
com.io7m.cardant.parsers.CAMetadataTypeMatchExpressions
All Implemented Interfaces:
CASyntaxType

public final class CAMetadataTypeMatchExpressions extends CAExpressions
Expression parsers for name match expressions.
  • Constructor Details

    • CAMetadataTypeMatchExpressions

      public CAMetadataTypeMatchExpressions(CAStrings inStrings)
      Expression parsers for name match expressions.
      Parameters:
      inStrings - The string resources
  • Method Details

    • metadataTypeMatch

      public CANameMatchExact metadataTypeMatch(String text) throws CAException
      Parse a match expression for names.
      Parameters:
      text - The input text
      Returns:
      A match expression
      Throws:
      CAException - On errors
    • metadataTypeMatch

      public CANameMatchExact metadataTypeMatch(com.io7m.jsx.SExpressionType e) throws CAException
      Parse a match expression for names.
      Parameters:
      e - The input expression
      Returns:
      A match expression
      Throws:
      CAException - On errors
    • metadataTypeMatchSerializeToString

      public String metadataTypeMatchSerializeToString(CANameMatchExact value) throws CAException
      Serialize a match expression to a string.
      Parameters:
      value - The expression
      Returns:
      The serialized text
      Throws:
      CAException - On errors
    • metadataTypeMatchSerialize

      public com.io7m.jsx.SExpressionType metadataTypeMatchSerialize(CAComparisonExactType<String> expression)
      Serialize a match expression.
      Parameters:
      expression - The expression
      Returns:
      The serialized expression
    • syntaxRules

      public SortedSet<CASyntaxRuleType> syntaxRules()
      Returns:
      The syntax rules