public class HRuleBlockParser extends java.lang.Object implements BlockParser
Modifier and Type | Field and Description |
---|---|
private static java.util.regex.Pattern |
HRULE_PATTERN
pattern used to detect horizontal rulers
|
Constructor and Description |
---|
HRuleBlockParser() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.lang.String line)
accept.
|
Block |
visit(java.lang.String line,
ByLineSource source)
visit.
|
private static final java.util.regex.Pattern HRULE_PATTERN
public final boolean accept(java.lang.String line)
accept.
accept
in interface BlockParser
line
- text linetrue
if this class can handle this linepublic final Block visit(java.lang.String line, ByLineSource source) throws ParseException
visit.
visit
in interface BlockParser
line
- a line of textsource
- the source of linesParseException
- on error