Top Description Methods
jdk.internal.org.commonmark.parser.block

public Interface ParserState

Known Direct Implementers
jdk.internal.org.commonmark.internal.DocumentParser
Imports
jdk.internal.org.commonmark.parser.SourceLine

State of the parser that is used in block parsers.

This interface is not intended to be implemented by clients.

Method Summary

Modifier and TypeMethod and Description
public BlockParser

Returns:

the deepest open block parser
getActiveBlockParser
()

public int

Returns:

the current column within the line (0-based)
getColumn
()

The column is the position within the line after tab characters have been processed as 4-space tab stops.

public int

Returns:

the indentation in columns (either by spaces or tab stop of 4), starting from getColumn()
getIndent
()

public int

Returns:

the current index within the line (0-based)
getIndex
()

public SourceLine

Returns:

the current source line being parsed (full line)
getLine
()

public int

Returns:

the index of the next non-space character starting from getIndex() (may be the same) (0-based)
getNextNonSpaceIndex
()

public boolean

Returns:

true if the current line is blank starting from the index
isBlank
()

Method Detail

getActiveBlockParserback to summary
public BlockParser getActiveBlockParser()
Returns:BlockParser

the deepest open block parser

getColumnback to summary
public int getColumn()

The column is the position within the line after tab characters have been processed as 4-space tab stops. If the line doesn't contain any tabs, it's the same as the getIndex(). If the line starts with a tab, followed by text, then the column for the first character of the text is 4 (the index is 1).

Returns:int

the current column within the line (0-based)

getIndentback to summary
public int getIndent()
Returns:int

the indentation in columns (either by spaces or tab stop of 4), starting from getColumn()

getIndexback to summary
public int getIndex()
Returns:int

the current index within the line (0-based)

getLineback to summary
public SourceLine getLine()
Returns:SourceLine

the current source line being parsed (full line)

getNextNonSpaceIndexback to summary
public int getNextNonSpaceIndex()
Returns:int

the index of the next non-space character starting from getIndex() (may be the same) (0-based)

isBlankback to summary
public boolean isBlank()
Returns:boolean

true if the current line is blank starting from the index