Package org.commonmark.internal.inline
Class BackticksInlineParser.Factory
java.lang.Object
org.commonmark.internal.inline.BackticksInlineParser.Factory
- All Implemented Interfaces:
InlineContentParserFactory
- Enclosing class:
BackticksInlineParser
public static class BackticksInlineParser.Factory
extends Object
implements InlineContentParserFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create anInlineContentParser
that will do the parsing.An inline content parser needs to have a special "trigger" character which activates it.
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
getTriggerCharacters
Description copied from interface:InlineContentParserFactory
An inline content parser needs to have a special "trigger" character which activates it. When this character is encountered during inline parsing,InlineContentParser.tryParse(org.commonmark.parser.beta.InlineParserState)
is called with the current parser state. It can also register for more than one trigger character.- Specified by:
getTriggerCharacters
in interfaceInlineContentParserFactory
-
create
Description copied from interface:InlineContentParserFactory
Create anInlineContentParser
that will do the parsing. Create is called once per text snippet of inline content inside block structures, and then called each time a trigger character is encountered.- Specified by:
create
in interfaceInlineContentParserFactory
-