Packages

c

scala.xml.transform

RewriteRule

abstract class RewriteRule extends BasicTransformer

A RewriteRule, when applied to a term, yields either the result of rewriting the term or the term itself if the rule is not applied.

Version

1.0

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RewriteRule
  2. BasicTransformer
  3. Function1
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RewriteRule()

Value Members

  1. def andThen[A](g: (Node) ⇒ A): (Node) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  2. def apply(n: Node): Node
    Definition Classes
    BasicTransformer → Function1
  3. def compose[A](g: (A) ⇒ Node): (A) ⇒ Node
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  4. val name: String

    a name for this rewrite rule

  5. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  6. def transform(n: Node): Seq[Node]
    Definition Classes
    RewriteRuleBasicTransformer
  7. 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
    RewriteRuleBasicTransformer
  8. 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.

    Definition Classes
    BasicTransformer