Class TableBlockParser

java.lang.Object
org.apache.maven.doxia.module.twiki.parser.TableBlockParser
All Implemented Interfaces:
BlockParser

public class TableBlockParser extends Object implements BlockParser
Parse tables
  • Field Details

    • TABLE_PATTERN

      private static final Pattern TABLE_PATTERN
      pattern to detect tables
    • textParser

      private FormatedTextParser textParser
      text parser
  • Constructor Details

    • TableBlockParser

      public TableBlockParser()
  • Method Details

    • accept

      public final boolean accept(String line)

      accept.

      Specified by:
      accept in interface BlockParser
      Parameters:
      line - text line
      Returns:
      true if this class can handle this line
    • visit

      public final Block visit(String line, ByLineSource source) throws ParseException

      visit.

      Specified by:
      visit in interface BlockParser
      Parameters:
      line - a line of text
      source - the source of lines
      Returns:
      a block
      Throws:
      ParseException - on error
    • setTextParser

      public final void setTextParser(FormatedTextParser textParser)

      Setter for the field textParser.

      Parameters:
      textParser - text parser to be set