Interface Action

All Known Implementing Classes:
ActionSequence, CountAction, MapStoreAction, NotifyMatch, PartitionAction, PickAction, SwitchDfa, TemplateAction

public interface Action
An action to be stored in a DFA to be invoked on the match.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    invoke(StringBuilder out, int start)
    Will be called with new data appended to the given StringBuilder.
  • Method Details

    • invoke

      void invoke(StringBuilder out, int start) throws CallbackException
      Will be called with new data appended to the given StringBuilder. The method is free to work in any way with the whole text content, not only the new part demarcated by the start parameter.
      Parameters:
      out - contains new data at its end
      start - where the new data starts
      Throws:
      CallbackException - if things go wrong.