Package org.approvej.scrub
Class Replacements
java.lang.Object
org.approvej.scrub.Replacements
-
Method Summary
Modifier and TypeMethodDescriptionnumbered()
Replaces each match with "[scrubbed #]" where '#' is the number of the distinct replacement.Replaces with "[label #]
" wherelabel
is the given label and '#' is the number of the distinct replacement.Replaces each match with the given static replacement string.
-
Method Details
-
numbered
Replaces with "[label #]
" wherelabel
is the given label and '#' is the number of the distinct replacement.- Parameters:
label
- a String used to identify the replacement- Returns:
- a replacement function that replaces with "[label #]"
-
numbered
Replaces each match with "[scrubbed #]" where '#' is the number of the distinct replacement.- Returns:
- a replacement function that replaces with "[scrubbed #]"
-
string
Replaces each match with the given static replacement string.- Parameters:
replacement
- the static replacement string- Returns:
- a replacement function that always returns the same string
-