Package monq.jfa.ooo

Class PartitionAction

java.lang.Object
monq.jfa.ooo.PartitionAction
All Implemented Interfaces:
Action

public class PartitionAction extends Object implements Action
Called right after the partitioning regex was matched and its template handled.
  • Constructor Details

    • PartitionAction

      public PartitionAction(Writer out, boolean copy, ShowNames showNames, int preContext, int postContext, String contextSeparator)
  • Method Details

    • notifyMatch

      public void notifyMatch()
    • setCurrentPath

      public void setCurrentPath(String currentPath)
    • setOnShippedMatch

      public void setOnShippedMatch(Runnable notifier)
      To be run just after we send out a match to the output, defaults to a no-op.
      Parameters:
      notifier - to be run
    • invoke

      public void invoke(StringBuilder out, int start) throws CallbackException
      Description copied from interface: Action
      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.
      Specified by:
      invoke in interface Action
      Parameters:
      out - contains new data at its end
      start - where the new data starts
      Throws:
      CallbackException - if things go wrong.
    • toString

      public String toString()
      Overrides:
      toString in class Object