RewritePhase

laika.ast.RewritePhase
See theRewritePhase companion trait
case object RewritePhase

Attributes

Companion
trait
Source
RewriteRules.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Classlikes

case object Build extends RewritePhase

Represents the first rewrite phase after parsing.

Represents the first rewrite phase after parsing.

This is the only phase where the introduction of new link targets is still allowed. By default all directives and all rewrite rules that do *not* have access to a document cursor run in this phase.

Attributes

Source
RewriteRules.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait RewritePhase
class Object
trait Matchable
class Any
Show all
Self type
Build.type
case class Render(context: OutputContext) extends RewritePhase

Represents the final rewrite phase before rendering.

Represents the final rewrite phase before rendering.

This phase is specific to the output format and therefore the only phase type that is parameterized. By default all directives and all rewrite rules that do have access to a document cursor run in this phase to ensure that their cursor represents a state that is close to the final AST passed to the renderer.

Attributes

Companion
object
Source
RewriteRules.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait RewritePhase
class Object
trait Matchable
class Any
Show all
object Render

Attributes

Companion
class
Source
RewriteRules.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Render.type
case object Resolve extends RewritePhase

Represents the second rewrite phase between parsing and rendering.

Represents the second rewrite phase between parsing and rendering.

By default no user rules or directives run in this phase, it is mostly reserved for the internal rules for link resolvers and similar tasks.

Attributes

Source
RewriteRules.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait RewritePhase
class Object
trait Matchable
class Any
Show all
Self type
Resolve.type

Inherited types

type MirroredElemLabels = EmptyTuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredElemTypes = EmptyTuple

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredMonoType = Singleton.this.type

The mirrored *-type

The mirrored *-type

Attributes

Inherited from:
Singleton
Source
Mirror.scala
type MirroredType = Singleton.this.type

Attributes

Inherited from:
Singleton
Source
Mirror.scala

Value members

Inherited methods

def fromProduct(p: Product): MirroredMonoType

Create a new instance of type T with elements taken from product p.

Create a new instance of type T with elements taken from product p.

Attributes

Inherited from:
Singleton
Source
Mirror.scala
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product