NodeRewriteRule

org.specs2.html.Htmlx.NodeRewriteRule
case class NodeRewriteRule(pf: PartialFunction[Node, Seq[Node]]) extends RewriteRule

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class RewriteRule
class BasicTransformer
trait Node => Node
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def applyTransformation(ns: Seq[Node]): Seq[Node]
def applyTransformation(n: Node): Seq[Node]
def rewrite(n: NodeSeq): Seq[Node]

Inherited methods

def andThen[A](g: Node => A): T1 => A

Attributes

Inherited from:
Function1
override def apply(n: Node): Node

Attributes

Definition Classes
BasicTransformer -> Function1
Inherited from:
BasicTransformer
def compose[A](g: A => Node): A => R

Attributes

Inherited from:
Function1
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1
override def transform(n: Node): Seq[Node]

Attributes

Definition Classes
RewriteRule -> BasicTransformer
Inherited from:
RewriteRule
override def transform(ns: Seq[Node]): Seq[Node]

Call transform(Node) to each node in ns, yield ns if nothing changes, otherwise a new sequence of concatenated results.

Call transform(Node) to each node in ns, yield ns if nothing changes, otherwise a new sequence of concatenated results.

Attributes

Definition Classes
RewriteRule -> BasicTransformer
Inherited from:
RewriteRule
def transform(it: Iterator[Node], nb: NodeBuffer): Seq[Node]

Call transform(Node) for each node in ns, append results to NodeBuffer.

Call transform(Node) for each node in ns, append results to NodeBuffer.

Attributes

Inherited from:
BasicTransformer
protected def unchanged(n: Node, ns: Seq[Node]): Boolean

Attributes

Inherited from:
BasicTransformer