public class GenericListBlockParser extends Object implements BlockParser
Constructor and Description |
---|
GenericListBlockParser()
Creates the GenericListBlockParser.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(String line)
accept.
|
void |
setTextParser(FormatedTextParser textParser)
Sets the formatTextParser.
|
Block |
visit(String line,
ByLineSource source)
visit.
|
public GenericListBlockParser()
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 setTextParser(FormatedTextParser textParser)
textParser
- FormatedTextParser
with the formatTextParser.Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.