Interface BlockParser

All Known Implementing Classes:
DefinitionListBlockParser, FigureBlockParser, HorizontalRuleBlockParser, ListBlockParser, ParagraphBlockParser, SectionBlockParser, TableBlockParser, VerbatimBlockParser

public interface BlockParser

BlockParser interface.

  • Method Details

    • accept

      boolean accept(String line, ByLineSource source)
      accept.
      Parameters:
      line - the line.
      source - the source.
      Returns:
      boolean true if valid.
    • visit

      Block visit(String line, ByLineSource source) throws ParseException
      visit.
      Parameters:
      line - the line.
      source - the source.
      Returns:
      boolean true if valid.
      Throws:
      ParseException - if any.