case class ParserHooks(postProcessBlocks: (Seq[Block]) ⇒ Seq[Block] = identity, postProcessDocument: (UnresolvedDocument) ⇒ UnresolvedDocument = identity, preProcessInput: (DocumentInput) ⇒ DocumentInput = identity) extends Product with Serializable
Hooks for markup parsers to control aspects beyond the individual span and block parsers defined for the host language.
- postProcessBlocks
function invoked for every block container, allowing post-processing of the result
- postProcessDocument
function invoked after parsing but before rewriting, allowing to modify the document
- preProcessInput
function invoked before parsing, allowing to pre-process the input
- Alphabetic
- By Inheritance
- ParserHooks
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ParserHooks(postProcessBlocks: (Seq[Block]) ⇒ Seq[Block] = identity, postProcessDocument: (UnresolvedDocument) ⇒ UnresolvedDocument = identity, preProcessInput: (DocumentInput) ⇒ DocumentInput = identity)
- postProcessBlocks
function invoked for every block container, allowing post-processing of the result
- postProcessDocument
function invoked after parsing but before rewriting, allowing to modify the document
- preProcessInput
function invoked before parsing, allowing to pre-process the input
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()
-
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
-
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 postProcessBlocks: (Seq[Block]) ⇒ Seq[Block]
- val postProcessDocument: (UnresolvedDocument) ⇒ UnresolvedDocument
- val preProcessInput: (DocumentInput) ⇒ DocumentInput
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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: ParserHooks): ParserHooks
Merges this instance with the specified base.
Merges this instance with the specified base. The functions specified in the base are always invoked before the functions in this instance.
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated