Class LightInlineParserImpl
java.lang.Object
com.vladsch.flexmark.parser.LightInlineParserImpl
- All Implemented Interfaces:
LightInlineParser
- Direct Known Subclasses:
InlineParserImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Nodeprotected ArrayList<BasedSequence> protected Documentprotected intprotected BasedSequenceprotected final Parsingprotected final InlineParserOptions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendNode(@NotNull Node node) @NotNull TextappendSeparateText(@NotNull BasedSequence text) voidappendText(@NotNull BasedSequence text) voidappendText(@NotNull BasedSequence text, int beginIndex, int endIndex) boolean@NotNull NodegetBlock()@NotNull ArrayList<BasedSequence> @NotNull DocumentintgetIndex()@NotNull BasedSequencegetInput()@NotNull InlineParserOptions@NotNull ParsingIf RE matches at current index in the input, advance index and return the match; otherwise return null.If RE matches at current index in the input, advance index and return the match; otherwise return null.If RE matches at current index in the input, advance index and return the match; otherwise return null.voidbooleanParse zero or more non-indent spacescharpeek()charpeek(int ahead) voidvoidsetDocument(@NotNull Document document) voidsetIndex(int index) voidsetInput(BasedSequence input) booleansp()Parse zero or more spacesbooleanspnl()Parse zero or more space characters, including at most one newline and zero or more spaces.booleanspnlUrl()Parse zero or more space characters, including at one newline.@Nullable BasedSequencetoEOL()Parse to end of line, including EOL
-
Field Details
-
options
-
myParsing
-
block
-
input
-
index
protected int index -
currentText
-
document
-
-
Constructor Details
-
LightInlineParserImpl
-
-
Method Details
-
getCurrentText
- Specified by:
getCurrentTextin interfaceLightInlineParser
-
getInput
- Specified by:
getInputin interfaceLightInlineParser
-
setInput
- Specified by:
setInputin interfaceLightInlineParser
-
getIndex
public int getIndex()- Specified by:
getIndexin interfaceLightInlineParser
-
setIndex
public void setIndex(int index) - Specified by:
setIndexin interfaceLightInlineParser
-
getDocument
- Specified by:
getDocumentin interfaceLightInlineParser
-
setDocument
- Specified by:
setDocumentin interfaceLightInlineParser
-
getOptions
- Specified by:
getOptionsin interfaceLightInlineParser
-
getParsing
- Specified by:
getParsingin interfaceLightInlineParser
-
getBlock
- Specified by:
getBlockin interfaceLightInlineParser
-
setBlock
- Specified by:
setBlockin interfaceLightInlineParser
-
moveNodes
- Specified by:
moveNodesin interfaceLightInlineParser
-
appendText
- Specified by:
appendTextin interfaceLightInlineParser
-
appendText
- Specified by:
appendTextin interfaceLightInlineParser
-
appendNode
- Specified by:
appendNodein interfaceLightInlineParser
-
appendSeparateText
- Specified by:
appendSeparateTextin interfaceLightInlineParser
-
flushTextNode
public boolean flushTextNode()- Specified by:
flushTextNodein interfaceLightInlineParser
-
match
If RE matches at current index in the input, advance index and return the match; otherwise return null.- Specified by:
matchin interfaceLightInlineParser- Parameters:
re- pattern to match- Returns:
- sequence matched or null
-
matchWithGroups
If RE matches at current index in the input, advance index and return the match; otherwise return null.- Specified by:
matchWithGroupsin interfaceLightInlineParser- Parameters:
re- pattern to match- Returns:
- sequence matched or null
-
matcher
If RE matches at current index in the input, advance index and return the match; otherwise return null.- Specified by:
matcherin interfaceLightInlineParser- Parameters:
re- pattern to match- Returns:
- matched matcher or null
-
peek
public char peek()- Specified by:
peekin interfaceLightInlineParser- Returns:
- the char at the current input index, or
'\0'in case there are no more characters.
-
peek
public char peek(int ahead) - Specified by:
peekin interfaceLightInlineParser
-
spnl
public boolean spnl()Parse zero or more space characters, including at most one newline and zero or more spaces.- Specified by:
spnlin interfaceLightInlineParser- Returns:
- true
-
nonIndentSp
public boolean nonIndentSp()Parse zero or more non-indent spaces- Specified by:
nonIndentSpin interfaceLightInlineParser- Returns:
- true
-
sp
public boolean sp()Parse zero or more spaces- Specified by:
spin interfaceLightInlineParser- Returns:
- true
-
spnlUrl
public boolean spnlUrl()Parse zero or more space characters, including at one newline.- Specified by:
spnlUrlin interfaceLightInlineParser- Returns:
- true
-
toEOL
Parse to end of line, including EOL- Specified by:
toEOLin interfaceLightInlineParser- Returns:
- characters parsed or null if no end of line
-