Package monq.jfa.actions
Class CountAction
java.lang.Object
monq.jfa.actions.CountAction
- All Implemented Interfaces:
Action
An action which counts its invocations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcount()The count so far.voidinvoke(StringBuilder out, int start) Will be called with new data appended to the givenStringBuilder.
-
Constructor Details
-
CountAction
public CountAction()
-
-
Method Details
-
invoke
Description copied from interface:ActionWill be called with new data appended to the givenStringBuilder. The method is free to work in any way with the whole text content, not only the new part demarcated by thestartparameter. -
count
public long count()The count so far.- Returns:
- the number of times
invoke(java.lang.StringBuilder, int)was called.
-