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
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.regex.PatternTABLE_PATTERNpattern to detect tablesprivate FormatedTextParsertextParsertext parser
-
Constructor Summary
Constructors Constructor Description TableBlockParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(java.lang.String line)accept.voidsetTextParser(FormatedTextParser textParser)Setter for the fieldtextParser.Blockvisit(java.lang.String line, ByLineSource source)visit.
-
-
-
Field Detail
-
TABLE_PATTERN
private static final java.util.regex.Pattern TABLE_PATTERN
pattern to detect tables
-
textParser
private FormatedTextParser textParser
text parser
-
-
Method Detail
-
accept
public final boolean accept(java.lang.String line)
accept.
- Specified by:
acceptin interfaceBlockParser- Parameters:
line- text line- Returns:
trueif this class can handle this line
-
visit
public final Block visit(java.lang.String line, ByLineSource source) throws ParseException
visit.
- Specified by:
visitin interfaceBlockParser- Parameters:
line- a line of textsource- 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
-
-