ParserState

State of the parser that is used in block parsers. <p><em>This interface is not intended to be implemented by clients.</em></p>

Members

Functions

getActiveBlockParser
BlockParser getActiveBlockParser()

@return the deepest open block parser

getColumn
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 {@link #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).

getIndent
int getIndent()

@return the indentation in columns (either by spaces or tab stop of 4), starting from {@link #getColumn()}

getIndex
int getIndex()

@return the current index within the line (0-based)

getLine
string getLine()

@return the current line

getNextNonSpaceIndex
int getNextNonSpaceIndex()

@return the index of the next non-space character starting from {@link #getIndex()} (may be the same) (0-based)

isBlank
bool isBlank()

@return true if the current line is blank starting from the index

Meta