Class Pattern

Direct Known Subclasses:
GenericByteSequencePattern

public class Pattern extends DittedBitSequence
Pattern is an association of a DittedBitSequence to match, a set of post rules after a match is found that must be satisfied, and a set of actions to be taken if the pattern matches. These patterns can be restored from an XML file.
  • Constructor Details

    • Pattern

      public Pattern()
      Construct an empty pattern. Use XML to initialize
    • Pattern

      public Pattern(DittedBitSequence seq, int offset, PostRule[] postArray, MatchAction[] matchArray)
      Construct the pattern based on a DittedByteSequence a match offset, post matching rules, and a set of actions to take when the match occurs.
      Parameters:
      seq - DittedByteSequence
      offset - offset from the actual match location to report a match
      postArray - post set of rules to check for the match
      matchArray - MatchActions to apply when a match occurs
  • Method Details