Class CountAction

java.lang.Object
monq.jfa.actions.CountAction
All Implemented Interfaces:
Action

public class CountAction extends Object implements Action
An action which counts its invocations.
  • Constructor Details

    • CountAction

      public CountAction()
  • Method Details

    • invoke

      public void invoke(StringBuilder out, int start)
      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
    • count

      public long count()
      The count so far.
      Returns:
      the number of times invoke(java.lang.StringBuilder, int) was called.