Package monq.jfa.actions
package monq.jfa.actions
Definition and implementations of actions to be stored in a
Dfa to be executed
on a match by Actions.HANDLER.
The actions are intended to be used in a Dfa<Action> and the Actions.HANDLER
will then run them when used in combination with a DfaFilter.
-
ClassDescriptionAn action to be stored in a DFA to be invoked on the match.Static methods to create trival standard actions, as well as a handler to be used with
DfaFilterfor invoking an action on a match.Convenience wrapper to run a list ofActions in sequence.Thrown byAction.invoke(StringBuilder, int)in case things go wrong.An action which counts its invocations.The action, when called, will call the bi-consumer defined in the constructor with the key defined there and the current match.is the exception thrown by methods trying to match with a Dfa but don't find a match.