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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getMatchValue()
-
Methods inherited from class ghidra.util.bytesearch.DummyMatchAction
apply, restoreXml
-
-
-
-
Constructor Detail
-
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 Detail
-
getMatchValue
public T getMatchValue()
- Returns:
- the specialized object associated with this match action
-
-