|
Scala Library
|
|
abstract
class
BasicTransformer
extends (Node) => Node| Method Summary | |
def
|
apply (n : Node) : Node |
protected def
|
buffer
(pos : Int, ns : Seq[Node]) : NodeBuffer
Returns a new node buffer with the first
pos elements
from ns. |
protected def
|
freeze
(nb : NodeBuffer) : Seq[Node]
Turns a nodebuffer into a sequence, so hashcode works.
|
protected def
|
single (ns : Seq[Node]) : Boolean |
def
|
transform (n : Node) : Seq[Node] |
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.
|
def
|
transform
(it : Iterator[Node], nb : NodeBuffer) : Seq[Node]
Call transform(Node) for each node in ns, append results
to NodeBuffer.
|
protected def
|
unchanged (n : Node, ns : Seq[Node]) : Boolean |
| 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 |
| Class Summary | |
protected case class
|
NeedsCopy
(val result : Seq[Node]) extends java.lang.Throwable with Product
|
| Method Details |
protected
def
buffer(pos : Int, ns : Seq[Node]) : NodeBuffer
pos elements
from ns.pos - ..ns - ..protected
def
freeze(nb : NodeBuffer) : Seq[Node]
nb - ..n - ...ns - ...
def
transform(it : Iterator[Node], nb : NodeBuffer) : Seq[Node]
|
Scala Library
|
|