com.rojoma.json.v3

matcher

package matcher

Visibility
  1. Public
  2. All

Type Members

  1. case class AllOf(subPatterns: OptPattern*) extends Pattern with Product with Serializable

    A com.rojoma.json.v3.matcher.Pattern which matches only if all the sub-patterns also match.

  2. class DecodeMatcher[T] extends AnyRef

    Simple class to turn a com.rojoma.json.v3.codec.JsonDecode into something that can be used for pattern-matching.

  3. case class FLiteral(recognizer: (JValue) ⇒ Boolean) extends Pattern with Product with Serializable

    A com.rojoma.json.v3.matcher.Pattern which matches a com.rojoma.json.v3.ast.JValue if a predicate on that JValue is true.

  4. case class FirstOf(subPatterns: Pattern*) extends Pattern with Product with Serializable

    A com.rojoma.json.v3.matcher.Pattern which matches the first sub-pattern to succeed.

  5. class JsonGenerationException extends RuntimeException

  6. case class Literal(literal: JValue) extends Pattern with Product with Serializable

    A com.rojoma.json.v3.matcher.Pattern which matches a com.rojoma.json.v3.ast.JValue exactly.

  7. sealed trait OptPattern extends AnyRef

    Either a com.rojoma.json.v3.matcher.Pattern or a com.rojoma.json.v3.matcher.POption.

  8. case class PArray(subPatterns: Pattern*) extends Pattern with Product with Serializable

    A com.rojoma.json.v3.matcher.Pattern which matches if the value is a com.rojoma.json.v3.ast.JArray which contains at least as many elements as sub-patterns contained by this object and those elements match the sub-patterns in the order given.

  9. case class PObject(subPatterns: (String, OptPattern)*) extends Pattern with Product with Serializable

    A com.rojoma.json.v3.matcher.Pattern which matches if the value is a com.rojoma.json.v3.ast.JObject which contains at least the fields specified in this Pattern.

  10. case class POption(subPattern: Pattern) extends OptPattern with Product with Serializable

    A wrapper for a com.rojoma.json.v3.matcher.Pattern which allows fields to be absent when using a com.rojoma.json.v3.matcher.PObject.

  11. trait Pattern extends OptPattern

    An object that can be used to either match and extract data from, or generate, com.rojoma.json.v3.ast.JValues.

  12. abstract class Variable[T] extends Pattern with PartialFunction[Results, T]

    A com.rojoma.json.v3.matcher.Pattern which matches any com.rojoma.json.v3.ast.JValue which can be decoded into an object of type T.

Value Members

  1. object DecodeMatcher

  2. object OptPattern extends LowPriorityImplicits

  3. object Pattern

  4. object Variable

Ungrouped