Class HRuleBlockParser

  • All Implemented Interfaces:
    BlockParser

    public class HRuleBlockParser
    extends java.lang.Object
    implements BlockParser
    Block that represents an horizontal rule
    Version:
    $Id$
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.regex.Pattern HRULE_PATTERN
      pattern used to detect horizontal rulers
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.lang.String line)
      accept.
      Block visit​(java.lang.String line, ByLineSource source)
      visit.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • HRULE_PATTERN

        private static final java.util.regex.Pattern HRULE_PATTERN
        pattern used to detect horizontal rulers
    • Constructor Detail

      • HRuleBlockParser

        public HRuleBlockParser()
    • Method Detail

      • accept

        public final boolean accept​(java.lang.String line)

        accept.

        Specified by:
        accept in interface BlockParser
        Parameters:
        line - text line
        Returns:
        true if this class can handle this line