Class MacroBlockParser

java.lang.Object
com.vladsch.flexmark.parser.block.AbstractBlockParser
com.vladsch.flexmark.ext.xwiki.macros.internal.MacroBlockParser
All Implemented Interfaces:
BlockParser

public class MacroBlockParser extends AbstractBlockParser
  • Field Details

    • block

      private final MacroBlock block
    • content

      private BlockContent content
    • parsing

      private final MacroParsing parsing
    • macroName

      private final BasedSequence macroName
    • oneLine

      private final boolean oneLine
    • hadClose

      private boolean hadClose
  • Constructor Details

  • Method Details

    • getBlock

      public Block getBlock()
      Returns:
      the block parser's block node instance
    • 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
    • addLine

      public void addLine(ParserState state, BasedSequence line)
      Description copied from interface: BlockParser
      Add another line to the block
      Specified by:
      addLine in interface BlockParser
      Overrides:
      addLine in class AbstractBlockParser
      Parameters:
      state - parser state
      line - line sequence
    • 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
    • closeBlock

      public void closeBlock(ParserState state)
    • parseInlines

      public void parseInlines(InlineParser inlineParser)
      Description copied from interface: BlockParser
      Do inline processing for the block content using the given inline parser interface
      Specified by:
      parseInlines in interface BlockParser
      Overrides:
      parseInlines in class AbstractBlockParser
      Parameters:
      inlineParser - instance of inline parser