Interface MatchHandler<V>

Type Parameters:
V - type of value stored in the Dfa.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MatchHandler<V>
The type of handler called by DfaFilter to handle a match.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleMatch(StringBuilder out, int matchStart, V value)
    Handles a match
  • Method Details

    • handleMatch

      void handleMatch(StringBuilder out, int matchStart, V value) throws CallbackException
      Handles a match
      Parameters:
      out - contains the matching string as a suffix
      matchStart - start of the match in out
      value - found in the Dfa associated with the match
      Throws:
      CallbackException - can be thrown if thing went wrong