Top Fields Constructors Methods
com.vladsch.flexmark.parser

public Class LightInlineParserImpl

extends Object
implements LightInlineParser
Class Inheritance
All Implemented Interfaces
com.vladsch.flexmark.parser.LightInlineParser
Known Direct Subclasses
com.vladsch.flexmark.parser.internal.InlineParserImpl
Imports
com.vladsch.flexmark.ast.Text, com.vladsch.flexmark.ast.util.Parsing, com.vladsch.flexmark.util.ast.Document, .Node, com.vladsch.flexmark.util.data.DataHolder, com.vladsch.flexmark.util.sequence.BasedSequence, .SegmentedSequence, .SequenceUtils, org.jetbrains.annotations.NotNull, .Nullable, java.util.ArrayList, java.util.regex.MatchResult, .Matcher, .Pattern

Field Summary

Modifier and TypeField and Description
protected Node
protected ArrayList<BasedSequence>
protected Document
protected int
protected BasedSequence
protected final Parsing
protected final InlineParserOptions

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public @NotNull Text
public void
public void
appendText(@NotNull BasedSequence text, int beginIndex, int endIndex)

public boolean
public @NotNull Node
public @NotNull ArrayList<BasedSequence>
public @NotNull Document
public int
public @NotNull BasedSequence
public @NotNull InlineParserOptions
public @NotNull Parsing
public BasedSequence

Returns:

sequence matched or null
match
(Pattern
pattern to match
re
)

Implements com.vladsch.flexmark.parser.LightInlineParser.match.

If RE matches at current index in the input, advance index and return the match; otherwise return null.

public Matcher

Returns:

matched matcher or null
matcher
(Pattern
pattern to match
re
)

Implements com.vladsch.flexmark.parser.LightInlineParser.matcher.

If RE matches at current index in the input, advance index and return the match; otherwise return null.

public BasedSequence[]

Returns:

sequence matched or null
matchWithGroups
(Pattern
pattern to match
re
)

Implements com.vladsch.flexmark.parser.LightInlineParser.matchWithGroups.

If RE matches at current index in the input, advance index and return the match; otherwise return null.

public void
moveNodes(@NotNull Node fromNode, @NotNull Node toNode)

public boolean

Returns:

true
nonIndentSp
()

Implements com.vladsch.flexmark.parser.LightInlineParser.nonIndentSp.

Parse zero or more non-indent spaces

public char

Returns:

the char at the current input index, or '\0' in case there are no more characters.
peek
()

Implements com.vladsch.flexmark.parser.LightInlineParser.peek.

public char
public void
public void
public void
public void
public boolean

Returns:

true
sp
()

Implements com.vladsch.flexmark.parser.LightInlineParser.sp.

Parse zero or more spaces

public boolean

Returns:

true
spnl
()

Implements com.vladsch.flexmark.parser.LightInlineParser.spnl.

Parse zero or more space characters, including at most one newline and zero or more spaces.

public boolean

Returns:

true
spnlUrl
()

Implements com.vladsch.flexmark.parser.LightInlineParser.spnlUrl.

Parse zero or more space characters, including at one newline.

public @Nullable BasedSequence

Returns:

characters parsed or null if no end of line
toEOL
()

Implements com.vladsch.flexmark.parser.LightInlineParser.toEOL.

Parse to end of line, including EOL

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

blockback to summary
protected Node block
currentTextback to summary
protected ArrayList<BasedSequence> currentText
documentback to summary
protected Document document
indexback to summary
protected int index
inputback to summary
protected BasedSequence input
myParsingback to summary
protected final Parsing myParsing
optionsback to summary
protected final InlineParserOptions options

Constructor Detail

LightInlineParserImplback to summary
public LightInlineParserImpl(DataHolder dataOptions)

Method Detail

appendNodeback to summary
public void appendNode(@NotNull Node node)
Annotations
@Override
appendSeparateTextback to summary
public @NotNull Text appendSeparateText(@NotNull BasedSequence text)
Annotations
@NotNull
@Override
appendTextback to summary
public void appendText(@NotNull BasedSequence text)
Annotations
@Override
appendTextback to summary
public void appendText(@NotNull BasedSequence text, int beginIndex, int endIndex)
Annotations
@Override
flushTextNodeback to summary
public boolean flushTextNode()

Implements com.vladsch.flexmark.parser.LightInlineParser.flushTextNode.

Annotations
@Override
getBlockback to summary
public @NotNull Node getBlock()

