case class ParserBundle(blockParsers: Seq[BlockParserBuilder] = Nil, spanParsers: Seq[SpanParserBuilder] = Nil, syntaxHighlighters: Seq[SyntaxHighlighter] = Nil, markupParserHooks: Option[ParserHooks] = None, configProvider: Option[ConfigProvider] = None, templateParser: Option[Parser[TemplateRoot]] = None, styleSheetParser: Option[Parser[Set[StyleDeclaration]]] = None) extends Product with Serializable
Bundles a collection of all types of parsers used in a transformation.
The parsers for text markup and configuration headers are meant to complement base parsers defined by the host language. If they fail for a given input the built-in parsers will still be tried for the same block, span or configuration header respectively.
The parsers for stylesheets and templates on the other hand are meant to overwrite any previously installed parsers.
- blockParsers
parsers for block elements in text markup, complementing the parsers of the host language
- spanParsers
parsers for span elements in text markup, complementing the parsers of the host language
- syntaxHighlighters
parsers for syntax highlighting of code blocks
- markupParserHooks
hooks for markup parsers to control aspects beyond the individual span and block parsers
- configProvider
parser for configuration headers in text markup and template documents and configuration documents
- templateParser
parser for template documents
- styleSheetParser
parser for CSS documents
- Alphabetic
- By Inheritance
- ParserBundle
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ParserBundle(blockParsers: Seq[BlockParserBuilder] = Nil, spanParsers: Seq[SpanParserBuilder] = Nil, syntaxHighlighters: Seq[SyntaxHighlighter] = Nil, markupParserHooks: Option[ParserHooks] = None, configProvider: Option[ConfigProvider] = None, templateParser: Option[Parser[TemplateRoot]] = None, styleSheetParser: Option[Parser[Set[StyleDeclaration]]] = None)
- blockParsers
parsers for block elements in text markup, complementing the parsers of the host language
- spanParsers
parsers for span elements in text markup, complementing the parsers of the host language
- syntaxHighlighters
parsers for syntax highlighting of code blocks
- markupParserHooks
hooks for markup parsers to control aspects beyond the individual span and block parsers
- configProvider
parser for configuration headers in text markup and template documents and configuration documents
- templateParser
parser for template documents
- styleSheetParser
parser for CSS documents
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
- val blockParsers: Seq[BlockParserBuilder]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val configProvider: Option[ConfigProvider]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
markupExtensions: MarkupExtensions
Just the extensions for the text markup parser defined in this bundle.
Just the extensions for the text markup parser defined in this bundle. Fallback instances will be added where appropriate for parsers or hooks not defined in this bundle.
- val markupParserHooks: Option[ParserHooks]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val spanParsers: Seq[SpanParserBuilder]
- val styleSheetParser: Option[Parser[Set[StyleDeclaration]]]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val syntaxHighlighters: Seq[SyntaxHighlighter]
- val templateParser: Option[Parser[TemplateRoot]]
-
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( ... )
-
def
withBase(base: ParserBundle): ParserBundle
Merges this instance with the specified base.
Merges this instance with the specified base. Collections of parsers will be merged. Optional parsers in this instance will overwrite optional parsers in the base (if defined), with the base only serving as a fallback.
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated