ProductFieldsHierarchicalRenderer

com.phasmidsoftware.tableparser.core.render.ProductFieldsHierarchicalRenderer
class ProductFieldsHierarchicalRenderer[T](style: String, attrs: Map[String, String], fieldNames: List[String], fieldRenderers: List[HierarchicalRenderer[_]]) extends ProductHierarchicalRenderer[T]

The HierarchicalRenderer of a case class T, as derived by HierarchicalRenderer.derived.

Type parameters

T

the type of the case class.

Value parameters

attrs

the base attributes of the node for a T.

fieldNames

the names of the fields of T, in declaration order.

fieldRenderers

the HierarchicalRenderers of the fields of T, in the same order.

style

the style of the node for a T.

Attributes

Graph
Supertypes
trait Renderer[T, Node]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def asString(t: T): String

Method to render content as a String. This method is invoked only when T is not a Product, sequence or Option. Normally, the default method is what is required, but it might be necessary to override in some situations. This method does not apply to style or attribute values.

Method to render content as a String. This method is invoked only when T is not a Product, sequence or Option. Normally, the default method is what is required, but it might be necessary to override in some situations. This method does not apply to style or attribute values.

Value parameters

t

the content value.

Attributes

Returns

a String corresponding to t.

Inherited from:
HierarchicalRenderer
def render(t: T, attrs: Map[String, String]): Node

Render an instance of T as a U.

Render an instance of T as a U.

Value parameters

attrs

a map of attributes for this value of U.

t

the input parameter, i.e. the object to be rendered.

Attributes

Returns

a new instance of U.

Inherited from:
ProductHierarchicalRenderer
def render(t: T): Node

Render an instance of T as an O, qualifying the rendering with no attributes.

Render an instance of T as an O, qualifying the rendering with no attributes.

Value parameters

t

a T to be rendered.

Attributes

Returns

an instance of type O.

Inherited from:
Renderer

Inherited fields

override val baseAttrs: Map[String, String]

Defines the base attribute set for type T.

Defines the base attribute set for type T.

Attributes

Inherited from:
ProductHierarchicalRenderer