Package ghidra.util.bytesearch

# 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 Summary

  Constructors
  Constructor
  Description
  `GenericMatchAction(T matchValue)`
  Construct a match action used when a match occurs for some GenericByteSequece

- ## Method Summary

  Modifier and Type
  Method
  Description
  `T`
  `getMatchValue()`

  ### Methods inherited from class ghidra.util.bytesearch.DummyMatchAction

  `apply, restoreXml`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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