public class SectionBlockParser extends Object implements BlockParser
Constructor and Description |
---|
SectionBlockParser() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(String line)
accept.
|
void |
setHrulerParser(HRuleBlockParser hrulerParser)
Sets the hrulerParser.
|
void |
setParaParser(ParagraphBlockParser paraParser)
Sets the paraParser.
|
void |
setVerbatimBlockParser(VerbatimBlockParser verbatimBlockParser)
Sets the verbatimBlockParser.
|
Block |
visit(String line,
ByLineSource source)
visit.
|
public SectionBlockParser()
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 setParaParser(ParagraphBlockParser paraParser)
paraParser
- ParagraphBlockParser
with the paraParser.public final void setHrulerParser(HRuleBlockParser hrulerParser)
hrulerParser
- HRuleBlockParser
with the hrulerParser.public final void setVerbatimBlockParser(VerbatimBlockParser verbatimBlockParser)
verbatimBlockParser
- VerbatimBlockParser
with the verbatimBlockParser.Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.