DirectiveInstance

case class DirectiveInstance(directive: Option[Directive], parsedResult: ParsedDirective, parser: RecursiveSpanParsers, source: SourceFragment, rewriteRules: RewriteRules, options: Options) extends SpanResolver with RewritableContainer
trait Span
class Element
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Type members

Value members

Concrete methods

def createInvalidElement(message: String): Span
override def resolve(cursor: DocumentCursor): Span
Definition Classes
DirectiveInstanceBase -> SpanResolver

Inherited methods

def hasId: Boolean

Indicates whether this element has an id assigned.

Indicates whether this element has an id assigned.

Inherited from:
Element
def hasStyle(name: String): Boolean

Indicates whether this element has the specified style assigned.

Indicates whether this element has the specified style assigned.

Inherited from:
Element

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.

Inherited from:
Element

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.

Inherited from:
Element
def name: String
Inherited from:
DirectiveProcessor (hidden)
def process[T](cursor: DocumentCursor, factory: Option[DirectiveContent => Result[T]]): Result[T]
Inherited from:
DirectiveProcessor (hidden)
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Rewrites all span children of this container based on the specified rules.

Rewrites all span children of this container based on the specified rules.

Concrete types are expected to support rewriting at least for all standard block, span and template span elements they contain, plus optionally for any other elements that have custom support for rewriting.

Inherited from:
RewritableContainer
def runsIn(phase: RewritePhase): Boolean
Inherited from:
DirectiveInstanceBase (hidden)
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.

Inherited from:
Element
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.

Inherited from:
Element
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.

Inherited from:
Element
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.

Inherited from:
Element

Returns a new instance of this element without its id.

Returns a new instance of this element without its id.

Inherited from:
Element

Concrete fields

val typeName: String
lazy val unresolvedMessage: String