Object

laika.parse.directive

DirectiveParsers

Related Doc: package directive

Permalink

object DirectiveParsers

Parsers for all types of custom directives that can be used in templates or as inline or block elements in markup documents.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DirectiveParsers
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract class DirectiveContextBase extends AnyRef

    Permalink
  2. case class ParsedDirective(name: String, parts: List[Part]) extends Product with Serializable

    Permalink

    Represents the parsed but unprocessed content of a directive.

  3. case class Part(key: Key, content: String) extends Product with Serializable

    Permalink

    Represents one part of a directive (an attribute or a body element).

  4. type PartMap = Map[Key, String]

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def applyDirective[E <: Element](builder: BuilderContext[E])(parseResult: ParsedDirective, directives: (String) ⇒ Option[Directive], createContext: (PartMap, Option[DocumentCursor]) ⇒ DirectiveContext, createPlaceholder: ((DocumentCursor) ⇒ E) ⇒ E, createInvalidElement: (String) ⇒ E, directiveTypeDesc: String): E

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def declarationParser(escapedText: EscapedTextParsers): Parser[(String, List[Part])]

    Permalink

    Parses a full directive declaration, containing all its attributes, but not the body elements.

  8. def directiveParser(bodyContent: Parser[String], escapedText: EscapedTextParsers): Parser[ParsedDirective]

    Permalink

    Parses one directive instance containing its name declaration, all attributes and all body elements.

    Parses one directive instance containing its name declaration, all attributes and all body elements.

    bodyContent

    the parser for the body content which is different for a block directive than for a span or template directive

    escapedText

    the parser for escape sequences according to the rules of the host markup language

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. lazy val nameDecl: Parser[String]

    Permalink

    Parses a name declaration that start with a letter and continues with letters, numbers or the symbols '-' or '_'.

  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. val nestedBraces: Parser[Text]

    Permalink
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def reference[T](f: (String) ⇒ T): Parser[T]

    Permalink

    Parses a reference enclosed between {{ and }}.

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def withSource[T](p: Parser[T]): Parser[(T, String)]

    Permalink

    Groups the result of the parser and the source string that it successfully parsed into a tupled result.

  27. lazy val wsOrNl: Parser[String]

    Permalink

    Parses horizontal whitespace or newline characters.

Inherited from AnyRef

Inherited from Any

Ungrouped