Class TableBlockParser
java.lang.Object
org.apache.maven.doxia.module.twiki.parser.TableBlockParser
- All Implemented Interfaces:
BlockParser
Parse tables
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Pattern
pattern to detect tablesprivate FormatedTextParser
text parser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
accept.final void
setTextParser
(FormatedTextParser textParser) Setter for the fieldtextParser
.final Block
visit
(String line, ByLineSource source) visit.
-
Field Details
-
TABLE_PATTERN
pattern to detect tables -
textParser
text parser
-
-
Constructor Details
-
TableBlockParser
public TableBlockParser()
-
-
Method Details
-
accept
accept.
- Specified by:
accept
in interfaceBlockParser
- Parameters:
line
- text line- Returns:
true
if this class can handle this line
-
visit
visit.
- Specified by:
visit
in interfaceBlockParser
- Parameters:
line
- a line of textsource
- the source of lines- Returns:
- a block
- Throws:
ParseException
- on error
-
setTextParser
Setter for the field
textParser
.- Parameters:
textParser
- text parser to be set
-