DirectivePart

laika.directive.BuilderContext.DirectivePart
See theDirectivePart companion object
abstract class DirectivePart[+A] extends DirectiveContext => Result[A]

Represents a single part (attribute or body) of a directive or a combination of multiple parts.

Attributes

Companion
object
Graph
Supertypes
trait DirectiveContext => Result[A]
class Object
trait Matchable
class Any
Known subtypes
Self type

Members list

Value members

Abstract methods

def hasBody: Boolean

Indicates whether the directive supports a body section after the directive name and attribute section.

Indicates whether the directive supports a body section after the directive name and attribute section.

Attributes

def needsCursor: Boolean

Indicates whether this part or any of its sub-parts requests access to a cursor. This information is used to determine the default phase a directive should be resolved in.

Indicates whether this part or any of its sub-parts requests access to a cursor. This information is used to determine the default phase a directive should be resolved in.

Attributes

def separators: Set[String]

The names of the separator directives accepted by this directive part.

The names of the separator directives accepted by this directive part.

Attributes

Concrete methods

def evalMap[B](f: A => Either[String, B]): DirectivePart[B]
def map[B](f: A => B): DirectivePart[B]

Inherited methods

def andThen[A](g: Result[A] => A): T1 => A

Attributes

Inherited from:
Function1
def apply(v1: DirectiveContext): R

Attributes

Inherited from:
Function1
def compose[A](g: A => DirectiveContext): A => R

Attributes

Inherited from:
Function1
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1