Element

laika.ast.Element
abstract class Element extends Product with Serializable

The base class for all Elements forming the document tree. Usually not extended directly, instead either Span or Block should be picked as the base type for new element types.

All node types have an optional id and zero or more associated styles serving as render hints.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
trait Block
class Contents
class Include
class Citation
class CodeBlock
class Comment
class LinkAlias
class EnumList
class Figure
class Footnote
class Header
class PageBreak
class Paragraph
class Rule
class Section
class Selection
class Table
class Title
class HTMLBlock
class Preamble
class FieldList
class Line
class LineBlock
trait Container[T]
class Cell
class Choice
class Field
class Caption
class Deleted
class Inserted
class SpanLink
class Strong
class Columns
class Row
class TableBody
class TableHead
class CodeSpan
class Literal
class Text
trait Hidden
trait Invalid
trait ListItem
trait Span
trait Icon
class IconGlyph
class IconStyle
class LineBreak
trait Link
class Image
class RawLink
trait LocalLink
trait Reference
class Reverse
class SpanScope
class HTMLSpan
class Leader
class Column
trait ElementScope[E]

Members list

Concise view

Type members

Types

type Self <: Element

Value members

Abstract methods

def withOptions(options: Options): Self

Returns a new instance of this element with the specified options replacing the current value.

Returns a new instance of this element with the specified options replacing the current value.

Attributes

Concrete methods

def hasId: Boolean

Indicates whether this element has an id assigned.

Indicates whether this element has an id assigned.

Attributes

def hasStyle(name: String): Boolean

Indicates whether this element has the specified style assigned.

Indicates whether this element has the specified style assigned.

Attributes

Returns a new instance of this element with its options merged with the specified options.

Returns a new instance of this element with its options merged with the specified options.

Attributes

Returns a new instance of this element with the new options obtained from applying the specified function to the existing value.

Returns a new instance of this element with the new options obtained from applying the specified function to the existing value.

Attributes

def withId(id: String): Self

Returns a new instance of this element with its id set to the specified value, overriding any existing value.

Returns a new instance of this element with its id set to the specified value, overriding any existing value.

Attributes

def withStyle(name: String): Self

Returns a new instance of this element with the specified style added to its existing styles.

Returns a new instance of this element with the specified style added to its existing styles.

Attributes

def withStyles(style: String, styles: String*): Self

Returns a new instance of this element with the specified styles added to its existing styles.

Returns a new instance of this element with the specified styles added to its existing styles.

Attributes

def withStyles(styles: Iterable[String]): Self

Returns a new instance of this element with the specified styles added to its existing styles.

Returns a new instance of this element with the specified styles added to its existing styles.

Attributes

Returns a new instance of this element without its id.

Returns a new instance of this element without its id.

Attributes

Inherited methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
def productArity: Int

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product
def productElementName(n: Int): String

Attributes

Inherited from:
Product
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def productPrefix: String

Attributes

Inherited from:
Product