Interface PostRule

All Known Implementing Classes:
AlignRule

public interface PostRule
Inteface for post match rules that are checked after a match is idenfied
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    apply(Pattern pat, long matchoffset)
    Apply a post rule given the matching pattern and offset into the byte stream.
    void
    Can restore state of instance PostRule from XML
  • Method Details

    • apply

      boolean apply(Pattern pat, long matchoffset)
      Apply a post rule given the matching pattern and offset into the byte stream.
      Parameters:
      pat - pattern that matched
      matchoffset - offset of the match
      Returns:
      true if the PostRule is satisfied
    • restoreXml

      void restoreXml(XmlPullParser parser)
      Can restore state of instance PostRule from XML
      Parameters:
      parser - XML pull parser