Packages

c

levsha.dsl

SymbolDsl

class SymbolDsl[MiscType] extends AnyRef

Symbol based DSL allows to define documents. Deprecated because Scala 2.13 drops support of symbol literals.

'body(
  'h1(class /= "title", "Hello World"),
  'p("Lorem ipsum dolor")
)
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SymbolDsl
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SymbolDsl()

Type Members

  1. implicit final class QualifiedNameOps extends AnyRef
  2. implicit final class SymbolOps extends AnyRef
  3. implicit final class XmlNsOps extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. implicit def arbitraryOptionToNode[T](value: Option[T])(implicit ev: (T) => Node[MiscType]): Node[MiscType]

    Converts option of T (which can be converted to Node) to document node

  5. implicit def arbitrarySeqToNode[T](xs: Iterable[T])(implicit ev: (T) => Node[MiscType]): Node[MiscType]

    Converts sequence of T (which can be converted to Node) to document fragment

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. implicit def miscToNode(value: MiscType): Node[MiscType]

    Converts MiscType to text document node

  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. val ns: XmlNs.type
  18. implicit def optionToAttr(value: Option[Attr[MiscType]]): Attr[MiscType]

    Implicitly unwraps optional attributes

  19. implicit def optionToNode(value: Option[Node[MiscType]]): Node[MiscType]

    Implicitly unwraps optional documents

  20. implicit def seqToAttr(xs: Iterable[Attr[MiscType]]): Attr[MiscType]

    Converts iterable of attributes to document one attr

  21. implicit def seqToNode(xs: Iterable[Node[MiscType]]): Node[MiscType]

    Converts iterable of templates to document fragment

  22. implicit def stringToNode(value: String): Node[MiscType]

    Converts String to text document node

  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. val void: Empty.type
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. 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

Inherited from AnyRef

Inherited from Any

Ungrouped