Package com.vladsch.flexmark.parser
Interface InlineParser
-
- All Superinterfaces:
LightInlineParser
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 com.vladsch.flexmark.util.ast.Document document)
@Nullable Bracket
getLastBracket()
@Nullable Delimiter
getLastDelimiter()
void
initializeDocument(@NotNull com.vladsch.flexmark.util.ast.Document document)
void
mergeIfNeeded(@Nullable Text first, @Nullable Text last)
void
mergeTextNodes(@Nullable com.vladsch.flexmark.util.ast.Node fromNode, @Nullable com.vladsch.flexmark.util.ast.Node toNode)
void
parse(@NotNull com.vladsch.flexmark.util.sequence.BasedSequence input, @NotNull com.vladsch.flexmark.util.ast.Node node)
boolean
parseAutolink()
@Nullable List<com.vladsch.flexmark.util.ast.Node>
parseCustom(@NotNull com.vladsch.flexmark.util.sequence.BasedSequence input, @NotNull com.vladsch.flexmark.util.ast.Node node, @NotNull BitSet customCharacters, @NotNull Map<Character,CharacterNodeFactory> nodeFactoryMap)
boolean
parseEntity()
boolean
parseHtmlInline()
@Nullable com.vladsch.flexmark.util.sequence.BasedSequence
parseLinkDestination()
int
parseLinkLabel()
@Nullable com.vladsch.flexmark.util.sequence.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 com.vladsch.flexmark.util.sequence.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 com.vladsch.flexmark.util.ast.Document document)
-
finalizeDocument
void finalizeDocument(@NotNull @NotNull com.vladsch.flexmark.util.ast.Document document)
-
parse
void parse(@NotNull @NotNull com.vladsch.flexmark.util.sequence.BasedSequence input, @NotNull @NotNull com.vladsch.flexmark.util.ast.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 List<com.vladsch.flexmark.util.ast.Node> parseCustom(@NotNull @NotNull com.vladsch.flexmark.util.sequence.BasedSequence input, @NotNull @NotNull com.vladsch.flexmark.util.ast.Node node, @NotNull @NotNull BitSet customCharacters, @NotNull @NotNull Map<Character,CharacterNodeFactory> nodeFactoryMap)
-
mergeTextNodes
void mergeTextNodes(@Nullable @Nullable com.vladsch.flexmark.util.ast.Node fromNode, @Nullable @Nullable com.vladsch.flexmark.util.ast.Node toNode)
-
toEOL
@Nullable @Nullable com.vladsch.flexmark.util.sequence.BasedSequence toEOL()
- Specified by:
toEOL
in interfaceLightInlineParser
-
parseNewline
boolean parseNewline()
-
parseLinkDestination
@Nullable @Nullable com.vladsch.flexmark.util.sequence.BasedSequence parseLinkDestination()
-
parseLinkTitle
@Nullable @Nullable com.vladsch.flexmark.util.sequence.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)
-
-