Package

com.lucidchart.open.xtract

meta

Permalink

package meta

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. meta
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class ReadLine[+A] extends Product with Serializable

    Permalink

    A ReadLine can be used to specify the paths that should be used to parse a field with an XmlReader defined with the XmlReader.makeReader macro.

Value Members

  1. object ReadLine extends Serializable

    Permalink
  2. macro def makeReader[A]: XmlReader[A]

    Permalink

    Define an XmlReader for type A, inferring the types from primary constructor of A.

    Define an XmlReader for type A, inferring the types from primary constructor of A.

    A

    The type to create the XmlReader for. There should be an implicit XmlReader in scope for the type of each parameter to As primary constructor. For a class defined like:

    case class A(a: Int, b: String, c: Option[Double])
    object A {
      implicit val reader = XmlReader.makeReader[A]
    }

    the reader defined is equivalent to:

    for {
      a <- (__ \ "a").read[Int]
      b <- (__ \ "b").read[String]
      c <- (__ \ "c").read[Option[Double]]
    } yield new A(a, b, c)
  3. macro def makeReader[A](lines: ReadLine[_]*): XmlReader[A]

    Permalink

    Define an XmlReader for type A from a list of ReadLines.

    Define an XmlReader for type A from a list of ReadLines.

    A

    The type to create the XmlReader for.

    lines

    A list of ReadLines describe the fields to parse. These should correspond to the parameters for one of the constructors of A. There should be an implicit XmlReader in scope for the type of each ReadLine.

Inherited from AnyRef

Inherited from Any

Ungrouped