org.apache.maven.doxia.module.twiki.parser
Class VerbatimBlockParser

java.lang.Object
  extended by 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
Version:
$Id: VerbatimBlockParser.java 1090706 2011-04-09 23:15:28Z hboutemy $
Author:
Christian Nardi

Constructor Summary
VerbatimBlockParser()
           
 
Method Summary
 boolean accept(String line)
          

accept.

 Block visit(String line, ByLineSource source)
          

visit.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerbatimBlockParser

public VerbatimBlockParser()
Method Detail

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


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.