Implements com.vladsch.flexmark.parser.LightInlineParser.getBlock.

Annotations
@NotNull
@Override
getCurrentTextback to summary
public @NotNull ArrayList<BasedSequence> getCurrentText()

Implements com.vladsch.flexmark.parser.LightInlineParser.getCurrentText.

Annotations
@NotNull
@Override
getDocumentback to summary
public @NotNull Document getDocument()

Implements com.vladsch.flexmark.parser.LightInlineParser.getDocument.

Annotations
@NotNull
@Override
getIndexback to summary
public int getIndex()

Implements com.vladsch.flexmark.parser.LightInlineParser.getIndex.

Annotations
@Override
getInputback to summary
public @NotNull BasedSequence getInput()

Implements com.vladsch.flexmark.parser.LightInlineParser.getInput.

Annotations
@NotNull
@Override
getOptionsback to summary
public @NotNull InlineParserOptions getOptions()

Implements com.vladsch.flexmark.parser.LightInlineParser.getOptions.

Annotations
@NotNull
@Override
getParsingback to summary
public @NotNull Parsing getParsing()

Implements com.vladsch.flexmark.parser.LightInlineParser.getParsing.

Annotations
@NotNull
@Override
matchback to summary
public BasedSequence match(Pattern re)

Implements com.vladsch.flexmark.parser.LightInlineParser.match.

If RE matches at current index in the input, advance index and return the match; otherwise return null.

Parameters
re:Pattern

pattern to match

Returns:BasedSequence

sequence matched or null

Annotations
@Override
matcherback to summary
public Matcher matcher(Pattern re)

Implements com.vladsch.flexmark.parser.LightInlineParser.matcher.

If RE matches at current index in the input, advance index and return the match; otherwise return null.

Parameters
re:Pattern

pattern to match

Returns:Matcher

matched matcher or null

Annotations
@Override
matchWithGroupsback to summary
public BasedSequence[] matchWithGroups(Pattern re)

Implements com.vladsch.flexmark.parser.LightInlineParser.matchWithGroups.

If RE matches at current index in the input, advance index and return the match; otherwise return null.

Parameters
re:Pattern

pattern to match

Returns:BasedSequence[]

sequence matched or null

Annotations
@Override
moveNodesback to summary
public void moveNodes(@NotNull Node fromNode, @NotNull Node toNode)
Annotations
@Override
nonIndentSpback to summary
public boolean nonIndentSp()

Implements com.vladsch.flexmark.parser.LightInlineParser.nonIndentSp.

Parse zero or more non-indent spaces

Returns:boolean

true

Annotations
@Override
peekback to summary
public char peek()

Implements com.vladsch.flexmark.parser.LightInlineParser.peek.

Returns:char

the char at the current input index, or '\0' in case there are no more characters.

Annotations
@Override
peekback to summary
public char peek(int ahead)

Implements com.vladsch.flexmark.parser.LightInlineParser.peek.

Annotations
@Override
setBlockback to summary
public void setBlock(@NotNull Node block)
Annotations
@Override
setDocumentback to summary
public void setDocument(@NotNull Document document)
Annotations
@Override
setIndexback to summary
public void setIndex(int index)

Implements com.vladsch.flexmark.parser.LightInlineParser.setIndex.

Annotations
@Override
setInputback to summary
public void setInput(BasedSequence input)

Implements com.vladsch.flexmark.parser.LightInlineParser.setInput.

Annotations
@Override
spback to summary
public boolean sp()

Implements com.vladsch.flexmark.parser.LightInlineParser.sp.

Parse zero or more spaces

Returns:boolean

true

Annotations
@Override
spnlback to summary
public boolean spnl()

Implements com.vladsch.flexmark.parser.LightInlineParser.spnl.

Parse zero or more space characters, including at most one newline and zero or more spaces.

Returns:boolean

true

Annotations
@Override
spnlUrlback to summary
public boolean spnlUrl()

Implements com.vladsch.flexmark.parser.LightInlineParser.spnlUrl.

Parse zero or more space characters, including at one newline.

Returns:boolean

true

Annotations
@Override
toEOLback to summary
public @Nullable BasedSequence toEOL()

Implements com.vladsch.flexmark.parser.LightInlineParser.toEOL.

Parse to end of line, including EOL

Returns:@Nullable BasedSequence

characters parsed or null if no end of line

Annotations
@Nullable
@Override