Class

refuel.json.codecs.builder.context.keylit

JsKeyLit

Related Doc: package keylit

Permalink

case class JsKeyLit(v: Seq[String]) extends JsKeyLitOps with KeyLitParser with KeyLitPrefixer with Product with Serializable

Json key literal builder. Used to synthesize Codec.

Build practices.

("root" / "next" / "terminal")
v

json key literal set

Self Type
JsKeyLit
Linear Supertypes
Serializable, Serializable, Product, Equals, KeyLitPrefixer, KeyLitParser, JsKeyLitOps, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsKeyLit
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. KeyLitPrefixer
  7. KeyLitParser
  8. JsKeyLitOps
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JsKeyLit(v: Seq[String])

    Permalink

    v

    json key literal set

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++(that: JsKeyLitOps): JsKeyLitOps

    Permalink
    Definition Classes
    JsKeyLit → JsKeyLitOps
  4. def /(add: String): JsKeyLit

    Permalink

    Set the key literal to add and rebuild.

    Set the key literal to add and rebuild.

    add

    Next key literal to add

  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def additionalKeyRef(sers: Seq[Json]): Json

    Permalink
    Definition Classes
    JsKeyLit → JsKeyLitOps
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def extend[A](implicit v: Codec[A]): Codec[A]

    Permalink

    Unlike KeyLitParser.parsed, the behavior of serialize / deserialize is not changed.

    Unlike KeyLitParser.parsed, the behavior of serialize / deserialize is not changed. Only the insertion path and acquisition path are changed when building the syntax tree.

    ("depth1" / "depth2").extend(
      "depth3".parsed(codec)(XXX.apply)(XXX.unapply)
    )

    be equal

    {
      "depth1": {
        "depth2": {
          "depth3": "xxx"
        }
      }
    }
    A

    parsed type of codec.

    v

    internal codec.

    Definition Classes
    KeyLitPrefixer
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. def parsed[A](implicit arg0: Codec[A]): CBuildComp[A]

    Permalink

    Generate a Codec to serialize / deserialize this constructed literal.

    Generate a Codec to serialize / deserialize this constructed literal.

    (
      ("depth1" / "depth2" / "depth3").parsed(CaseClassCodec.from[XXX]) ++
        ("depth1" / "depth2" / "depth4").parsed(CaseClassCodec.from[YYY])
    ).apply(ZZZ.apply)(ZZZ.unapply)

    be equal

    {
      "depth1": {
        "depth2": {
          "depth3": "xxx",
          "depth4": "yyy"
        }
      }
    }
    A

    Internal codec type

    Definition Classes
    KeyLitParser
  18. def prefix(that: Seq[String]): JsKeyLitOps

    Permalink
    Definition Classes
    JsKeyLit → JsKeyLitOps
  19. def rec(x: Json): Seq[Json]

    Permalink

    Follow the target JsonObject recursively from the constructed key literal.

    Follow the target JsonObject recursively from the constructed key literal.

    x

    Root json object

    Definition Classes
    JsKeyLit → JsKeyLitOps
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. val v: Seq[String]

    Permalink

    json key literal set

  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from KeyLitPrefixer

Inherited from KeyLitParser

Inherited from JsKeyLitOps

Inherited from AnyRef

Inherited from Any

Ungrouped