Class GenericMatchAction<T>

java.lang.Object
ghidra.util.bytesearch.DummyMatchAction
ghidra.util.bytesearch.GenericMatchAction<T>
Type Parameters:
T - - object to attach to match sequence, generally used to specify a specialized momento to be used by the action when it is "applied".
All Implemented Interfaces:
MatchAction

public class GenericMatchAction<T> extends DummyMatchAction
Template for generic match action attached to a match sequence. Used to store an associated value to the matching sequence. The associated value can be retrieved when the sequence is matched.
  • Constructor Details

    • GenericMatchAction

      public GenericMatchAction(T matchValue)
      Construct a match action used when a match occurs for some GenericByteSequece
      Parameters:
      matchValue - specialized object used when match occurs
  • Method Details

    • getMatchValue

      public T getMatchValue()
      Returns:
      the specialized object associated with this match action