implicit final class TextTreeGenericOps[T] extends AnyRef
Core operations for TextTree
- Alphabetic
- By Inheritance
- TextTreeGenericOps
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 as[W](implicit conv: (T) => W): TextTree[W]
Convert tree values using an implicit conversion
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def dump: String
Render tree to string using .toString on values
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flatten: TextTree[T]
Flatten nested Node structures into a single-level Node
- def foreach(f: (T) => Unit): Unit
Apply a side-effecting function to all typed values
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isEmpty: Boolean
Check if tree is empty (no values and only empty text)
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def last: Option[Char]
Get the last character from string nodes, if any
- def map[U](f: (T) => U): TextTree[U]
Transform all typed values in the tree
- def mapRender(f: (T) => String): String
Render tree to string, converting values with provided function
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nonEmpty: Boolean
Check if tree is non-empty
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def rawChunks: Seq[String]
Get a list of string nodes (values ingored)
- def render(implicit ev: =:=[T, Nothing]): String
Render tree to string (only for trees without typed values)
- def shift(pad: Int): TextTree[T]
Wrap tree in Shift node to indent by specified spaces when rendering
- def stripMargin: TextTree[T]
Strip margin from string nodes using default '|' margin character
- def stripMargin(marginChar: Char): TextTree[T]
Strip margin from string nodes using custom margin character
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trim: TextTree[T]
Wrap tree in Trim node to trim whitespace when rendering
- def values: Seq[T]
Extract all typed values from the tree
- 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()