Class VerbatimBlockParser

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

public class VerbatimBlockParser extends Object implements BlockParser
Parse verbatim blocks
Since:
1.1
Author:
Christian Nardi
  • Constructor Details

    • VerbatimBlockParser

      public VerbatimBlockParser()
  • 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, org.apache.maven.doxia.util.ByLineSource source) throws org.apache.maven.doxia.parser.ParseException

      visit.

      Specified by:
      visit in interface BlockParser
      Parameters:
      line - a line of text
      source - the source of lines
      Returns:
      a block
      Throws:
      org.apache.maven.doxia.parser.ParseException - on error