TargetSequenceResolver

laika.rewrite.link.TargetSequenceResolver
case class TargetSequenceResolver(targets: Seq[TargetResolver], sel: Selector) extends TargetResolver

Represents a resolver for a sequence of targets where matching reference nodes get determined by position. The resolveReference and resolveTarget methods can be invoked as many times as this sequence contains elements.

Attributes

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

Members list

Value members

Concrete methods

def replaceTarget(rewrittenOriginal: Element): Option[Element]

Creates the final target element (with its final, resolved identifiers).

Creates the final target element (with its final, resolved identifiers).

Value parameters

rewrittenOriginal

the original target node in the raw document, potentially already rewritten in case any of its children got rewritten

Attributes

def resolveReference(linkSource: LinkSource): Option[Span]

Creates the final link element for the specified reference pointing to this target. In case this target does not know how to resolve the element it should return None.

Creates the final link element for the specified reference pointing to this target. In case this target does not know how to resolve the element it should return None.

Value parameters

linkSource

the source of the link

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Inherited fields

val precedence: Int

Attributes

Inherited from:
TargetResolver

Attributes

Inherited from:
TargetResolver

Attributes

Inherited from:
TargetResolver