org.eclipse.viatra.query.runtime.api

## Interface IMatchUpdateListener<Match extends IPatternMatch>

- All Known Implementing Classes:
    ConditionalTransformationBreakpointHandler, MatchUpdateAdapter

      public interface IMatchUpdateListener<Match extends IPatternMatch>

  An interface for low-level notifications about match appearance and disappearance.

  See `ViatraQueryMatcher#addCallbackOnMatchUpdate(IMatchUpdateListener, boolean)` for usage. Clients should consider using `MatchUpdateAdapter` or deriving their implementation from it.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `notifyAppearance(Match match)` Will be invoked on each new match that appears.
    `void` | `notifyDisappearance(Match match)` Will be invoked on each existing match that disappears.

- - ### Method Detail

    - #### notifyAppearance

          void notifyAppearance(Match match)

      Will be invoked on each new match that appears.
      Parameters:
        `match` - the match that has just appeared.

    - #### notifyDisappearance

          void notifyDisappearance(Match match)

      Will be invoked on each existing match that disappears.
      Parameters:
        `match` - the match that has just disappeared.