case class ReplaceWith[Item <: LeftLike[Item, Tree[Item, Section, CC]], Section, CC[_]](f: utils.PathFoldR[Item, Section, CC], wholeTree: Boolean = false)(implicit seqLikeThing: SeqLikeThing[CC[_], utils.ItemOrTree[Item, Section, CC], CC]) extends FoldOperation[Item, Section, CC] with Product with Serializable
Allows foldPositions to be nested, only replace and delete makes sense here (afaict).
As such, when wholeTree is false, the path (which must be a tree) is transformed
p => top(p.tree)
and a special case for "deletes" is made - when RemovedRoot is returned from the transformation a delete will take place on the Path. This enforces that only replace and removes are possible and function appropriately.
Warning:
When wholeTree is true the function f is passed the Path (or item) in the original tree, any transformations are then conusmed across the whole tree, which is likely not desired.
- Alphabetic
- By Inheritance
- ReplaceWith
- Serializable
- Product
- Equals
- FoldOperation
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ReplaceWith(f: utils.PathFoldR[Item, Section, CC], wholeTree: Boolean = false)(implicit seqLikeThing: SeqLikeThing[CC[_], utils.ItemOrTree[Item, Section, CC], CC])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def add(path: Path[Item, Section, CC], direction: Int, newPath: Iterable[utils.ItemOrTree[Item, Section, CC]]): utils.FoldR[Item, Section, CC]
- Attributes
- protected
- Definition Classes
- FoldOperation
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val f: utils.PathFoldR[Item, Section, CC]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def perform(path: Path[Item, Section, CC]): utils.FoldR[Item, Section, CC]
- Definition Classes
- ReplaceWith → FoldOperation
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def rootChangeAllowed: Boolean
- Attributes
- protected
- Definition Classes
- FoldOperation
- implicit val seqLikeThing: SeqLikeThing[CC[_], utils.ItemOrTree[Item, Section, CC], CC]
- Definition Classes
- ReplaceWith → FoldOperation
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- val wholeTree: Boolean