JsPattern

wjson.JsPattern$
See theJsPattern companion enum
object JsPattern

Attributes

Companion:
enum
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Path(value: List[PathElement])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Variable(name: String, pattern: JsPattern)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def ObjPattern(fields: (String, Variable)*): ObjPattern
def Path(path: String): Path
def parsePattern(string: String): JsPattern
def simplePath(path: String): Path
def test(pat: JsPattern, js: JsValue): (Boolean, Map[String, Any])
def unapplySeq(pat: JsPattern, js: JsValue): Option[List[Any]]