RegexTreeStringBuilder

weaponregex.extension.RegexTreeExtension$.RegexTreeStringBuilder
implicit class RegexTreeStringBuilder(tree: RegexTree)

The extension that build a given weaponregex.model.regextree.RegexTree into a string

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def buildWhile(pred: RegexTree => Boolean): String

Build the tree into a String while a predicate holds for a given child.

Build the tree into a String while a predicate holds for a given child.

Value parameters

pred

Predicate on a child

Attributes

Returns

A String representation of the tree

def buildWith(child: RegexTree, childString: String): String

Build the tree into a String with a child replaced by a string.

Build the tree into a String with a child replaced by a string.

Value parameters

child

Child to be replaced

childString

Replacement String

Attributes

Returns

A String representation of the tree

Concrete fields

lazy val build: String

Build the tree into a String

Build the tree into a String

Attributes