class Kson extends Cached
- Source
- kson.scala
- Alphabetic
- By Inheritance
- Kson
- Cached
- StringMap
- AnyRef
- Any
- by richDrxAny
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ++(that: Kson): Kson
- def ->[B](y: B): (Kson, B)
- def /(symbol: Symbol): Scoped
- Definition Classes
- StringMap
- def /(name: String): Scoped
- Definition Classes
- StringMap
- def <<(shift: Int): Kson
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >>(shift: Int): Kson
- final def apply[T](key: String)(implicit parser: Parsable[T]): T
dangerous option, either use modadic or defaults with getOrElse
dangerous option, either use modadic or defaults with getOrElse
- Definition Classes
- StringMap
- def applyIf(t: Boolean, f: (Kson) => Kson): Kson
- Implicit
- This member is added by an implicit conversion from Kson toDrxAny[Kson] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (Kson) => Boolean)(f: (Kson) => Kson): Kson
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from Kson toDrxAny[Kson] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def contains(key: String): Boolean
- Definition Classes
- StringMap
- def elementOf(xs: Set[Kson]): Boolean
- Implicit
- This member is added by an implicit conversion from Kson toDrxAny[Kson] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (Kson) => Boolean, msg: => Any): Kson
- def ensuring(cond: (Kson) => Boolean): Kson
- def ensuring(cond: Boolean, msg: => Any): Kson
- def ensuring(cond: Boolean): Kson
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- lazy val forest: Forest[MTree[KsonLine]]
- def formatted(fmtstr: String): String
- final def get[T](key: String)(implicit parser: Parsable[T]): Option[T]
get a key while parsing it via to a viable type inference value and caching it as so
- def get[A, B, C, D](keyA: String, keyB: String, keyC: String, keyD: String)(implicit parserA: Parsable[A], parserB: Parsable[B], parserC: Parsable[C], parserD: Parsable[D]): Option[(A, B, C, D)]
- Definition Classes
- StringMap
- def get[A, B, C](keyA: String, keyB: String, keyC: String)(implicit parserA: Parsable[A], parserB: Parsable[B], parserC: Parsable[C]): Option[(A, B, C)]
- Definition Classes
- StringMap
- def get[A, B](keyA: String, keyB: String)(implicit parserA: Parsable[A], parserB: Parsable[B]): Option[(A, B)]
- Definition Classes
- StringMap
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def getOrElse[T](key: String, default: T)(implicit parser: Parsable[T]): T
- Definition Classes
- StringMap
- final def getString(key: String): Option[String]
specialized get method for strings so parsing is not required (this also provides a cache mechanism without type encoding)
- def getStringNoCache(key: String): Option[String]
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def interpolate(s: String): String
- lazy val interpolated: Kson
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val keys: List[String]
list of the available keys (the sort order provides listing features)
- lazy val lines: List[KsonLine]
- def mergeWith(that: StringMap): StringMap
- Definition Classes
- StringMap
- lazy val merged: Map[String, String]
- def mkPath(keys: Seq[String]): String
default as a path separator of '.' but this is configurable (over-ridable)
default as a path separator of '.' but this is configurable (over-ridable)
- Definition Classes
- StringMap
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noneIf(f: (Kson) => Boolean): Option[Kson]
- Implicit
- This member is added by an implicit conversion from Kson toDrxAny[Kson] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def optionIf(f: (Kson) => Boolean): Option[Kson]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from Kson toDrxAny[Kson] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def preApply[B](f: (Kson) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from Kson toDrxAny[Kson] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def sideEffect(f: (Kson) => Unit): Kson
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from Kson toDrxAny[Kson] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def someIf(f: (Kson) => Boolean): Option[Kson]
- Implicit
- This member is added by an implicit conversion from Kson toDrxAny[Kson] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def split[T](key: String, sep: String)(implicit parser: Parsable[T]): Vector[T]
split
- final def split[T](key: String)(implicit parser: Parsable[T]): Vector[T]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val thisAny: Kson
- Implicit
- This member is added by an implicit conversion from Kson toDrxAny[Kson] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def toByteArray: Array[Byte]
- def toList: List[(String, String)]
- Definition Classes
- StringMap
- final def toMap: Map[String, String]
- Definition Classes
- StringMap
- def toString(): String
- Definition Classes
- Kson → AnyRef → Any
- val unscopedLines: Vector[KsonLine]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def ?>(f: (Kson) => Boolean): Option[Kson]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from Kson toDrxAny[Kson] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) to many symbols are hard to undertand
- def mkPath(parent: String, child: String): String
- Definition Classes
- StringMap
- Annotations
- @deprecated
- Deprecated
(Since version dj) use mkPath with a list of Keys instead
- def |>[B](f: (Kson) => B): B
- Implicit
- This member is added by an implicit conversion from Kson toDrxAny[Kson] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use
preApply
if you must (symbols are concise without concision)
- def →[B](y: B): (Kson, B)
- Implicit
- This member is added by an implicit conversion from Kson toArrowAssoc[Kson] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.