Packages

trait Htmlx extends AnyRef

This trait provide additional methods on a NodeSeq or a Node representing an html document

Self Type
Htmlx
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Htmlx
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. implicit class HRef extends AnyRef
  2. case class Header(level: Int = 1, node: Node = new Atom("first level"), namer: UniqueNames = uniqueNamer) extends Product with Serializable
  3. implicit class HtmlNodeOps extends AnyRef
  4. implicit class HtmlOps extends AnyRef
  5. implicit class HtmlSeqNodeOps 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. def anchorName(name: String): String

    create a sanitized anchor name

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def headers(nodes: NodeSeq): NodeSeq

    returns

    all the headers and all the subtoc elements of a document

  12. def headersAnchors: RewriteRule { ... /* 3 definitions in type refinement */ }

    This rule can be used to add anchors to header elements

  13. def headersToTree(body: NodeSeq, headers: TreeLoc[Header] = Leaf(Header()).loc): TreeLoc[Header]

    collect all the headers as a Tree

  14. def isHeader(e: Node): Boolean

    returns

    true if the element is a header

  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def nodeText(n: Node): String

    returns

    the text of the first child of a Node

  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def rewriteRule(pf: PartialFunction[Node, Seq[Node]]): RewriteRule { ... /* 3 definitions in type refinement */ }

    returns

    a rewrite rule that will rewrite recursively each node based on a partial function

  21. def sanitize(s: String): String

    sanitize a string so that it can be used as a href

  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. def updateHead(ns: NodeSeq)(f: PartialFunction[Node, Node]): NodeSeq

    returns

    a NodeSeq where the first Node is updated with a partial function

  25. def updateHeadAttribute(ns: NodeSeq, name: String, value: Int): NodeSeq

    returns

    a NodeSeq where the first Node attribute named 'named' has a new value, from an Int

  26. def updateHeadAttribute(ns: NodeSeq, name: String, value: String): NodeSeq

    returns

    a NodeSeq where the first Node attribute named 'named' has a new value

  27. def urls(ns: NodeSeq, filePath: FilePath = DirectoryPath.EMPTY.toFilePath): List[String]

    returns

    the href urls in elements

  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. implicit object HeaderShow extends Show[Header]

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