StyleDeclarationSet

laika.ast.StyleDeclarationSet
See theStyleDeclarationSet companion object
case class StyleDeclarationSet(paths: Set[Path], styles: Set[StyleDeclaration], precedence: Precedence)

Represents a set of one or more style declarations.

Value parameters

paths

the paths the style declarations have been obtained from

precedence

the precedence of this set compared to other provided sets

styles

the style declarations that belong to this set

Attributes

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

Members list

Value members

Concrete methods

Merges the style declaration of this instance with the specified set and returns the merged set in a new instance.

Merges the style declaration of this instance with the specified set and returns the merged set in a new instance.

Attributes

def collectStyles(target: Element, parents: Seq[Element]): Map[String, String]

Collects all the styles that apply to the specified target element.

Collects all the styles that apply to the specified target element.

Value parameters

parents

the parents of the specified target element

target

the target element to collect the matching styles for

Attributes

Returns

a map representing the keys and values of all styles that apply to the target element

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product