Class ListItemParser

java.lang.Object
com.vladsch.flexmark.parser.block.AbstractBlockParser
com.vladsch.flexmark.parser.core.ListItemParser
All Implemented Interfaces:
BlockParser

public class ListItemParser extends AbstractBlockParser
  • Field Details

    • myBlock

      private final ListItem myBlock
    • myOptions

      private final ListOptions myOptions
    • myListData

      private final ListBlockParser.ListData myListData
    • myParsing

      private final Parsing myParsing
    • myHadBlankLine

      private boolean myHadBlankLine
    • myIsEmpty

      private boolean myIsEmpty
  • Constructor Details

  • Method Details

    • getContentColumn

      int getContentColumn()
    • getContentIndent

      int getContentIndent()
    • getMarkerContentIndent

      int getMarkerContentIndent()
    • isContainer

      public boolean isContainer()
      Specified by:
      isContainer in interface BlockParser
      Overrides:
      isContainer in class AbstractBlockParser
      Returns:
      true if the block that is parsed is a container (contains other blocks), or false if it's a leaf.
    • canContain

      public boolean canContain(ParserState state, BlockParser blockParser, Block block)
      Specified by:
      canContain in interface BlockParser
      Overrides:
      canContain in class AbstractBlockParser
      Parameters:
      state - parser state
      blockParser - block parser
      block - new block being started @return true if this block parser's block can contain the given block type, false if it cannot
    • isPropagatingLastBlankLine

      public boolean isPropagatingLastBlankLine(BlockParser lastMatchedBlockParser)
      Description copied from class: AbstractBlockParser
      should be overridden in BlockQuote, FencedCode and ListItem
      Specified by:
      isPropagatingLastBlankLine in interface BlockParser
      Overrides:
      isPropagatingLastBlankLine in class AbstractBlockParser
      Parameters:
      lastMatchedBlockParser - the last matched block parser instance
      Returns:
      true if the blank line should be propagated to parent
    • getBlock

      public Block getBlock()
      Returns:
      the block parser's block node instance
    • closeBlock

      public void closeBlock(ParserState state)
    • continueAtColumn

      private BlockContinue continueAtColumn(int newColumn)
    • tryContinue

      public BlockContinue tryContinue(ParserState state)
      Description copied from interface: BlockParser
      See if the block parser can continue parsing the current block
      Parameters:
      state - current parsing state
      Returns:
      block continue instance