NodeRewriteRule

case class NodeRewriteRule(pf: PartialFunction[Node, Seq[Node]]) extends RewriteRule
trait Serializable
trait Product
trait Equals
class RewriteRule
class BasicTransformer
trait Node => Node
class Object
trait Matchable
class Any

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
Inherited from:
Function1
def apply(n: Node): Node
Inherited from:
BasicTransformer
def compose[A](g: A => Node): A => R
Inherited from:
Function1
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
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.

Returns:

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1
override def transform(n: Node): Seq[Node]
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.

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.

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