Package com.vladsch.flexmark.parser
Interface InlineParser
-
- All Superinterfaces:
LightInlineParser
- All Known Implementing Classes:
CommonmarkInlineParser
,InlineParserImpl
public interface InlineParser extends LightInlineParser
Parser for inline content (text, links, emphasized text, etc).This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
finalizeDocument(@NotNull Document document)
@Nullable Bracket
getLastBracket()
@Nullable Delimiter
getLastDelimiter()
void
initializeDocument(@NotNull Document document)
void
mergeIfNeeded(@Nullable Text first, @Nullable Text last)
void
mergeTextNodes(@Nullable Node fromNode, @Nullable Node toNode)
void
parse(@NotNull BasedSequence input, @NotNull Node node)
boolean
parseAutolink()
@Nullable java.util.List<Node>
parseCustom(@NotNull BasedSequence input, @NotNull Node node, @NotNull java.util.BitSet customCharacters, @NotNull java.util.Map<java.lang.Character,CharacterNodeFactory> nodeFactoryMap)
boolean
parseEntity()
boolean
parseHtmlInline()
@Nullable BasedSequence
parseLinkDestination()
int
parseLinkLabel()
@Nullable BasedSequence
parseLinkTitle()
boolean
parseNewline()
void
processDelimiters(@Nullable Delimiter stackBottom)
void
removeDelimiter(@NotNull Delimiter delim)
void
removeDelimiterAndNode(@NotNull Delimiter delim)
void
removeDelimiterKeepNode(@NotNull Delimiter delim)
void
removeDelimitersBetween(@NotNull Delimiter opener, @NotNull Delimiter closer)
@Nullable BasedSequence
toEOL()
-
Methods inherited from interface com.vladsch.flexmark.parser.LightInlineParser
appendNode, appendSeparateText, appendText, appendText, flushTextNode, getBlock, getCurrentText, getDocument, getIndex, getInput, getOptions, getParsing, match, matcher, matchWithGroups, moveNodes, nonIndentSp, peek, peek, setBlock, setDocument, setIndex, setInput, sp, spnl, spnlUrl
-
-
-
-
Method Detail
-
initializeDocument
void initializeDocument(@NotNull @NotNull Document document)
-
finalizeDocument
void finalizeDocument(@NotNull @NotNull Document document)
-
parse
void parse(@NotNull @NotNull BasedSequence input, @NotNull @NotNull Node node)
- Parameters:
input
- the content to parse as inlinenode
- the node to append resulting nodes to (as children)
-
getLastDelimiter
@Nullable @Nullable Delimiter getLastDelimiter()
-
getLastBracket
@Nullable @Nullable Bracket getLastBracket()
-
parseCustom
@Nullable @Nullable java.util.List<Node> parseCustom(@NotNull @NotNull BasedSequence input, @NotNull @NotNull Node node, @NotNull @NotNull java.util.BitSet customCharacters, @NotNull @NotNull java.util.Map<java.lang.Character,CharacterNodeFactory> nodeFactoryMap)
-
mergeTextNodes
void mergeTextNodes(@Nullable @Nullable Node fromNode, @Nullable @Nullable Node toNode)
-
toEOL
@Nullable @Nullable BasedSequence toEOL()
- Specified by:
toEOL
in interfaceLightInlineParser
-
parseNewline
boolean parseNewline()
-
parseLinkDestination
@Nullable @Nullable BasedSequence parseLinkDestination()
-
parseLinkTitle
@Nullable @Nullable BasedSequence parseLinkTitle()
-
parseLinkLabel
int parseLinkLabel()
-
parseAutolink
boolean parseAutolink()
-
parseHtmlInline
boolean parseHtmlInline()
-
parseEntity
boolean parseEntity()
-
processDelimiters
void processDelimiters(@Nullable @Nullable Delimiter stackBottom)
-
removeDelimitersBetween
void removeDelimitersBetween(@NotNull @NotNull Delimiter opener, @NotNull @NotNull Delimiter closer)
-
removeDelimiterAndNode
void removeDelimiterAndNode(@NotNull @NotNull Delimiter delim)
-
removeDelimiterKeepNode
void removeDelimiterKeepNode(@NotNull @NotNull Delimiter delim)
-
removeDelimiter
void removeDelimiter(@NotNull @NotNull Delimiter delim)
-
-