trait Htmlx extends AnyRef
This trait provide additional methods on a NodeSeq or a Node representing an html document
- Self Type
- Htmlx
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- Htmlx
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- implicit class HRef extends AnyRef
- case class Header(level: Int = 1, node: Node = new Atom("first level"), namer: UniqueNames = uniqueNamer) extends Product with Serializable
- implicit class HtmlNodeOps extends AnyRef
- implicit class HtmlOps extends AnyRef
- implicit class HtmlSeqNodeOps extends AnyRef
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def anchorName(name: String): String
create a sanitized anchor name
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def headers(nodes: NodeSeq): NodeSeq
- returns
all the headers and all the subtoc elements of a document
- def headersAnchors: RewriteRule { ... /* 3 definitions in type refinement */ }
This rule can be used to add anchors to header elements
- def headersToTree(body: NodeSeq, headers: TreeLoc[Header] = Leaf(Header()).loc): TreeLoc[Header]
collect all the headers as a Tree
- def isHeader(e: Node): Boolean
- returns
true if the element is a header
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nodeText(n: Node): String
- returns
the text of the first child of a Node
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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
- def sanitize(s: String): String
sanitize a string so that it can be used as a href
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def updateHead(ns: NodeSeq)(f: PartialFunction[Node, Node]): NodeSeq
- returns
a NodeSeq where the first Node is updated with a partial function
- 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
- def updateHeadAttribute(ns: NodeSeq, name: String, value: String): NodeSeq
- returns
a NodeSeq where the first Node attribute named 'named' has a new value
- def urls(ns: NodeSeq, filePath: FilePath = DirectoryPath.EMPTY.toFilePath): List[String]
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- implicit object HeaderShow extends Show[Header]
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated