Class 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
    • 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