Package monq.jfa.ooo
Class PartitionAction
java.lang.Object
monq.jfa.ooo.PartitionAction
- All Implemented Interfaces:
Action
Called right after the partitioning regex was matched and its template handled.
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionAction(Writer out, boolean copy, ShowNames showNames, int preContext, int postContext, String contextSeparator) -
Method Summary
Modifier and TypeMethodDescriptionvoidinvoke(StringBuilder out, int start) Will be called with new data appended to the givenStringBuilder.voidvoidsetCurrentPath(String currentPath) voidsetOnShippedMatch(Runnable notifier) To be run just after we send out a match to the output, defaults to a no-op.toString()
-
Constructor Details
-
PartitionAction
-
-
Method Details
-
notifyMatch
public void notifyMatch() -
setCurrentPath
-
setOnShippedMatch
To be run just after we send out a match to the output, defaults to a no-op.- Parameters:
notifier- to be run
-
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.- Specified by:
invokein interfaceAction- Parameters:
out- contains new data at its endstart- where the new data starts- Throws:
CallbackException- if things go wrong.
-
toString
-