object DirectiveParsers
Parsers for all types of custom directives that can be used in templates or as inline or block elements in markup documents.
- Alphabetic
- By Inheritance
- DirectiveParsers
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type BodyParserBuilder = (DirectiveSpec) ⇒ Parser[Option[SourceFragment]]
- case class DirectiveSpec(name: String, fence: String) extends Product with Serializable
-
case class
ParsedDirective(name: String, attributes: ObjectBuilderValue, body: Option[SourceFragment]) extends Product with Serializable
Represents the parsed but unprocessed content of a directive.
-
case class
Part(key: AttributeKey, content: String) extends Product with Serializable
Represents one part of a directive (an attribute or a body element).
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
declarationParser(escapedText: EscapedTextParsers, supportsCustomFence: Boolean = false): Parser[(String, ObjectBuilderValue, String)]
Parses a full directive declaration, containing all its attributes, but not the body elements.
-
def
directiveParser(bodyContent: BodyParserBuilder, escapedText: EscapedTextParsers, supportsCustomFence: Boolean = false): Parser[ParsedDirective]
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
- supportsCustomFence
indicates whether the directive declaration allows the addition of a custom closing fence
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hoconReference[T](f: (Key, Boolean, SourceFragment) ⇒ T, e: (InvalidSpan) ⇒ T): PrefixedParser[T]
Parses a HOCON-style reference enclosed between
${
and}
that may be marked as optional (${?some.param}
). -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
lazy val
nameDecl: Parser[String]
Parses a name declaration that start with a letter and continues with letters, numbers or the symbols '-' or '_'.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val nestedBraces: PrefixedParser[Text]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
lazy val
wsOrNl: Parser[String]
Parses horizontal whitespace or newline characters.
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated