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 voidfinalizeDocument(@NotNull Document document)@Nullable BracketgetLastBracket()@Nullable DelimitergetLastDelimiter()voidinitializeDocument(@NotNull Document document)voidmergeIfNeeded(@Nullable Text first, @Nullable Text last)voidmergeTextNodes(@Nullable Node fromNode, @Nullable Node toNode)voidparse(@NotNull BasedSequence input, @NotNull Node node)booleanparseAutolink()@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)booleanparseEntity()booleanparseHtmlInline()@Nullable BasedSequenceparseLinkDestination()intparseLinkLabel()@Nullable BasedSequenceparseLinkTitle()booleanparseNewline()voidprocessDelimiters(@Nullable Delimiter stackBottom)voidremoveDelimiter(@NotNull Delimiter delim)voidremoveDelimiterAndNode(@NotNull Delimiter delim)voidremoveDelimiterKeepNode(@NotNull Delimiter delim)voidremoveDelimitersBetween(@NotNull Delimiter opener, @NotNull Delimiter closer)@Nullable BasedSequencetoEOL()-
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:
toEOLin 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)
-
-