trait DSL extends DSLImplicits

A DSL to produce valid AST of values.

This is "inspired" by JSON4S code.

import com.tersesystems.blindsight.AST._
import com.tersesystems.blindsight.DSL._
("name", "joe") ~ ("age", 15) == BObject(BField("name",BString("joe")) :: BField("age",BInt(15)) :: Nil)
Source
DSL.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DSL
  2. DSLImplicits
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class JsonAssoc[A] extends AnyRef
  2. class JsonListAssoc extends AnyRef

Abstract Value Members

  1. implicit abstract def bigdecimal2BValue(x: BigDecimal): BValue
    Definition Classes
    DSLImplicits
  2. implicit abstract def double2BValue(x: Double): BValue
    Definition Classes
    DSLImplicits
  3. implicit abstract def float2BValue(x: Float): BValue
    Definition Classes
    DSLImplicits

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from DSL toany2stringadd[DSL] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (DSL, B)
    Implicit
    This member is added by an implicit conversion from DSL toArrowAssoc[DSL] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. implicit def BObject2assoc(o: BObject): JsonListAssoc
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. implicit def bigint2BValue(x: BigInt): BValue
    Definition Classes
    DSLImplicits
  9. implicit def boolean2BValue(x: Boolean): BValue
    Definition Classes
    DSLImplicits
  10. implicit def byte2BValue(x: Byte): BValue
    Definition Classes
    DSLImplicits
  11. implicit def char2BValue(x: Char): BValue
    Definition Classes
    DSLImplicits
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  13. def ensuring(cond: (DSL) => Boolean, msg: => Any): DSL
    Implicit
    This member is added by an implicit conversion from DSL toEnsuring[DSL] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (DSL) => Boolean): DSL
    Implicit
    This member is added by an implicit conversion from DSL toEnsuring[DSL] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: => Any): DSL
    Implicit
    This member is added by an implicit conversion from DSL toEnsuring[DSL] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): DSL
    Implicit
    This member is added by an implicit conversion from DSL toEnsuring[DSL] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from DSL toStringFormat[DSL] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. implicit def int2BValue(x: Int): BValue
    Definition Classes
    DSLImplicits
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. implicit def list2BValue(l: List[BField]): BObject
  25. implicit def long2BValue(x: Long): BValue
    Definition Classes
    DSLImplicits
  26. implicit def map2BValue[A](m: Map[String, A])(implicit ev: (A) => BValue): BObject
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. implicit def option2BValue[A](opt: Option[A])(implicit ev: (A) => BValue): BValue
  31. implicit def pair2Assoc[A](t: (String, A))(implicit ev: (A) => BValue): JsonAssoc[A]
  32. implicit def pair2BValue[A](t: (String, A))(implicit ev: (A) => BValue): BObject
  33. implicit def seq2BValue[A](s: Iterable[A])(implicit ev: (A) => BValue): BArray
  34. implicit def short2BValue(x: Short): BValue
    Definition Classes
    DSLImplicits
  35. implicit def string2BValue(x: String): BValue
    Definition Classes
    DSLImplicits
  36. implicit def symbol2BValue(x: Symbol): BString
  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def [B](y: B): (DSL, B)
    Implicit
    This member is added by an implicit conversion from DSL toArrowAssoc[DSL] 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.

Inherited from DSLImplicits

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromDSL to any2stringadd[DSL]

Inherited by implicit conversion StringFormat fromDSL to StringFormat[DSL]

Inherited by implicit conversion Ensuring fromDSL to Ensuring[DSL]

Inherited by implicit conversion ArrowAssoc fromDSL to ArrowAssoc[DSL]

Ungrouped