scala.xml.transform
class RewriteRule

[source: `scala/xml/transform/RewriteRule.scala`]

`abstract` `class` RewriteRule
  `extends` BasicTransformer

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

Author
  Burak Emir
Version
  1.0

Value 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 BasicTransformer
buffer, freeze, single, unchanged, transform, apply

Methods inherited from Function1
toString, compose, andThen

Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Value Details

`` `val` name : String

  a name for this rewrite rule

Method Details

`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.

Overrides
  BasicTransformer.transform

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

Overrides
  BasicTransformer.transform