scala.xml.transform.RewriteRule.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala-xml Show documentation
Show all versions of scala-xml Show documentation
XML Library for the Scala Programming Language
The newest version!
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2013, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
package scala
package xml
package transform
/** 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.
*
* @author Burak Emir
* @version 1.0
*/
abstract class RewriteRule extends BasicTransformer {
/** a name for this rewrite rule */
val name = this.toString()
override def transform(ns: Seq[Node]): Seq[Node] = super.transform(ns)
override def transform(n: Node): Seq[Node] = n
}