in scala/xml/transform
class RewriteRule

abstract class RewriteRule()
extends BasicTransformer
with ScalaObject

a RewriteRule, when applied to a term, yields either the resulting of rewriting or the term itself it the rule is not applied

Field Summary
  val name: String
     a name for this rewrite rule

Method Summary
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
override def transform(n: Node): Seq[Node]

Methods inherited from java/lang/Object-class
clone, eq, equals, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, toString, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Methods inherited from scala/ScalaObject-class
getScalaType

Methods inherited from scala/xml/transform/BasicTransformer-class
NeedsCopy, apply, buffer, freeze, single, unchanged

Field Detail

name

  val name: String
a name for this rewrite rule
Method Detail

transform

  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

transform

  override def transform(n: Node): Seq[Node]