public class ParagraphBlockParser extends Object implements BlockParser
Constructor and Description |
---|
ParagraphBlockParser() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(String line)
accept.
|
void |
setHrulerParser(HRuleBlockParser aHrulerParser)
Sets the hrulerParser.
|
void |
setListParser(GenericListBlockParser aListParser)
Sets the listParser.
|
void |
setSectionParser(SectionBlockParser aSectionParser)
Sets the sectionParser.
|
void |
setTableBlockParser(TableBlockParser aTableBlockParser)
Setter for the field
tableBlockParser . |
void |
setTextParser(FormatedTextParser aTextParser)
Sets the formatTextParser.
|
void |
setVerbatimParser(VerbatimBlockParser aVerbatimParser)
Sets the verbatimParser.
|
Block |
visit(String line,
ByLineSource source)
visit.
|
public ParagraphBlockParser()
public final boolean accept(String line)
accept.
accept
in interface BlockParser
line
- text linetrue
if this class can handle this linepublic final Block visit(String line, ByLineSource source) throws ParseException
visit.
visit
in interface BlockParser
line
- a line of textsource
- the source of linesParseException
- on errorpublic final void setSectionParser(SectionBlockParser aSectionParser)
aSectionParser
- SectionBlockParser
with the sectionParser.public final void setListParser(GenericListBlockParser aListParser)
aListParser
- ListBlockParser
with the listParser.public final void setTextParser(FormatedTextParser aTextParser)
aTextParser
- FormatedTextParser
with the formatTextParser.public final void setHrulerParser(HRuleBlockParser aHrulerParser)
aHrulerParser
- HRuleBlockParser
with the hrulerParser.public final void setTableBlockParser(TableBlockParser aTableBlockParser)
Setter for the field tableBlockParser
.
aTableBlockParser
- Table parser to usepublic final void setVerbatimParser(VerbatimBlockParser aVerbatimParser)
aVerbatimParser
- VerbatimBlockParser
with the verbatimParser.Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.