Node

com.phasmidsoftware.tableparser.core.write.Node
See theNode companion object
case class Node(style: String, content: Option[String], attributes: Map[String, String], children: Seq[Node])

This case class defines a Node in the hierarchical output produced by rendering. This class is used in conjunction with TreeWriter. The reason for this temporary structure is that we need the ability to merge (or otherwise process) nodes of the tree. Since U (see TreeWriter) is an opaque type as far as this code is concerned, we need our own representation of the tree.

Value parameters

attributes

the attributes of this Node (may be empty).

children

the children of this Node (may be empty).

content

the content of this Node, if any.

style

a label that characterizes a particular node type. This will typically be translated directly into the "tag" parameter of the corresponding U type.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product

Concrete fields

lazy val trim: Node

Method to eliminate nodes of the form Node("", None, Map.empty, ...).

Method to eliminate nodes of the form Node("", None, Map.empty, ...).

Attributes

Returns

a subtree rooted at this, but with nodes trimmed.