Class TableBlockParser
- java.lang.Object
-
- org.apache.maven.doxia.module.twiki.parser.TableBlockParser
-
- All Implemented Interfaces:
BlockParser
public class TableBlockParser extends java.lang.Object implements BlockParser
Parse tables- Author:
- Juan F. Codagnone
-
-
Constructor Summary
Constructors Constructor Description TableBlockParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.lang.String line)
accept.void
setTextParser(FormatedTextParser textParser)
Setter for the fieldtextParser
.Block
visit(java.lang.String line, org.apache.maven.doxia.util.ByLineSource source)
visit.
-
-
-
Method Detail
-
accept
public final boolean accept(java.lang.String line)
accept.
- Specified by:
accept
in interfaceBlockParser
- Parameters:
line
- text line- Returns:
true
if this class can handle this line
-
visit
public final Block visit(java.lang.String line, org.apache.maven.doxia.util.ByLineSource source) throws org.apache.maven.doxia.parser.ParseException
visit.
- Specified by:
visit
in interfaceBlockParser
- Parameters:
line
- a line of textsource
- the source of lines- Returns:
- a block
- Throws:
org.apache.maven.doxia.parser.ParseException
- on error
-
setTextParser
public final void setTextParser(FormatedTextParser textParser)
Setter for the field
textParser
.- Parameters:
textParser
- text parser to be set
-
-